Commit f214784a authored by haoyanbin's avatar haoyanbin

Swag

parent 3543a7ff
...@@ -23,7 +23,7 @@ type OrgTeamMatch struct { ...@@ -23,7 +23,7 @@ type OrgTeamMatch struct {
// GetPage <球队>获取比赛列表 // GetPage <球队>获取比赛列表
// @Summary <球队>获取比赛列表 // @Summary <球队>获取比赛列表
// @Description <球队>获取比赛列表 // @Description <球队>获取比赛列表
// @Tags <球队>比赛 // @Tags <球队>比赛管理
// @Param pageSize query int false "页条数" // @Param pageSize query int false "页条数"
// @Param pageIndex query int false "页码" // @Param pageIndex query int false "页码"
// @Param data body dto.OrgTeamMatchGetPageReq true "data" // @Param data body dto.OrgTeamMatchGetPageReq true "data"
...@@ -75,7 +75,7 @@ func (e OrgTeamMatch) GetPage(c *gin.Context) { ...@@ -75,7 +75,7 @@ func (e OrgTeamMatch) GetPage(c *gin.Context) {
// Get <球队>获取比赛所有球员 // Get <球队>获取比赛所有球员
// @Summary <球队>获取比赛所有球员 // @Summary <球队>获取比赛所有球员
// @Description <球队>获取比赛所有球员 // @Description <球队>获取比赛所有球员
// @Tags <球队>比赛 // @Tags <球队>比赛管理
// @Param id path string false "id" // @Param id path string false "id"
// @Success 200 {string} string {data=models.OrgMatch} "{"code": 200, "data": [...]}" // @Success 200 {string} string {data=models.OrgMatch} "{"code": 200, "data": [...]}"
// @Router /api/v1/org-team-match/get-players [get] // @Router /api/v1/org-team-match/get-players [get]
...@@ -113,7 +113,7 @@ func (e OrgTeamMatch) GetPlayers(c *gin.Context) { ...@@ -113,7 +113,7 @@ func (e OrgTeamMatch) GetPlayers(c *gin.Context) {
// Get <球队>获取比赛已设置球员 // Get <球队>获取比赛已设置球员
// @Summary <球队>获取比赛已设置球员 // @Summary <球队>获取比赛已设置球员
// @Description <球队>获取比赛已设置球员 // @Description <球队>获取比赛已设置球员
// @Tags <球队>比赛 // @Tags <球队>比赛管理
// @Param id path string false "id" // @Param id path string false "id"
// @Success 200 {string} string {data=models.OrgMatch} "{"code": 200, "data": [...]}" // @Success 200 {string} string {data=models.OrgMatch} "{"code": 200, "data": [...]}"
// @Router /api/v1/org-team-match/get-players-is-set [get] // @Router /api/v1/org-team-match/get-players-is-set [get]
...@@ -151,7 +151,7 @@ func (e OrgTeamMatch) GetPlayersIsSet(c *gin.Context) { ...@@ -151,7 +151,7 @@ func (e OrgTeamMatch) GetPlayersIsSet(c *gin.Context) {
// Update <球队>修改比赛球员 // Update <球队>修改比赛球员
// @Summary <球队>修改比赛球员 // @Summary <球队>修改比赛球员
// @Description <球队>修改比赛球员 // @Description <球队>修改比赛球员
// @Tags <球队>比赛 // @Tags <球队>比赛管理
// @Accept application/json // @Accept application/json
// @Product application/json // @Product application/json
// @Param data body dto.OrgMatchUpdateReq true "body" // @Param data body dto.OrgMatchUpdateReq true "body"
...@@ -261,13 +261,13 @@ func (e OrgTeamMatch) UpdatePlayers(c *gin.Context) { ...@@ -261,13 +261,13 @@ func (e OrgTeamMatch) UpdatePlayers(c *gin.Context) {
e.OK(1, "修改成功") e.OK(1, "修改成功")
} }
// Get <赛事>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队) // Get <球队>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
// @Summary <赛事>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队) // @Summary <球队>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
// @Description <赛事>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队) // @Description <球队>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
// @Tags <赛事>比赛 // @Tags <球队>比赛管理
// @Param id path string false "id" // @Param id path string false "id"
// @Success 200 {string} string {data=models.OrgMatchGetInfoReq} "{"code": 200, "data": [...]}" // @Success 200 {string} string {data=models.OrgMatchGetInfoReq} "{"code": 200, "data": [...]}"
// @Router /api/v1/org-team-match/info/{id} [get] // @Router /api/v1/org-team-match/info [get]
// @Security Bearer // @Security Bearer
func (e OrgTeamMatch) GetInfo(c *gin.Context) { func (e OrgTeamMatch) GetInfo(c *gin.Context) {
req := dto.OrgMatchGetInfoReq{} req := dto.OrgMatchGetInfoReq{}
......
...@@ -64,7 +64,6 @@ func (e OrgTeamTeam) GetPage(c *gin.Context) { ...@@ -64,7 +64,6 @@ func (e OrgTeamTeam) GetPage(c *gin.Context) {
// @Tags <球队>球队表现 // @Tags <球队>球队表现
// @Param pageSize query int false "页条数" // @Param pageSize query int false "页条数"
// @Param pageIndex query int false "页码" // @Param pageIndex query int false "页码"
// @Param teamId query int false "球队id"
// @Success 200 {string} string "{"code": 200, "data": [...]}" // @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-team-team/get-match [get] // @Router /api/v1/org-team-team/get-match [get]
// @Security Bearer // @Security Bearer
......
This diff is collapsed.
This diff is collapsed.
...@@ -562,6 +562,8 @@ definitions: ...@@ -562,6 +562,8 @@ definitions:
type: integer type: integer
newsContent: newsContent:
type: string type: string
newsImg:
type: string
newsName: newsName:
type: string type: string
newsTitle: newsTitle:
...@@ -579,6 +581,8 @@ definitions: ...@@ -579,6 +581,8 @@ definitions:
type: integer type: integer
newsContent: newsContent:
type: string type: string
newsImg:
type: string
newsName: newsName:
type: string type: string
newsTitle: newsTitle:
...@@ -626,6 +630,7 @@ definitions: ...@@ -626,6 +630,7 @@ definitions:
sex: sex:
type: string type: string
shareConf: shareConf:
default: "1"
type: string type: string
teamId: teamId:
type: string type: string
...@@ -659,8 +664,10 @@ definitions: ...@@ -659,8 +664,10 @@ definitions:
sex: sex:
type: string type: string
shareConf: shareConf:
default: "1"
type: string type: string
status: status:
default: "2"
description: 状态 1 离队 2 在队 description: 状态 1 离队 2 在队
type: string type: string
teamId: teamId:
...@@ -867,6 +874,9 @@ definitions: ...@@ -867,6 +874,9 @@ definitions:
seasonId: seasonId:
description: 赛季id description: 赛季id
type: string type: string
teamId:
description: 联赛级别id
type: string
type: object type: object
dto.OrgTeamTeamGetPageReq: dto.OrgTeamTeamGetPageReq:
properties: properties:
...@@ -960,6 +970,7 @@ definitions: ...@@ -960,6 +970,7 @@ definitions:
signImg: signImg:
type: string type: string
status: status:
default: "2"
description: 状态 1 离职 2 在职 description: 状态 1 离职 2 在职
type: string type: string
teamId: teamId:
...@@ -1745,16 +1756,28 @@ definitions: ...@@ -1745,16 +1756,28 @@ definitions:
properties: properties:
action: action:
type: string type: string
apis:
items:
type: integer
type: array
breadcrumb: breadcrumb:
type: string type: string
children:
items:
$ref: '#/definitions/models.SysMenu'
type: array
component: component:
type: string type: string
createBy: createBy:
type: integer type: integer
createdAt: createdAt:
type: string type: string
dataScope:
type: string
icon: icon:
type: string type: string
is_select:
type: boolean
isFrame: isFrame:
type: string type: string
menuId: menuId:
...@@ -1765,6 +1788,8 @@ definitions: ...@@ -1765,6 +1788,8 @@ definitions:
type: string type: string
noCache: noCache:
type: boolean type: boolean
params:
type: string
parentId: parentId:
type: integer type: integer
path: path:
...@@ -1773,6 +1798,8 @@ definitions: ...@@ -1773,6 +1798,8 @@ definitions:
type: string type: string
permission: permission:
type: string type: string
roleId:
type: integer
sort: sort:
type: integer type: integer
sysApi: sysApi:
...@@ -3188,7 +3215,7 @@ paths: ...@@ -3188,7 +3215,7 @@ paths:
- <赛事>赛区 - <赛事>赛区
/api/v1/org-league: /api/v1/org-league:
delete: delete:
description: <赛事>删除联赛 description: 删除联赛
parameters: parameters:
- description: ids - description: ids
in: body in: body
...@@ -3204,11 +3231,11 @@ paths: ...@@ -3204,11 +3231,11 @@ paths:
type: string type: string
security: security:
- Bearer: [] - Bearer: []
summary: <赛事>删除联赛 summary: 删除联赛
tags: tags:
- <赛事>联赛 - 联赛
get: get:
description: <赛事>获取联赛列表 description: 获取联赛列表
parameters: parameters:
- description: 页条数 - description: 页条数
in: query in: query
...@@ -3218,12 +3245,6 @@ paths: ...@@ -3218,12 +3245,6 @@ paths:
in: query in: query
name: pageIndex name: pageIndex
type: integer type: integer
- description: data
in: body
name: data
required: true
schema:
$ref: '#/definitions/dto.OrgLeagueGetPageReq'
responses: responses:
"200": "200":
description: '{"code": 200, "data": [...]}' description: '{"code": 200, "data": [...]}'
...@@ -3231,13 +3252,13 @@ paths: ...@@ -3231,13 +3252,13 @@ paths:
type: string type: string
security: security:
- Bearer: [] - Bearer: []
summary: <赛事>获取联赛列表 summary: 获取联赛列表
tags: tags:
- <赛事>联赛 - 联赛
post: post:
consumes: consumes:
- application/json - application/json
description: <赛事>创建联赛 description: 创建联赛
parameters: parameters:
- description: data - description: data
in: body in: body
...@@ -3252,12 +3273,12 @@ paths: ...@@ -3252,12 +3273,12 @@ paths:
type: string type: string
security: security:
- Bearer: [] - Bearer: []
summary: <赛事>创建联赛 summary: 创建联赛
tags: tags:
- <赛事>联赛 - 联赛
/api/v1/org-league/{id}: /api/v1/org-league/{id}:
get: get:
description: <赛事>获取联赛 description: 获取联赛
parameters: parameters:
- description: id - description: id
in: path in: path
...@@ -3270,13 +3291,13 @@ paths: ...@@ -3270,13 +3291,13 @@ paths:
type: string type: string
security: security:
- Bearer: [] - Bearer: []
summary: <赛事>获取联赛 summary: 获取联赛
tags: tags:
- <赛事>联赛 - 联赛
put: put:
consumes: consumes:
- application/json - application/json
description: <赛事>修改联赛 description: 修改联赛
parameters: parameters:
- description: body - description: body
in: body in: body
...@@ -3291,9 +3312,9 @@ paths: ...@@ -3291,9 +3312,9 @@ paths:
type: string type: string
security: security:
- Bearer: [] - Bearer: []
summary: <赛事>修改联赛 summary: 修改联赛
tags: tags:
- <赛事>联赛 - 联赛
/api/v1/org-match: /api/v1/org-match:
delete: delete:
description: <赛事>删除比赛 description: <赛事>删除比赛
...@@ -4290,7 +4311,7 @@ paths: ...@@ -4290,7 +4311,7 @@ paths:
- Bearer: [] - Bearer: []
summary: <球队>获取比赛列表 summary: <球队>获取比赛列表
tags: tags:
- <球队>比赛 - <球队>比赛管理
/api/v1/org-team-match-evaluate: /api/v1/org-team-match-evaluate:
get: get:
description: <球队>教练评价列表 description: <球队>教练评价列表
...@@ -4391,7 +4412,7 @@ paths: ...@@ -4391,7 +4412,7 @@ paths:
- Bearer: [] - Bearer: []
summary: <球队>获取比赛所有球员 summary: <球队>获取比赛所有球员
tags: tags:
- <球队>比赛 - <球队>比赛管理
/api/v1/org-team-match/get-players-is-set: /api/v1/org-team-match/get-players-is-set:
get: get:
description: <球队>获取比赛已设置球员 description: <球队>获取比赛已设置球员
...@@ -4409,10 +4430,10 @@ paths: ...@@ -4409,10 +4430,10 @@ paths:
- Bearer: [] - Bearer: []
summary: <球队>获取比赛已设置球员 summary: <球队>获取比赛已设置球员
tags: tags:
- <球队>比赛 - <球队>比赛管理
/api/v1/org-team-match/info/{id}: /api/v1/org-team-match/info:
get: get:
description: <赛事>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队) description: <球队>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
parameters: parameters:
- description: id - description: id
in: path in: path
...@@ -4425,9 +4446,9 @@ paths: ...@@ -4425,9 +4446,9 @@ paths:
type: string type: string
security: security:
- Bearer: [] - Bearer: []
summary: <赛事>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队) summary: <球队>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
tags: tags:
- <赛事>比赛 - <球队>比赛管理
/api/v1/org-team-match/update-players: /api/v1/org-team-match/update-players:
put: put:
consumes: consumes:
...@@ -4449,7 +4470,7 @@ paths: ...@@ -4449,7 +4470,7 @@ paths:
- Bearer: [] - Bearer: []
summary: <球队>修改比赛球员 summary: <球队>修改比赛球员
tags: tags:
- <球队>比赛 - <球队>比赛管理
/api/v1/org-team-player: /api/v1/org-team-player:
get: get:
description: <球队>获取球员表现列表 description: <球队>获取球员表现列表
...@@ -4965,6 +4986,34 @@ paths: ...@@ -4965,6 +4986,34 @@ paths:
summary: 修改用户状态 summary: 修改用户状态
tags: tags:
- 用户 - 用户
/api/v1/org/upload:
post:
description: <俱乐部>获取俱乐部列表
parameters:
- description: 页条数
in: query
name: pageSize
type: integer
- description: 页码
in: query
name: pageIndex
type: integer
- description: data
in: body
name: data
required: true
schema:
$ref: '#/definitions/dto.OrgClubGetPageReq'
responses:
"200":
description: '{"code": 200, "data": [...]}'
schema:
type: string
security:
- Bearer: []
summary: <俱乐部>获取俱乐部列表
tags:
- <俱乐部>俱乐部
/api/v1/post: /api/v1/post:
delete: delete:
description: 删除数据 description: 删除数据
...@@ -5998,6 +6047,56 @@ paths: ...@@ -5998,6 +6047,56 @@ paths:
summary: 获取新闻列表 summary: 获取新闻列表
tags: tags:
- 新闻 - 新闻
/mobile/v1/org-player-rank:
get:
description: <手机端>获取球员排名
parameters:
- description: 页条数
in: query
name: pageSize
type: integer
- description: 页码
in: query
name: pageIndex
type: integer
- description: data
in: body
name: data
required: true
schema:
$ref: '#/definitions/dto.OrgTeamPlayerGetPageReq'
responses:
"200":
description: '{"code": 200, "data": [...]}'
schema:
type: string
security:
- Bearer: []
summary: <手机端>获取球员排名
tags:
- <手机端>比赛排名
/mobile/v1/org-player-user/login:
post:
description: 获取球员账户信息列表
parameters:
- description: 页条数
in: query
name: pageSize
type: integer
- description: 页码
in: query
name: pageIndex
type: integer
responses:
"200":
description: 'code": 200, "data": [...]}'
schema:
type: string
security:
- Bearer: []
summary: 获取球员账户信息列表
tags:
- 球员账户信息
securityDefinitions: securityDefinitions:
Bearer: Bearer:
in: header in: header
......
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