fix: 服务创建接口未返回数据
AddPlayerServicesResp 加 PlayerServices 字段,创建后查询回填。 PlayerService.Id 加 optional 避免请求解析时要求传 id。
This commit is contained in:
+1
-1
@@ -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"`
|
||||
|
||||
@@ -41,6 +41,7 @@ message AddPlayerServicesReq {
|
||||
}
|
||||
|
||||
message AddPlayerServicesResp {
|
||||
PlayerServices playerServices = 1; //playerServices
|
||||
}
|
||||
|
||||
message UpdatePlayerServicesReq {
|
||||
|
||||
Reference in New Issue
Block a user