feat(player): 新增 GET /players/me 查询当前用户打手资料

This commit is contained in:
zetaloop
2026-05-03 06:04:30 +08:00
parent cf639f1bca
commit 227f5814df
5 changed files with 184 additions and 0 deletions
@@ -57,6 +57,12 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/players/me",
Handler: player.InitPlayerHandler(serverCtx),
},
{
// 获取当前用户的打手资料
Method: http.MethodGet,
Path: "/players/me",
Handler: player.GetMyPlayerHandler(serverCtx),
},
{
// 更新接单状态
Method: http.MethodPut,