fix: 服务创建接口未返回数据

AddPlayerServicesResp 加 PlayerServices 字段,创建后查询回填。
PlayerService.Id 加 optional 避免请求解析时要求传 id。
This commit is contained in:
zetaloop
2026-04-05 18:08:40 +08:00
parent 62442a324a
commit d80a21fe7d
7 changed files with 191 additions and 137 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import "common.api"
type (
PlayerService {
Id int64 `json:"id"`
Id int64 `json:"id,optional"`
PlayerId int64 `json:"playerId"`
GameId int64 `json:"gameId"`
GameName string `json:"gameName"`
+1
View File
@@ -41,6 +41,7 @@ message AddPlayerServicesReq {
}
message AddPlayerServicesResp {
PlayerServices playerServices = 1; //playerServices
}
message UpdatePlayerServicesReq {