Skip to content

Commit 74f6443

Browse files
committed
refactor(user): 修复用户勋章接口命名错误
- 修正了用户勋章接口路径从 /metal 到 /medal - 更新了处理方法名从 getUserMetal 到 getUserMedal - 确保了接口命名与实际功能一致
1 parent 2c23f43 commit 74f6443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/b3log/symphony/processor/UserProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public static void register() {
244244
Dispatcher.get("/user/{userName}", userProcessor::getUserInfo);
245245
Dispatcher.get("/user/liveness", userProcessor::getLiveness, loginCheck::handle);
246246
Dispatcher.post("/user/liveness", userProcessor::getUserLiveness);
247-
Dispatcher.get("/user/{userName}/metal", userProcessor::getUserMetal, userCheckMidware::handle);
247+
Dispatcher.get("/user/{userName}/medal", userProcessor::getUserMedal, userCheckMidware::handle);
248248
Dispatcher.get("/user/{userName}/point", userProcessor::getUserPoint);
249249
Dispatcher.post("/user/query/latest-login-ip", userProcessor::getLatestLoginIp);
250250
Dispatcher.post("/user/edit/give-metal", userProcessor::giveMetal);
@@ -707,7 +707,7 @@ public void getLatestLoginIp(final RequestContext context) {
707707
*
708708
* @param context
709709
*/
710-
public void getUserMetal(final RequestContext context) {
710+
public void getUserMedal(final RequestContext context) {
711711
final String userName = context.pathVar("userName");
712712
final JSONObject user = userQueryService.getUserByName(userName);
713713
String userId = user.optString(Keys.OBJECT_ID);

0 commit comments

Comments
 (0)