Commit e98ea3f0 authored by haoyanbin's avatar haoyanbin

req

parent cfcc97f1
...@@ -137,7 +137,7 @@ func (e OrgPlayer) Get(c *gin.Context) { ...@@ -137,7 +137,7 @@ func (e OrgPlayer) Get(c *gin.Context) {
// @Router /mobile/v1/org-player/info [get] // @Router /mobile/v1/org-player/info [get]
// @Security Bearer // @Security Bearer
func (e OrgPlayer) GetInfo(c *gin.Context) { func (e OrgPlayer) GetInfo(c *gin.Context) {
req := dto.OrgPlayerGetReq{} req := dto.OrgPlayerGetInfoReq{}
s := service.OrgPlayer{} s := service.OrgPlayer{}
c.Bind(&req) c.Bind(&req)
err := e.MakeContext(c). err := e.MakeContext(c).
......
...@@ -68,7 +68,8 @@ type OrgPlayerDataGetReply struct { ...@@ -68,7 +68,8 @@ type OrgPlayerDataGetReply struct {
CountMatch string `json:"countMatch"` CountMatch string `json:"countMatch"`
} }
type OrgPlayerGetInfoReq struct { type OrgPlayerGetInfoReq struct {
Id int `uri:"id"` dto.Pagination `search:"-"`
PlayerId int `form:"playerId" json:"playerId"`
} }
type OrgPlayerGetInfoReply struct { type OrgPlayerGetInfoReply struct {
...@@ -139,8 +140,7 @@ type OrgMatchEvaluateList struct { ...@@ -139,8 +140,7 @@ type OrgMatchEvaluateList struct {
// OrgPlayerGetReq 功能获取请求参数 // OrgPlayerGetReq 功能获取请求参数
type OrgPlayerGetReq struct { type OrgPlayerGetReq struct {
dto.Pagination `search:"-"` Id int `uri:"id"`
PlayerId int `form:"playerId" json:"playerId"`
} }
type OrgPlayerGetReply struct { 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