Commit e98ea3f0 authored by haoyanbin's avatar haoyanbin

req

parent cfcc97f1
......@@ -137,7 +137,7 @@ func (e OrgPlayer) Get(c *gin.Context) {
// @Router /mobile/v1/org-player/info [get]
// @Security Bearer
func (e OrgPlayer) GetInfo(c *gin.Context) {
req := dto.OrgPlayerGetReq{}
req := dto.OrgPlayerGetInfoReq{}
s := service.OrgPlayer{}
c.Bind(&req)
err := e.MakeContext(c).
......
......@@ -68,7 +68,8 @@ type OrgPlayerDataGetReply struct {
CountMatch string `json:"countMatch"`
}
type OrgPlayerGetInfoReq struct {
Id int `uri:"id"`
dto.Pagination `search:"-"`
PlayerId int `form:"playerId" json:"playerId"`
}
type OrgPlayerGetInfoReply struct {
......@@ -139,8 +140,7 @@ type OrgMatchEvaluateList struct {
// OrgPlayerGetReq 功能获取请求参数
type OrgPlayerGetReq struct {
dto.Pagination `search:"-"`
PlayerId int `form:"playerId" json:"playerId"`
Id int `uri:"id"`
}
type OrgPlayerGetReply struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment