add: 打手初始化接口

This commit is contained in:
zetaloop
2026-04-04 03:35:36 +08:00
parent 85ce6a45c5
commit 32d58ef462
12 changed files with 224 additions and 21 deletions
@@ -51,6 +51,12 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
[]rest.Route{
{
// 初始化当前用户的打手资料
Method: http.MethodPost,
Path: "/players/me",
Handler: player.InitPlayerHandler(serverCtx),
},
{
// 更新接单状态
Method: http.MethodPut,