fix type参数接收问题
This commit is contained in:
parent
1e96ec3b25
commit
5acaf1028b
@ -4,7 +4,7 @@ import "common.api"
|
||||
|
||||
type SetUserGameScoreRequest {
|
||||
Score uint64 `json:"score"`
|
||||
Type uint64 `json:"type,default=0" form:"type,default=0"`
|
||||
Type uint64 `json:"type,default=0"`
|
||||
}
|
||||
|
||||
type RankingData {
|
||||
@ -22,7 +22,7 @@ type RankingResponse {
|
||||
}
|
||||
|
||||
type RankingListRequest {
|
||||
Type uint64 `json:"type,default=0" form:"type,default=0"`
|
||||
Type uint64 `form:"type,default=0"`
|
||||
PageBase
|
||||
}
|
||||
|
||||
|
@ -50,6 +50,7 @@ func (l *RankingSetScoreLogic) RankingSetScore(req *types.SetUserGameScoreReques
|
||||
AppUserId: at.UserId,
|
||||
AppAccount: at.AppId,
|
||||
Score: req.Score,
|
||||
T: req.Type,
|
||||
}
|
||||
err = l.svcCtx.GameScore.CreateScore(l.ctx, oldScore)
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ type RankingData struct {
|
||||
}
|
||||
|
||||
type RankingListRequest struct {
|
||||
Type uint64 `json:"type,default=0" form:"type,default=0"`
|
||||
Type uint64 `form:"type,default=0"`
|
||||
PageBase
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user