fix: 为移除打手端点使用独立的 path 参数请求类型

This commit is contained in:
zetaloop
2026-04-23 16:29:53 +08:00
parent 83a2f243f4
commit b10d97117e
4 changed files with 12 additions and 3 deletions
+5 -1
View File
@@ -90,6 +90,10 @@ type (
Id int64 `path:"id"`
index int64 `path:"index"`
}
RemovePlayerReq {
Id int64 `path:"id"`
PlayerId int64 `path:"playerId"`
}
AcceptInvitationReq {
Id int64 `path:"id"`
}
@@ -158,7 +162,7 @@ service shop-api {
@doc "移除打手"
@handler RemovePlayer
delete /shops/:id/players/:playerId (InvitationReq) returns (EmptyResp)
delete /shops/:id/players/:playerId (RemovePlayerReq) returns (EmptyResp)
@doc "获取收入统计"
@handler GetShopIncomeStats