Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nbya
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoyanbin
nbya
Commits
f214784a
Commit
f214784a
authored
Jan 18, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swag
parent
3543a7ff
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
519 additions
and
111 deletions
+519
-111
org_team_match.go
app/operate/apis/org_team_match.go
+9
-9
org_team_team.go
app/operate/apis/org_team_team.go
+0
-1
docs.go
docs/docs.go
+191
-36
swagger.json
docs/swagger.json
+191
-36
swagger.yaml
docs/swagger.yaml
+128
-29
No files found.
app/operate/apis/org_team_match.go
View file @
f214784a
...
...
@@ -23,7 +23,7 @@ type OrgTeamMatch struct {
// GetPage <球队>获取比赛列表
// @Summary <球队>获取比赛列表
// @Description <球队>获取比赛列表
// @Tags <球队>比赛
// @Tags <球队>比赛
管理
// @Param pageSize query int false "页条数"
// @Param pageIndex query int false "页码"
// @Param data body dto.OrgTeamMatchGetPageReq true "data"
...
...
@@ -75,7 +75,7 @@ func (e OrgTeamMatch) GetPage(c *gin.Context) {
// Get <球队>获取比赛所有球员
// @Summary <球队>获取比赛所有球员
// @Description <球队>获取比赛所有球员
// @Tags <球队>比赛
// @Tags <球队>比赛
管理
// @Param id path string false "id"
// @Success 200 {string} string {data=models.OrgMatch} "{"code": 200, "data": [...]}"
// @Router /api/v1/org-team-match/get-players [get]
...
...
@@ -113,7 +113,7 @@ func (e OrgTeamMatch) GetPlayers(c *gin.Context) {
// Get <球队>获取比赛已设置球员
// @Summary <球队>获取比赛已设置球员
// @Description <球队>获取比赛已设置球员
// @Tags <球队>比赛
// @Tags <球队>比赛
管理
// @Param id path string false "id"
// @Success 200 {string} string {data=models.OrgMatch} "{"code": 200, "data": [...]}"
// @Router /api/v1/org-team-match/get-players-is-set [get]
...
...
@@ -151,7 +151,7 @@ func (e OrgTeamMatch) GetPlayersIsSet(c *gin.Context) {
// Update <球队>修改比赛球员
// @Summary <球队>修改比赛球员
// @Description <球队>修改比赛球员
// @Tags <球队>比赛
// @Tags <球队>比赛
管理
// @Accept application/json
// @Product application/json
// @Param data body dto.OrgMatchUpdateReq true "body"
...
...
@@ -261,13 +261,13 @@ func (e OrgTeamMatch) UpdatePlayers(c *gin.Context) {
e
.
OK
(
1
,
"修改成功"
)
}
// Get <
赛事
>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
// @Summary <
赛事
>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
// @Description <
赛事
>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
// @Tags <
赛事>比赛
// Get <
球队
>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
// @Summary <
球队
>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
// @Description <
球队
>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
// @Tags <
球队>比赛管理
// @Param id path string false "id"
// @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
func
(
e
OrgTeamMatch
)
GetInfo
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchGetInfoReq
{}
...
...
app/operate/apis/org_team_team.go
View file @
f214784a
...
...
@@ -64,7 +64,6 @@ func (e OrgTeamTeam) GetPage(c *gin.Context) {
// @Tags <球队>球队表现
// @Param pageSize query int false "页条数"
// @Param pageIndex query int false "页码"
// @Param teamId query int false "球队id"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-team-team/get-match [get]
// @Security Bearer
...
...
docs/docs.go
View file @
f214784a
This diff is collapsed.
Click to expand it.
docs/swagger.json
View file @
f214784a
This diff is collapsed.
Click to expand it.
docs/swagger.yaml
View file @
f214784a
...
...
@@ -562,6 +562,8 @@ definitions:
type
:
integer
newsContent
:
type
:
string
newsImg
:
type
:
string
newsName
:
type
:
string
newsTitle
:
...
...
@@ -579,6 +581,8 @@ definitions:
type
:
integer
newsContent
:
type
:
string
newsImg
:
type
:
string
newsName
:
type
:
string
newsTitle
:
...
...
@@ -626,6 +630,7 @@ definitions:
sex
:
type
:
string
shareConf
:
default
:
"
1"
type
:
string
teamId
:
type
:
string
...
...
@@ -659,8 +664,10 @@ definitions:
sex
:
type
:
string
shareConf
:
default
:
"
1"
type
:
string
status
:
default
:
"
2"
description
:
状态 1 离队 2 在队
type
:
string
teamId
:
...
...
@@ -867,6 +874,9 @@ definitions:
seasonId
:
description
:
赛季id
type
:
string
teamId
:
description
:
联赛级别id
type
:
string
type
:
object
dto.OrgTeamTeamGetPageReq
:
properties
:
...
...
@@ -960,6 +970,7 @@ definitions:
signImg
:
type
:
string
status
:
default
:
"
2"
description
:
状态 1 离职 2 在职
type
:
string
teamId
:
...
...
@@ -1745,16 +1756,28 @@ definitions:
properties
:
action
:
type
:
string
apis
:
items
:
type
:
integer
type
:
array
breadcrumb
:
type
:
string
children
:
items
:
$ref
:
'
#/definitions/models.SysMenu'
type
:
array
component
:
type
:
string
createBy
:
type
:
integer
createdAt
:
type
:
string
dataScope
:
type
:
string
icon
:
type
:
string
is_select
:
type
:
boolean
isFrame
:
type
:
string
menuId
:
...
...
@@ -1765,6 +1788,8 @@ definitions:
type
:
string
noCache
:
type
:
boolean
params
:
type
:
string
parentId
:
type
:
integer
path
:
...
...
@@ -1773,6 +1798,8 @@ definitions:
type
:
string
permission
:
type
:
string
roleId
:
type
:
integer
sort
:
type
:
integer
sysApi
:
...
...
@@ -3188,7 +3215,7 @@ paths:
-
<赛事>赛区
/api/v1/org-league
:
delete
:
description
:
<赛事>
删除联赛
description
:
删除联赛
parameters
:
-
description
:
ids
in
:
body
...
...
@@ -3204,11 +3231,11 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<赛事>
删除联赛
summary
:
删除联赛
tags
:
-
<赛事>
联赛
-
联赛
get
:
description
:
<赛事>
获取联赛列表
description
:
获取联赛列表
parameters
:
-
description
:
页条数
in
:
query
...
...
@@ -3218,12 +3245,6 @@ paths:
in
:
query
name
:
pageIndex
type
:
integer
-
description
:
data
in
:
body
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/dto.OrgLeagueGetPageReq'
responses
:
"
200"
:
description
:
'
{"code":
200,
"data":
[...]}'
...
...
@@ -3231,13 +3252,13 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<赛事>
获取联赛列表
summary
:
获取联赛列表
tags
:
-
<赛事>
联赛
-
联赛
post
:
consumes
:
-
application/json
description
:
<赛事>
创建联赛
description
:
创建联赛
parameters
:
-
description
:
data
in
:
body
...
...
@@ -3252,12 +3273,12 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<赛事>
创建联赛
summary
:
创建联赛
tags
:
-
<赛事>
联赛
-
联赛
/api/v1/org-league/{id}
:
get
:
description
:
<赛事>
获取联赛
description
:
获取联赛
parameters
:
-
description
:
id
in
:
path
...
...
@@ -3270,13 +3291,13 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<赛事>
获取联赛
summary
:
获取联赛
tags
:
-
<赛事>
联赛
-
联赛
put
:
consumes
:
-
application/json
description
:
<赛事>
修改联赛
description
:
修改联赛
parameters
:
-
description
:
body
in
:
body
...
...
@@ -3291,9 +3312,9 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<赛事>
修改联赛
summary
:
修改联赛
tags
:
-
<赛事>
联赛
-
联赛
/api/v1/org-match
:
delete
:
description
:
<赛事>删除比赛
...
...
@@ -4290,7 +4311,7 @@ paths:
-
Bearer
:
[]
summary
:
<球队>获取比赛列表
tags
:
-
<球队>比赛
-
<球队>比赛
管理
/api/v1/org-team-match-evaluate
:
get
:
description
:
<球队>教练评价列表
...
...
@@ -4391,7 +4412,7 @@ paths:
-
Bearer
:
[]
summary
:
<球队>获取比赛所有球员
tags
:
-
<球队>比赛
-
<球队>比赛
管理
/api/v1/org-team-match/get-players-is-set
:
get
:
description
:
<球队>获取比赛已设置球员
...
...
@@ -4409,10 +4430,10 @@ paths:
-
Bearer
:
[]
summary
:
<球队>获取比赛已设置球员
tags
:
-
<球队>比赛
/api/v1/org-team-match/info
/{id}
:
-
<球队>比赛
管理
/api/v1/org-team-match/info
:
get
:
description
:
<
赛事
>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
description
:
<
球队
>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
parameters
:
-
description
:
id
in
:
path
...
...
@@ -4425,9 +4446,9 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<
赛事
>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
summary
:
<
球队
>获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)
tags
:
-
<
赛事>比赛
-
<
球队>比赛管理
/api/v1/org-team-match/update-players
:
put
:
consumes
:
...
...
@@ -4449,7 +4470,7 @@ paths:
-
Bearer
:
[]
summary
:
<球队>修改比赛球员
tags
:
-
<球队>比赛
-
<球队>比赛
管理
/api/v1/org-team-player
:
get
:
description
:
<球队>获取球员表现列表
...
...
@@ -4965,6 +4986,34 @@ paths:
summary
:
修改用户状态
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
:
delete
:
description
:
删除数据
...
...
@@ -5998,6 +6047,56 @@ paths:
summary
:
获取新闻列表
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
:
Bearer
:
in
:
header
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment