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
754b285d
Commit
754b285d
authored
Dec 27, 2021
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0183cdab
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
2815 additions
and
1456 deletions
+2815
-1456
org_division.go
app/operate/apis/org_division.go
+20
-20
org_league.go
app/operate/apis/org_league.go
+20
-20
org_match.go
app/operate/apis/org_match.go
+155
-20
org_match_evaluate.go
app/operate/apis/org_match_evaluate.go
+75
-74
org_match_team.go
app/operate/apis/org_match_team.go
+0
-190
org_season.go
app/operate/apis/org_season.go
+17
-17
org_team_match.go
app/operate/apis/org_team_match.go
+3
-3
org_user.go
app/operate/apis/org_user.go
+24
-24
org_match_team.go
app/operate/models/org_match_team.go
+0
-32
org_match.go
app/operate/router/org_match.go
+4
-0
org_match_evaluate.go
app/operate/router/org_match_evaluate.go
+2
-2
org_match_team.go
app/operate/router/org_match_team.go
+0
-26
org_team_match.go
app/operate/router/org_team_match.go
+2
-2
org_user.go
app/operate/router/org_user.go
+7
-7
org_match_team.go
app/operate/service/dto/org_match_team.go
+0
-98
org_match_team.go
app/operate/service/org_match_team.go
+0
-109
docs.go
docs/docs.go
+1243
-406
swagger.json
docs/swagger.json
+1243
-406
No files found.
app/operate/apis/org_division.go
View file @
754b285d
...
@@ -18,10 +18,10 @@ type OrgDivision struct {
...
@@ -18,10 +18,10 @@ type OrgDivision struct {
api
.
Api
api
.
Api
}
}
// 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 "页码"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
...
@@ -54,10 +54,10 @@ func (e OrgDivision) GetPage(c *gin.Context) {
...
@@ -54,10 +54,10 @@ func (e OrgDivision) GetPage(c *gin.Context) {
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
}
}
// Get 获取赛区
// Get
<赛事>
获取赛区
// @Summary 获取赛区
// @Summary
<赛事>
获取赛区
// @Description 获取赛区
// @Description
<赛事>
获取赛区
// @Tags 赛区
// @Tags
<赛事>
赛区
// @Param id path string false "id"
// @Param id path string false "id"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-division/{id} [get]
// @Router /api/v1/org-division/{id} [get]
...
@@ -87,10 +87,10 @@ func (e OrgDivision) Get(c *gin.Context) {
...
@@ -87,10 +87,10 @@ func (e OrgDivision) Get(c *gin.Context) {
e
.
OK
(
object
,
"查询成功"
)
e
.
OK
(
object
,
"查询成功"
)
}
}
// Insert 创建赛区
// Insert
<赛事>
创建赛区
// @Summary 创建赛区
// @Summary
<赛事>
创建赛区
// @Description 创建赛区
// @Description
<赛事>
创建赛区
// @Tags 赛区
// @Tags
<赛事>
赛区
// @Accept application/json
// @Accept application/json
// @Product application/json
// @Product application/json
// @Param data body dto.OrgDivisionInsertReq true "data"
// @Param data body dto.OrgDivisionInsertReq true "data"
...
@@ -122,10 +122,10 @@ func (e OrgDivision) Insert(c *gin.Context) {
...
@@ -122,10 +122,10 @@ func (e OrgDivision) Insert(c *gin.Context) {
e
.
OK
(
req
.
GetId
(),
"创建成功"
)
e
.
OK
(
req
.
GetId
(),
"创建成功"
)
}
}
// Update 修改赛区
// Update
<赛事>
修改赛区
// @Summary 修改赛区
// @Summary
<赛事>
修改赛区
// @Description 修改赛区
// @Description
<赛事>
修改赛区
// @Tags 赛区
// @Tags
<赛事>
赛区
// @Accept application/json
// @Accept application/json
// @Product application/json
// @Product application/json
// @Param data body dto.OrgDivisionUpdateReq true "body"
// @Param data body dto.OrgDivisionUpdateReq true "body"
...
@@ -156,10 +156,10 @@ func (e OrgDivision) Update(c *gin.Context) {
...
@@ -156,10 +156,10 @@ func (e OrgDivision) Update(c *gin.Context) {
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
}
}
// Delete 删除赛区
// Delete
<赛事>
删除赛区
// @Summary 删除赛区
// @Summary
<赛事>
删除赛区
// @Description 删除赛区
// @Description
<赛事>
删除赛区
// @Tags 赛区
// @Tags
<赛事>
赛区
// @Param ids body []int false "ids"
// @Param ids body []int false "ids"
// @Success 200 {string} string "{"code": 200, "message": "删除成功"}"
// @Success 200 {string} string "{"code": 200, "message": "删除成功"}"
// @Router /api/v1/org-division [delete]
// @Router /api/v1/org-division [delete]
...
...
app/operate/apis/org_league.go
View file @
754b285d
...
@@ -18,10 +18,10 @@ type OrgLeague struct {
...
@@ -18,10 +18,10 @@ type OrgLeague struct {
api
.
Api
api
.
Api
}
}
// 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 "页码"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
...
@@ -54,10 +54,10 @@ func (e OrgLeague) GetPage(c *gin.Context) {
...
@@ -54,10 +54,10 @@ func (e OrgLeague) GetPage(c *gin.Context) {
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
}
}
// Get 获取联赛
// Get
<赛事>
获取联赛
// @Summary 获取联赛
// @Summary
<赛事>
获取联赛
// @Description 获取联赛
// @Description
<赛事>
获取联赛
// @Tags 联赛
// @Tags
<赛事>
联赛
// @Param id path string false "id"
// @Param id path string false "id"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-league/{id} [get]
// @Router /api/v1/org-league/{id} [get]
...
@@ -87,10 +87,10 @@ func (e OrgLeague) Get(c *gin.Context) {
...
@@ -87,10 +87,10 @@ func (e OrgLeague) Get(c *gin.Context) {
e
.
OK
(
object
,
"查询成功"
)
e
.
OK
(
object
,
"查询成功"
)
}
}
// Insert 创建联赛
// Insert
<赛事>
创建联赛
// @Summary 创建联赛
// @Summary
<赛事>
创建联赛
// @Description 创建联赛
// @Description
<赛事>
创建联赛
// @Tags 联赛
// @Tags
<赛事>
联赛
// @Accept application/json
// @Accept application/json
// @Product application/json
// @Product application/json
// @Param data body dto.OrgLeagueInsertReq true "data"
// @Param data body dto.OrgLeagueInsertReq true "data"
...
@@ -122,10 +122,10 @@ func (e OrgLeague) Insert(c *gin.Context) {
...
@@ -122,10 +122,10 @@ func (e OrgLeague) Insert(c *gin.Context) {
e
.
OK
(
req
.
GetId
(),
"创建成功"
)
e
.
OK
(
req
.
GetId
(),
"创建成功"
)
}
}
// Update 修改联赛
// Update
<赛事>
修改联赛
// @Summary 修改联赛
// @Summary
<赛事>
修改联赛
// @Description 修改联赛
// @Description
<赛事>
修改联赛
// @Tags 联赛
// @Tags
<赛事>
联赛
// @Accept application/json
// @Accept application/json
// @Product application/json
// @Product application/json
// @Param data body dto.OrgLeagueUpdateReq true "body"
// @Param data body dto.OrgLeagueUpdateReq true "body"
...
@@ -156,10 +156,10 @@ func (e OrgLeague) Update(c *gin.Context) {
...
@@ -156,10 +156,10 @@ func (e OrgLeague) Update(c *gin.Context) {
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
}
}
// Delete 删除联赛
// Delete
<赛事>
删除联赛
// @Summary 删除联赛
// @Summary
<赛事>
删除联赛
// @Description 删除联赛
// @Description
<赛事>
删除联赛
// @Tags 联赛
// @Tags
<赛事>
联赛
// @Param ids body []int false "ids"
// @Param ids body []int false "ids"
// @Success 200 {string} string "{"code": 200, "message": "删除成功"}"
// @Success 200 {string} string "{"code": 200, "message": "删除成功"}"
// @Router /api/v1/org-league [delete]
// @Router /api/v1/org-league [delete]
...
...
app/operate/apis/org_match.go
View file @
754b285d
...
@@ -18,10 +18,10 @@ type OrgMatch struct {
...
@@ -18,10 +18,10 @@ type OrgMatch struct {
api
.
Api
api
.
Api
}
}
// 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 "页码"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
...
@@ -54,10 +54,10 @@ func (e OrgMatch) GetPage(c *gin.Context) {
...
@@ -54,10 +54,10 @@ func (e OrgMatch) GetPage(c *gin.Context) {
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
}
}
// 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-match/{id} [get]
// @Router /api/v1/org-match/{id} [get]
...
@@ -87,10 +87,10 @@ func (e OrgMatch) Get(c *gin.Context) {
...
@@ -87,10 +87,10 @@ func (e OrgMatch) Get(c *gin.Context) {
e
.
OK
(
object
,
"查询成功"
)
e
.
OK
(
object
,
"查询成功"
)
}
}
// Insert 创建比赛
// Insert
<赛事>
创建比赛
// @Summary 创建比赛
// @Summary
<赛事>
创建比赛
// @Description 创建比赛
// @Description
<赛事>
创建比赛
// @Tags 比赛
// @Tags
<赛事>
比赛
// @Accept application/json
// @Accept application/json
// @Product application/json
// @Product application/json
// @Param data body dto.OrgMatchInsertReq true "data"
// @Param data body dto.OrgMatchInsertReq true "data"
...
@@ -122,10 +122,10 @@ func (e OrgMatch) Insert(c *gin.Context) {
...
@@ -122,10 +122,10 @@ func (e OrgMatch) Insert(c *gin.Context) {
e
.
OK
(
req
.
GetId
(),
"创建成功"
)
e
.
OK
(
req
.
GetId
(),
"创建成功"
)
}
}
// 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"
...
@@ -156,10 +156,10 @@ func (e OrgMatch) Update(c *gin.Context) {
...
@@ -156,10 +156,10 @@ func (e OrgMatch) Update(c *gin.Context) {
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
}
}
// Delete 删除比赛
// Delete
<赛事>
删除比赛
// @Summary 删除比赛
// @Summary
<赛事>
删除比赛
// @Description 删除比赛
// @Description
<赛事>
删除比赛
// @Tags 比赛
// @Tags
<赛事>
比赛
// @Param ids body []int false "ids"
// @Param ids body []int false "ids"
// @Success 200 {string} string "{"code": 200, "message": "删除成功"}"
// @Success 200 {string} string "{"code": 200, "message": "删除成功"}"
// @Router /api/v1/org-match [delete]
// @Router /api/v1/org-match [delete]
...
@@ -187,4 +187,139 @@ func (e OrgMatch) Delete(c *gin.Context) {
...
@@ -187,4 +187,139 @@ func (e OrgMatch) Delete(c *gin.Context) {
return
return
}
}
e
.
OK
(
req
.
GetId
(),
"删除成功"
)
e
.
OK
(
req
.
GetId
(),
"删除成功"
)
}
// Get <赛事>获取比赛所有球员
// @Summary <赛事>获取比赛所有球员
// @Description <赛事>获取比赛所有球员
// @Tags <赛事>比赛
// @Param id path string false "id"
// @Success 200 {string} string {data=models.OrgMatch} "{"code": 200, "data": [...]}"
// @Router /api/v1/org-match/get-players/{id} [get]
// @Security Bearer
func
(
e
OrgMatch
)
GetPlayers
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchGetReq
{}
s
:=
service
.
OrgMatch
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
var
object
models
.
OrgMatch
p
:=
actions
.
GetPermissionFromContext
(
c
)
err
=
s
.
Get
(
&
req
,
p
,
&
object
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"获取比赛失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
object
,
"查询成功"
)
}
// Get <赛事>获取比赛已设置球员
// @Summary <赛事>获取比赛已设置球员
// @Description <赛事>获取比赛已设置球员
// @Tags <赛事>比赛
// @Param id path string false "id"
// @Success 200 {string} string {data=models.OrgMatch} "{"code": 200, "data": [...]}"
// @Router /api/v1/org-match/get-players-is-set/{id} [get]
// @Security Bearer
func
(
e
OrgMatch
)
GetPlayersIsSet
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchGetReq
{}
s
:=
service
.
OrgMatch
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
var
object
models
.
OrgMatch
p
:=
actions
.
GetPermissionFromContext
(
c
)
err
=
s
.
Get
(
&
req
,
p
,
&
object
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"获取比赛失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
object
,
"查询成功"
)
}
// Update <赛事>修改比赛球员
// @Summary <赛事>修改比赛球员
// @Description <赛事>修改比赛球员
// @Tags <赛事>比赛
// @Accept application/json
// @Product application/json
// @Param data body dto.OrgMatchUpdateReq true "body"
// @Success 200 {string} string "{"code": 200, "message": "修改成功"}"
// @Router /api/v1/org-match/update-players/{id} [put]
// @Security Bearer
func
(
e
OrgMatch
)
UpdatePlayers
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchUpdateReq
{}
s
:=
service
.
OrgMatch
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
req
.
SetUpdateBy
(
user
.
GetUserId
(
c
))
p
:=
actions
.
GetPermissionFromContext
(
c
)
err
=
s
.
Update
(
&
req
,
p
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"修改比赛 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
}
// Update <赛事>修改比赛球员数据
// @Summary <赛事>修改比赛球员数据
// @Description <赛事>修改比赛球员数据
// @Tags <赛事>比赛
// @Accept application/json
// @Product application/json
// @Param data body dto.OrgMatchUpdateReq true "body"
// @Success 200 {string} string "{"code": 200, "message": "修改成功"}"
// @Router /api/v1/org-match/update-players-data/{id} [put]
// @Security Bearer
func
(
e
OrgMatch
)
UpdatePlayersData
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchUpdateReq
{}
s
:=
service
.
OrgMatch
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
req
.
SetUpdateBy
(
user
.
GetUserId
(
c
))
p
:=
actions
.
GetPermissionFromContext
(
c
)
err
=
s
.
Update
(
&
req
,
p
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"修改比赛 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
}
}
\ No newline at end of file
app/operate/apis/org_match_evaluate.go
View file @
754b285d
...
@@ -18,10 +18,10 @@ type OrgMatchEvaluate struct {
...
@@ -18,10 +18,10 @@ type OrgMatchEvaluate struct {
api
.
Api
api
.
Api
}
}
// 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 "页码"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
...
@@ -54,10 +54,46 @@ func (e OrgMatchEvaluate) GetPage(c *gin.Context) {
...
@@ -54,10 +54,46 @@ func (e OrgMatchEvaluate) GetPage(c *gin.Context) {
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
}
}
// Get 获取比赛球员信息
// GetPage <赛事>赛后评价比赛列表
// @Summary 获取比赛球员信息
// @Summary <赛事>赛后评价比赛列表
// @Description 获取比赛球员信息
// @Description <赛事>赛后评价比赛列表
// @Tags 比赛球员信息
// @Tags <赛事>赛后评价
// @Param pageSize query int false "页条数"
// @Param pageIndex query int false "页码"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-match-evaluate/get-match [get]
// @Security Bearer
func
(
e
OrgMatchEvaluate
)
GetPageMatch
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchEvaluateGetPageReq
{}
s
:=
service
.
OrgMatchEvaluate
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
p
:=
actions
.
GetPermissionFromContext
(
c
)
list
:=
make
([]
models
.
OrgMatchEvaluate
,
0
)
var
count
int64
err
=
s
.
GetPage
(
&
req
,
p
,
&
list
,
&
count
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"获取比赛球员信息 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
}
// Get <赛事>赛后评价比赛详情
// @Summary <赛事>赛后评价比赛详情
// @Description <赛事>赛后评价比赛详情
// @Tags <赛事>赛后评价
// @Param id path string false "id"
// @Param id path string false "id"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-match-evaluate/{id} [get]
// @Router /api/v1/org-match-evaluate/{id} [get]
...
@@ -87,45 +123,10 @@ func (e OrgMatchEvaluate) Get(c *gin.Context) {
...
@@ -87,45 +123,10 @@ func (e OrgMatchEvaluate) Get(c *gin.Context) {
e
.
OK
(
object
,
"查询成功"
)
e
.
OK
(
object
,
"查询成功"
)
}
}
// Insert 创建比赛球员信息
// Update <赛事>赛后评价影像维护
// @Summary 创建比赛球员信息
// @Summary <赛事>赛后评价影像维护
// @Description 创建比赛球员信息
// @Description <赛事>赛后评价影像维护
// @Tags 比赛球员信息
// @Tags <赛事>赛后评价
// @Accept application/json
// @Product application/json
// @Param data body dto.OrgMatchEvaluateInsertReq true "data"
// @Success 200 {string} string "{"code": 200, "message": "添加成功"}"
// @Router /api/v1/org-match-evaluate [post]
// @Security Bearer
func
(
e
OrgMatchEvaluate
)
Insert
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchEvaluateInsertReq
{}
s
:=
service
.
OrgMatchEvaluate
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
// 设置创建人
req
.
SetCreateBy
(
user
.
GetUserId
(
c
))
err
=
s
.
Insert
(
&
req
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"创建比赛球员信息 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
req
.
GetId
(),
"创建成功"
)
}
// Update 修改比赛球员信息
// @Summary 修改比赛球员信息
// @Description 修改比赛球员信息
// @Tags 比赛球员信息
// @Accept application/json
// @Accept application/json
// @Product application/json
// @Product application/json
// @Param data body dto.OrgMatchEvaluateUpdateReq true "body"
// @Param data body dto.OrgMatchEvaluateUpdateReq true "body"
...
@@ -155,36 +156,36 @@ func (e OrgMatchEvaluate) Update(c *gin.Context) {
...
@@ -155,36 +156,36 @@ func (e OrgMatchEvaluate) Update(c *gin.Context) {
}
}
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
}
}
// Update <赛事>赛后评价影像维护
// Delete 删除比赛球员信息
// @Summary <赛事>赛后评价影像维护
// @Summary 删除比赛球员信息
// @Description <赛事>赛后评价影像维护
// @Description 删除比赛球员信息
// @Tags <赛事>赛后评价
// @Tags 比赛球员信息
// @Accept application/json
// @Param ids body []int false "ids"
// @Product application/json
// @Success 200 {string} string "{"code": 200, "message": "删除成功"}"
// @Param data body dto.OrgMatchEvaluateUpdateReq true "body"
// @Router /api/v1/org-match-evaluate [delete]
// @Success 200 {string} string "{"code": 200, "message": "修改成功"}"
// @Router /api/v1/org-match-evaluate/status/{id} [put]
// @Security Bearer
// @Security Bearer
func
(
e
OrgMatchEvaluate
)
Delete
(
c
*
gin
.
Context
)
{
func
(
e
OrgMatchEvaluate
)
Status
(
c
*
gin
.
Context
)
{
s
:=
service
.
OrgMatchEvaluate
{}
req
:=
dto
.
OrgMatchEvaluateUpdateReq
{}
req
:=
dto
.
OrgMatchEvaluateDeleteReq
{}
s
:=
service
.
OrgMatchEvaluate
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
MakeOrm
()
.
Bind
(
&
req
)
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
MakeService
(
&
s
.
Service
)
.
Errors
Errors
if
err
!=
nil
{
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
e
.
Error
(
500
,
err
,
err
.
Error
())
return
return
}
}
req
.
SetUpdateBy
(
user
.
GetUserId
(
c
))
// req.SetUpdateBy(user.GetUserId(c))
p
:=
actions
.
GetPermissionFromContext
(
c
)
p
:=
actions
.
GetPermissionFromContext
(
c
)
err
=
s
.
Remov
e
(
&
req
,
p
)
err
=
s
.
Updat
e
(
&
req
,
p
)
if
err
!=
nil
{
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"
删除比赛球员信息
失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"
修改比赛球员信息
失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
return
}
}
e
.
OK
(
req
.
GetId
(),
"
删除
成功"
)
e
.
OK
(
req
.
GetId
(),
"
修改
成功"
)
}
}
\ No newline at end of file
app/operate/apis/org_match_team.go
deleted
100644 → 0
View file @
0183cdab
package
apis
import
(
"fmt"
"github.com/gin-gonic/gin"
"github.com/go-admin-team/go-admin-core/sdk/api"
"github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth/user"
_
"github.com/go-admin-team/go-admin-core/sdk/pkg/response"
"go-admin/app/operate/models"
"go-admin/app/operate/service"
"go-admin/app/operate/service/dto"
"go-admin/common/actions"
)
type
OrgMatchTeam
struct
{
api
.
Api
}
// GetPage 获取比赛球队数据列表
// @Summary 获取比赛球队数据列表
// @Description 获取比赛球队数据列表
// @Tags 比赛球队数据
// @Param pageSize query int false "页条数"
// @Param pageIndex query int false "页码"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-match-team [get]
// @Security Bearer
func
(
e
OrgMatchTeam
)
GetPage
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchTeamGetPageReq
{}
s
:=
service
.
OrgMatchTeam
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
p
:=
actions
.
GetPermissionFromContext
(
c
)
list
:=
make
([]
models
.
OrgMatchTeam
,
0
)
var
count
int64
err
=
s
.
GetPage
(
&
req
,
p
,
&
list
,
&
count
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"获取比赛球队数据 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
}
// Get 获取比赛球队数据
// @Summary 获取比赛球队数据
// @Description 获取比赛球队数据
// @Tags 比赛球队数据
// @Param id path string false "id"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-match-team/{id} [get]
// @Security Bearer
func
(
e
OrgMatchTeam
)
Get
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchTeamGetReq
{}
s
:=
service
.
OrgMatchTeam
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
var
object
models
.
OrgMatchTeam
p
:=
actions
.
GetPermissionFromContext
(
c
)
err
=
s
.
Get
(
&
req
,
p
,
&
object
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"获取比赛球队数据失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
object
,
"查询成功"
)
}
// Insert 创建比赛球队数据
// @Summary 创建比赛球队数据
// @Description 创建比赛球队数据
// @Tags 比赛球队数据
// @Accept application/json
// @Product application/json
// @Param data body dto.OrgMatchTeamInsertReq true "data"
// @Success 200 {string} string "{"code": 200, "message": "添加成功"}"
// @Router /api/v1/org-match-team [post]
// @Security Bearer
func
(
e
OrgMatchTeam
)
Insert
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchTeamInsertReq
{}
s
:=
service
.
OrgMatchTeam
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
// 设置创建人
req
.
SetCreateBy
(
user
.
GetUserId
(
c
))
err
=
s
.
Insert
(
&
req
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"创建比赛球队数据 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
req
.
GetId
(),
"创建成功"
)
}
// Update 修改比赛球队数据
// @Summary 修改比赛球队数据
// @Description 修改比赛球队数据
// @Tags 比赛球队数据
// @Accept application/json
// @Product application/json
// @Param data body dto.OrgMatchTeamUpdateReq true "body"
// @Success 200 {string} string "{"code": 200, "message": "修改成功"}"
// @Router /api/v1/org-match-team/{id} [put]
// @Security Bearer
func
(
e
OrgMatchTeam
)
Update
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchTeamUpdateReq
{}
s
:=
service
.
OrgMatchTeam
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
req
.
SetUpdateBy
(
user
.
GetUserId
(
c
))
p
:=
actions
.
GetPermissionFromContext
(
c
)
err
=
s
.
Update
(
&
req
,
p
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"修改比赛球队数据 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
}
// Delete 删除比赛球队数据
// @Summary 删除比赛球队数据
// @Description 删除比赛球队数据
// @Tags 比赛球队数据
// @Param ids body []int false "ids"
// @Success 200 {string} string "{"code": 200, "message": "删除成功"}"
// @Router /api/v1/org-match-team [delete]
// @Security Bearer
func
(
e
OrgMatchTeam
)
Delete
(
c
*
gin
.
Context
)
{
s
:=
service
.
OrgMatchTeam
{}
req
:=
dto
.
OrgMatchTeamDeleteReq
{}
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
e
.
Logger
.
Error
(
err
)
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
// req.SetUpdateBy(user.GetUserId(c))
p
:=
actions
.
GetPermissionFromContext
(
c
)
err
=
s
.
Remove
(
&
req
,
p
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"删除比赛球队数据失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
req
.
GetId
(),
"删除成功"
)
}
\ No newline at end of file
app/operate/apis/org_season.go
View file @
754b285d
...
@@ -18,10 +18,10 @@ type OrgSeason struct {
...
@@ -18,10 +18,10 @@ type OrgSeason struct {
api
.
Api
api
.
Api
}
}
// 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 "页码"
// @Success 200 {string} string {data=response.Page{list=[]models.OrgSeason}} "{"code": 200, "data": [...]}"
// @Success 200 {string} string {data=response.Page{list=[]models.OrgSeason}} "{"code": 200, "data": [...]}"
...
@@ -54,10 +54,10 @@ func (e OrgSeason) GetPage(c *gin.Context) {
...
@@ -54,10 +54,10 @@ func (e OrgSeason) GetPage(c *gin.Context) {
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
e
.
PageOK
(
list
,
int
(
count
),
req
.
GetPageIndex
(),
req
.
GetPageSize
(),
"查询成功"
)
}
}
// 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.OrgSeason} "{"code": 200, "data": [...]}"
// @Success 200 {string} string {data=models.OrgSeason} "{"code": 200, "data": [...]}"
// @Router /api/v1/org-season/{id} [get]
// @Router /api/v1/org-season/{id} [get]
...
@@ -87,10 +87,10 @@ func (e OrgSeason) Get(c *gin.Context) {
...
@@ -87,10 +87,10 @@ func (e OrgSeason) Get(c *gin.Context) {
e
.
OK
(
object
,
"查询成功"
)
e
.
OK
(
object
,
"查询成功"
)
}
}
// Insert 创建赛季
// Insert
<赛事>
创建赛季
// @Summary 创建赛季
// @Summary
<赛事>
创建赛季
// @Description 创建赛季
// @Description
<赛事>
创建赛季
// @Tags 赛季
// @Tags
<赛事>
赛季
// @Accept application/json
// @Accept application/json
// @Product application/json
// @Product application/json
// @Param data body dto.OrgSeasonInsertReq true "data"
// @Param data body dto.OrgSeasonInsertReq true "data"
...
@@ -122,10 +122,10 @@ func (e OrgSeason) Insert(c *gin.Context) {
...
@@ -122,10 +122,10 @@ func (e OrgSeason) Insert(c *gin.Context) {
e
.
OK
(
req
.
GetId
(),
"创建成功"
)
e
.
OK
(
req
.
GetId
(),
"创建成功"
)
}
}
// Update 修改赛季
// Update
<赛事>
修改赛季
// @Summary 修改赛季
// @Summary
<赛事>
修改赛季
// @Description 修改赛季
// @Description
<赛事>
修改赛季
// @Tags 赛季
// @Tags
<赛事>
赛季
// @Accept application/json
// @Accept application/json
// @Product application/json
// @Product application/json
// @Param data body dto.OrgSeasonUpdateReq true "body"
// @Param data body dto.OrgSeasonUpdateReq true "body"
...
@@ -159,7 +159,7 @@ func (e OrgSeason) Update(c *gin.Context) {
...
@@ -159,7 +159,7 @@ func (e OrgSeason) Update(c *gin.Context) {
// Delete 删除赛季
// Delete 删除赛季
// @Summary 删除赛季
// @Summary 删除赛季
// @Description 删除赛季
// @Description 删除赛季
// @Tags 赛季
// @Tags
<赛事>
赛季
// @Param ids body []int false "ids"
// @Param ids body []int false "ids"
// @Success 200 {string} string "{"code": 200, "message": "删除成功"}"
// @Success 200 {string} string "{"code": 200, "message": "删除成功"}"
// @Router /api/v1/org-season [delete]
// @Router /api/v1/org-season [delete]
...
...
app/operate/apis/org_team_match.go
View file @
754b285d
...
@@ -60,7 +60,7 @@ func (e OrgTeamMatch) GetPage(c *gin.Context) {
...
@@ -60,7 +60,7 @@ func (e OrgTeamMatch) GetPage(c *gin.Context) {
// @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/get-players/{id} [get]
// @Router /api/v1/
org-team-match/
get-players/{id} [get]
// @Security Bearer
// @Security Bearer
func
(
e
OrgTeamMatch
)
GetPlayers
(
c
*
gin
.
Context
)
{
func
(
e
OrgTeamMatch
)
GetPlayers
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchGetReq
{}
req
:=
dto
.
OrgMatchGetReq
{}
...
@@ -93,7 +93,7 @@ func (e OrgTeamMatch) GetPlayers(c *gin.Context) {
...
@@ -93,7 +93,7 @@ func (e OrgTeamMatch) GetPlayers(c *gin.Context) {
// @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/
get-players
/get-players-is-set/{id} [get]
// @Router /api/v1/
org-team-match
/get-players-is-set/{id} [get]
// @Security Bearer
// @Security Bearer
func
(
e
OrgTeamMatch
)
GetPlayersIsSet
(
c
*
gin
.
Context
)
{
func
(
e
OrgTeamMatch
)
GetPlayersIsSet
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchGetReq
{}
req
:=
dto
.
OrgMatchGetReq
{}
...
@@ -128,7 +128,7 @@ func (e OrgTeamMatch) GetPlayersIsSet(c *gin.Context) {
...
@@ -128,7 +128,7 @@ func (e OrgTeamMatch) GetPlayersIsSet(c *gin.Context) {
// @Product application/json
// @Product application/json
// @Param data body dto.OrgMatchUpdateReq true "body"
// @Param data body dto.OrgMatchUpdateReq true "body"
// @Success 200 {string} string "{"code": 200, "message": "修改成功"}"
// @Success 200 {string} string "{"code": 200, "message": "修改成功"}"
// @Router /api/v1/
get
-players/{id} [put]
// @Router /api/v1/
org-team-match/update
-players/{id} [put]
// @Security Bearer
// @Security Bearer
func
(
e
OrgTeamMatch
)
UpdatePlayers
(
c
*
gin
.
Context
)
{
func
(
e
OrgTeamMatch
)
UpdatePlayers
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgMatchUpdateReq
{}
req
:=
dto
.
OrgMatchUpdateReq
{}
...
...
app/operate/apis/org_user.go
View file @
754b285d
...
@@ -16,19 +16,19 @@ import (
...
@@ -16,19 +16,19 @@ import (
"go-admin/common/actions"
"go-admin/common/actions"
)
)
type
Sys
User
struct
{
type
Org
User
struct
{
api
.
Api
api
.
Api
}
}
// GetPage
// GetPage
// @Summary 列表用户信息数据
// @Summary
<赛事>
列表用户信息数据
// @Description 获取JSON
// @Description 获取JSON
// @Tags 用户
// @Tags 用户
// @Param username query string false "username"
// @Param username query string false "username"
// @Success 200 {string} {object} response.Response "{"code": 200, "data": [...]}"
// @Success 200 {string} {object} response.Response "{"code": 200, "data": [...]}"
// @Router /api/v1/
sys
-user [get]
// @Router /api/v1/
org
-user [get]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
GetPage
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
GetPage
(
c
*
gin
.
Context
)
{
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
req
:=
dto
.
SysUserGetPageReq
{}
req
:=
dto
.
SysUserGetPageReq
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
...
@@ -63,9 +63,9 @@ func (e SysUser) GetPage(c *gin.Context) {
...
@@ -63,9 +63,9 @@ func (e SysUser) GetPage(c *gin.Context) {
// @Tags 用户
// @Tags 用户
// @Param userId path int true "用户编码"
// @Param userId path int true "用户编码"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/
sys
-user/{userId} [get]
// @Router /api/v1/
org
-user/{userId} [get]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
Get
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
Get
(
c
*
gin
.
Context
)
{
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
req
:=
dto
.
SysUserById
{}
req
:=
dto
.
SysUserById
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
...
@@ -97,9 +97,9 @@ func (e SysUser) Get(c *gin.Context) {
...
@@ -97,9 +97,9 @@ func (e SysUser) Get(c *gin.Context) {
// @Product application/json
// @Product application/json
// @Param data body dto.SysUserInsertReq true "用户数据"
// @Param data body dto.SysUserInsertReq true "用户数据"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/
sys
-user [post]
// @Router /api/v1/
org
-user [post]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
Insert
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
Insert
(
c
*
gin
.
Context
)
{
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
req
:=
dto
.
SysUserInsertReq
{}
req
:=
dto
.
SysUserInsertReq
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
...
@@ -132,9 +132,9 @@ func (e SysUser) Insert(c *gin.Context) {
...
@@ -132,9 +132,9 @@ func (e SysUser) Insert(c *gin.Context) {
// @Product application/json
// @Product application/json
// @Param data body dto.SysUserUpdateReq true "body"
// @Param data body dto.SysUserUpdateReq true "body"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/
sys
-user/{userId} [put]
// @Router /api/v1/
org
-user/{userId} [put]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
Update
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
Update
(
c
*
gin
.
Context
)
{
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
req
:=
dto
.
SysUserUpdateReq
{}
req
:=
dto
.
SysUserUpdateReq
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
...
@@ -167,9 +167,9 @@ func (e SysUser) Update(c *gin.Context) {
...
@@ -167,9 +167,9 @@ func (e SysUser) Update(c *gin.Context) {
// @Tags 用户
// @Tags 用户
// @Param userId path int true "userId"
// @Param userId path int true "userId"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/
sys
-user/{userId} [delete]
// @Router /api/v1/
org
-user/{userId} [delete]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
Delete
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
Delete
(
c
*
gin
.
Context
)
{
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
req
:=
dto
.
SysUserById
{}
req
:=
dto
.
SysUserById
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
...
@@ -204,9 +204,9 @@ func (e SysUser) Delete(c *gin.Context) {
...
@@ -204,9 +204,9 @@ func (e SysUser) Delete(c *gin.Context) {
// @Accept multipart/form-data
// @Accept multipart/form-data
// @Param file formData file true "file"
// @Param file formData file true "file"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/user/avatar [post]
// @Router /api/v1/
org-
user/avatar [post]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
InsetAvatar
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
InsetAvatar
(
c
*
gin
.
Context
)
{
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
req
:=
dto
.
UpdateSysUserAvatarReq
{}
req
:=
dto
.
UpdateSysUserAvatarReq
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
...
@@ -253,9 +253,9 @@ func (e SysUser) InsetAvatar(c *gin.Context) {
...
@@ -253,9 +253,9 @@ func (e SysUser) InsetAvatar(c *gin.Context) {
// @Product application/json
// @Product application/json
// @Param data body dto.UpdateSysUserStatusReq true "body"
// @Param data body dto.UpdateSysUserStatusReq true "body"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/user/status [put]
// @Router /api/v1/
org-
user/status [put]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
UpdateStatus
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
UpdateStatus
(
c
*
gin
.
Context
)
{
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
req
:=
dto
.
UpdateSysUserStatusReq
{}
req
:=
dto
.
UpdateSysUserStatusReq
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
...
@@ -290,9 +290,9 @@ func (e SysUser) UpdateStatus(c *gin.Context) {
...
@@ -290,9 +290,9 @@ func (e SysUser) UpdateStatus(c *gin.Context) {
// @Product application/json
// @Product application/json
// @Param data body dto.ResetSysUserPwdReq true "body"
// @Param data body dto.ResetSysUserPwdReq true "body"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/user/pwd/reset [put]
// @Router /api/v1/
org-
user/pwd/reset [put]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
ResetPwd
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
ResetPwd
(
c
*
gin
.
Context
)
{
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
req
:=
dto
.
ResetSysUserPwdReq
{}
req
:=
dto
.
ResetSysUserPwdReq
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
...
@@ -327,9 +327,9 @@ func (e SysUser) ResetPwd(c *gin.Context) {
...
@@ -327,9 +327,9 @@ func (e SysUser) ResetPwd(c *gin.Context) {
// @Product application/json
// @Product application/json
// @Param data body dto.PassWord true "body"
// @Param data body dto.PassWord true "body"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/user/pwd/set [put]
// @Router /api/v1/
org-
user/pwd/set [put]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
UpdatePwd
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
UpdatePwd
(
c
*
gin
.
Context
)
{
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
req
:=
dto
.
PassWord
{}
req
:=
dto
.
PassWord
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
...
@@ -360,9 +360,9 @@ func (e SysUser) UpdatePwd(c *gin.Context) {
...
@@ -360,9 +360,9 @@ func (e SysUser) UpdatePwd(c *gin.Context) {
// @Description 获取JSON
// @Description 获取JSON
// @Tags 个人中心
// @Tags 个人中心
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/user/profile [get]
// @Router /api/v1/
org-
user/profile [get]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
GetProfile
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
GetProfile
(
c
*
gin
.
Context
)
{
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
req
:=
dto
.
SysUserById
{}
req
:=
dto
.
SysUserById
{}
err
:=
e
.
MakeContext
(
c
)
.
err
:=
e
.
MakeContext
(
c
)
.
...
@@ -398,9 +398,9 @@ func (e SysUser) GetProfile(c *gin.Context) {
...
@@ -398,9 +398,9 @@ func (e SysUser) GetProfile(c *gin.Context) {
// @Description 获取JSON
// @Description 获取JSON
// @Tags 个人中心
// @Tags 个人中心
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/getinfo [get]
// @Router /api/v1/
org-user/
getinfo [get]
// @Security Bearer
// @Security Bearer
func
(
e
Sys
User
)
GetInfo
(
c
*
gin
.
Context
)
{
func
(
e
Org
User
)
GetInfo
(
c
*
gin
.
Context
)
{
req
:=
dto
.
SysUserById
{}
req
:=
dto
.
SysUserById
{}
s
:=
service
.
SysUser
{}
s
:=
service
.
SysUser
{}
r
:=
service
.
SysRole
{}
r
:=
service
.
SysRole
{}
...
...
app/operate/models/org_match_team.go
deleted
100644 → 0
View file @
0183cdab
package
models
import
(
// "gorm.io/gorm"
"go-admin/common/models"
)
type
OrgMatchTeam
struct
{
models
.
Model
MatchId
string
`json:"matchId" gorm:"type:bigint(20);comment:MatchId"`
ClubId
string
`json:"clubId" gorm:"type:bigint(20);comment:ClubId"`
TeamId
string
`json:"teamId" gorm:"type:bigint(20);comment:TeamId"`
MatchScore
string
`json:"matchScore" gorm:"type:bigint(20);comment:比分"`
Integral
string
`json:"integral" gorm:"type:bigint(20);comment:积分"`
models
.
ModelTime
models
.
ControlBy
}
func
(
OrgMatchTeam
)
TableName
()
string
{
return
"org_match_team"
}
func
(
e
*
OrgMatchTeam
)
Generate
()
models
.
ActiveRecord
{
o
:=
*
e
return
&
o
}
func
(
e
*
OrgMatchTeam
)
GetId
()
interface
{}
{
return
e
.
Id
}
\ No newline at end of file
app/operate/router/org_match.go
View file @
754b285d
...
@@ -22,5 +22,9 @@ func registerOrgMatchRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddl
...
@@ -22,5 +22,9 @@ func registerOrgMatchRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddl
r
.
POST
(
""
,
api
.
Insert
)
r
.
POST
(
""
,
api
.
Insert
)
r
.
PUT
(
"/:id"
,
api
.
Update
)
r
.
PUT
(
"/:id"
,
api
.
Update
)
r
.
DELETE
(
""
,
api
.
Delete
)
r
.
DELETE
(
""
,
api
.
Delete
)
r
.
GET
(
"/get-players/:id"
,
api
.
GetPlayers
)
r
.
GET
(
"/get-players-is-set/:id"
,
api
.
GetPlayersIsSet
)
r
.
PUT
(
"/update-players/:id"
,
api
.
UpdatePlayers
)
r
.
PUT
(
"/update-players-date/:id"
,
api
.
UpdatePlayersData
)
}
}
}
}
\ No newline at end of file
app/operate/router/org_match_evaluate.go
View file @
754b285d
...
@@ -18,9 +18,9 @@ func registerOrgMatchEvaluateRouter(v1 *gin.RouterGroup, authMiddleware *jwt.Gin
...
@@ -18,9 +18,9 @@ func registerOrgMatchEvaluateRouter(v1 *gin.RouterGroup, authMiddleware *jwt.Gin
r
:=
v1
.
Group
(
"/org-match-evaluate"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
r
:=
v1
.
Group
(
"/org-match-evaluate"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
{
{
r
.
GET
(
""
,
api
.
GetPage
)
r
.
GET
(
""
,
api
.
GetPage
)
r
.
GET
(
"/get-match"
,
api
.
GetPageMatch
)
r
.
GET
(
"/:id"
,
api
.
Get
)
r
.
GET
(
"/:id"
,
api
.
Get
)
r
.
POST
(
""
,
api
.
Insert
)
r
.
PUT
(
"/:id"
,
api
.
Update
)
r
.
PUT
(
"/:id"
,
api
.
Update
)
r
.
DELETE
(
""
,
api
.
Delete
)
r
.
PUT
(
"/status/:id"
,
api
.
Status
)
}
}
}
}
\ No newline at end of file
app/operate/router/org_match_team.go
deleted
100644 → 0
View file @
0183cdab
package
router
import
(
"github.com/gin-gonic/gin"
jwt
"github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
"go-admin/app/operate/apis"
"go-admin/common/middleware"
)
func
init
()
{
routerCheckRole
=
append
(
routerCheckRole
,
registerOrgMatchTeamRouter
)
}
// registerOrgMatchTeamRouter
func
registerOrgMatchTeamRouter
(
v1
*
gin
.
RouterGroup
,
authMiddleware
*
jwt
.
GinJWTMiddleware
)
{
api
:=
apis
.
OrgMatchTeam
{}
r
:=
v1
.
Group
(
"/org-match-team"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
{
r
.
GET
(
""
,
api
.
GetPage
)
r
.
GET
(
"/:id"
,
api
.
Get
)
r
.
POST
(
""
,
api
.
Insert
)
r
.
PUT
(
"/:id"
,
api
.
Update
)
r
.
DELETE
(
""
,
api
.
Delete
)
}
}
\ No newline at end of file
app/operate/router/org_team_match.go
View file @
754b285d
...
@@ -18,8 +18,8 @@ func registerOrgTeamMatchRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTM
...
@@ -18,8 +18,8 @@ func registerOrgTeamMatchRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTM
r
:=
v1
.
Group
(
"/org-team-match"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
r
:=
v1
.
Group
(
"/org-team-match"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
{
{
r
.
GET
(
""
,
api
.
GetPage
)
r
.
GET
(
""
,
api
.
GetPage
)
r
.
GET
(
"/:id"
,
api
.
GetPlayers
)
r
.
GET
(
"/
get-players/
:id"
,
api
.
GetPlayers
)
r
.
GET
(
"/get-players-is-set/:id"
,
api
.
GetPlayersIsSet
)
r
.
GET
(
"/get-players-is-set/:id"
,
api
.
GetPlayersIsSet
)
r
.
PUT
(
"/:id"
,
api
.
UpdatePlayers
)
r
.
PUT
(
"/
update-players/
:id"
,
api
.
UpdatePlayers
)
}
}
}
}
\ No newline at end of file
app/operate/router/org_user.go
View file @
754b285d
...
@@ -3,19 +3,19 @@ package router
...
@@ -3,19 +3,19 @@ package router
import
(
import
(
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin"
jwt
"github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
jwt
"github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
"go-admin/app/
admin
/apis"
"go-admin/app/
operate
/apis"
"go-admin/common/actions"
"go-admin/common/actions"
"go-admin/common/middleware"
"go-admin/common/middleware"
)
)
func
init
()
{
func
init
()
{
routerCheckRole
=
append
(
routerCheckRole
,
register
Sys
UserRouter
)
routerCheckRole
=
append
(
routerCheckRole
,
register
Org
UserRouter
)
}
}
// 需认证的路由代码
// 需认证的路由代码
func
register
Sys
UserRouter
(
v1
*
gin
.
RouterGroup
,
authMiddleware
*
jwt
.
GinJWTMiddleware
)
{
func
register
Org
UserRouter
(
v1
*
gin
.
RouterGroup
,
authMiddleware
*
jwt
.
GinJWTMiddleware
)
{
api
:=
apis
.
Sys
User
{}
api
:=
apis
.
Org
User
{}
r
:=
v1
.
Group
(
"/
sys
-user"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
.
Use
(
actions
.
PermissionAction
())
r
:=
v1
.
Group
(
"/
org
-user"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
.
Use
(
actions
.
PermissionAction
())
{
{
r
.
GET
(
""
,
api
.
GetPage
)
r
.
GET
(
""
,
api
.
GetPage
)
r
.
GET
(
"/:id"
,
api
.
Get
)
r
.
GET
(
"/:id"
,
api
.
Get
)
...
@@ -24,7 +24,7 @@ func registerSysUserRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddle
...
@@ -24,7 +24,7 @@ func registerSysUserRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddle
r
.
DELETE
(
""
,
api
.
Delete
)
r
.
DELETE
(
""
,
api
.
Delete
)
}
}
user
:=
v1
.
Group
(
"/user"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
.
Use
(
actions
.
PermissionAction
())
user
:=
v1
.
Group
(
"/
org-
user"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
.
Use
(
actions
.
PermissionAction
())
{
{
user
.
GET
(
"/profile"
,
api
.
GetProfile
)
user
.
GET
(
"/profile"
,
api
.
GetProfile
)
user
.
POST
(
"/avatar"
,
api
.
InsetAvatar
)
user
.
POST
(
"/avatar"
,
api
.
InsetAvatar
)
...
@@ -32,7 +32,7 @@ func registerSysUserRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddle
...
@@ -32,7 +32,7 @@ func registerSysUserRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddle
user
.
PUT
(
"/pwd/reset"
,
api
.
ResetPwd
)
user
.
PUT
(
"/pwd/reset"
,
api
.
ResetPwd
)
user
.
PUT
(
"/status"
,
api
.
UpdateStatus
)
user
.
PUT
(
"/status"
,
api
.
UpdateStatus
)
}
}
v1auth
:=
v1
.
Group
(
""
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
v1auth
:=
v1
.
Group
(
"
/org-user
"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
{
{
v1auth
.
GET
(
"/getinfo"
,
api
.
GetInfo
)
v1auth
.
GET
(
"/getinfo"
,
api
.
GetInfo
)
}
}
...
...
app/operate/service/dto/org_match_team.go
deleted
100644 → 0
View file @
0183cdab
package
dto
import
(
"go-admin/app/operate/models"
"go-admin/common/dto"
common
"go-admin/common/models"
"time"
)
type
OrgMatchTeamGetPageReq
struct
{
dto
.
Pagination
`search:"-"`
OrgMatchTeamOrder
}
type
OrgMatchTeamOrder
struct
{
Id
int
`form:"idOrder" search:"type:order;column:id;table:org_match_team"`
MatchId
string
`form:"matchIdOrder" search:"type:order;column:match_id;table:org_match_team"`
ClubId
string
`form:"clubIdOrder" search:"type:order;column:club_id;table:org_match_team"`
TeamId
string
`form:"teamIdOrder" search:"type:order;column:team_id;table:org_match_team"`
MatchScore
string
`form:"matchScoreOrder" search:"type:order;column:match_score;table:org_match_team"`
Integral
string
`form:"integralOrder" search:"type:order;column:integral;table:org_match_team"`
CreateBy
string
`form:"createByOrder" search:"type:order;column:create_by;table:org_match_team"`
UpdateBy
string
`form:"updateByOrder" search:"type:order;column:update_by;table:org_match_team"`
CreatedAt
time
.
Time
`form:"createdAtOrder" search:"type:order;column:created_at;table:org_match_team"`
UpdatedAt
time
.
Time
`form:"updatedAtOrder" search:"type:order;column:updated_at;table:org_match_team"`
DeletedAt
time
.
Time
`form:"deletedAtOrder" search:"type:order;column:deleted_at;table:org_match_team"`
}
func
(
m
*
OrgMatchTeamGetPageReq
)
GetNeedSearch
()
interface
{}
{
return
*
m
}
type
OrgMatchTeamInsertReq
struct
{
Id
int
`json:"-" comment:""`
//
MatchId
string
`json:"matchId" comment:""`
ClubId
string
`json:"clubId" comment:""`
TeamId
string
`json:"teamId" comment:""`
MatchScore
string
`json:"matchScore" comment:"比分"`
Integral
string
`json:"integral" comment:"积分"`
common
.
ControlBy
}
func
(
s
*
OrgMatchTeamInsertReq
)
Generate
(
model
*
models
.
OrgMatchTeam
)
{
if
s
.
Id
==
0
{
model
.
Model
=
common
.
Model
{
Id
:
s
.
Id
}
}
model
.
MatchId
=
s
.
MatchId
model
.
ClubId
=
s
.
ClubId
model
.
TeamId
=
s
.
TeamId
model
.
MatchScore
=
s
.
MatchScore
model
.
Integral
=
s
.
Integral
}
func
(
s
*
OrgMatchTeamInsertReq
)
GetId
()
interface
{}
{
return
s
.
Id
}
type
OrgMatchTeamUpdateReq
struct
{
Id
int
`uri:"id" comment:""`
//
MatchId
string
`json:"matchId" comment:""`
ClubId
string
`json:"clubId" comment:""`
TeamId
string
`json:"teamId" comment:""`
MatchScore
string
`json:"matchScore" comment:"比分"`
Integral
string
`json:"integral" comment:"积分"`
common
.
ControlBy
}
func
(
s
*
OrgMatchTeamUpdateReq
)
Generate
(
model
*
models
.
OrgMatchTeam
)
{
if
s
.
Id
==
0
{
model
.
Model
=
common
.
Model
{
Id
:
s
.
Id
}
}
model
.
MatchId
=
s
.
MatchId
model
.
ClubId
=
s
.
ClubId
model
.
TeamId
=
s
.
TeamId
model
.
MatchScore
=
s
.
MatchScore
model
.
Integral
=
s
.
Integral
}
func
(
s
*
OrgMatchTeamUpdateReq
)
GetId
()
interface
{}
{
return
s
.
Id
}
// OrgMatchTeamGetReq 功能获取请求参数
type
OrgMatchTeamGetReq
struct
{
Id
int
`uri:"id"`
}
func
(
s
*
OrgMatchTeamGetReq
)
GetId
()
interface
{}
{
return
s
.
Id
}
// OrgMatchTeamDeleteReq 功能删除请求参数
type
OrgMatchTeamDeleteReq
struct
{
Ids
[]
int
`json:"ids"`
}
func
(
s
*
OrgMatchTeamDeleteReq
)
GetId
()
interface
{}
{
return
s
.
Ids
}
\ No newline at end of file
app/operate/service/org_match_team.go
deleted
100644 → 0
View file @
0183cdab
package
service
import
(
"errors"
"github.com/go-admin-team/go-admin-core/sdk/service"
"gorm.io/gorm"
"go-admin/app/operate/models"
"go-admin/app/operate/service/dto"
"go-admin/common/actions"
cDto
"go-admin/common/dto"
)
type
OrgMatchTeam
struct
{
service
.
Service
}
// GetPage 获取OrgMatchTeam列表
func
(
e
*
OrgMatchTeam
)
GetPage
(
c
*
dto
.
OrgMatchTeamGetPageReq
,
p
*
actions
.
DataPermission
,
list
*
[]
models
.
OrgMatchTeam
,
count
*
int64
)
error
{
var
err
error
var
data
models
.
OrgMatchTeam
err
=
e
.
Orm
.
Model
(
&
data
)
.
Scopes
(
cDto
.
MakeCondition
(
c
.
GetNeedSearch
()),
cDto
.
Paginate
(
c
.
GetPageSize
(),
c
.
GetPageIndex
()),
actions
.
Permission
(
data
.
TableName
(),
p
),
)
.
Find
(
list
)
.
Limit
(
-
1
)
.
Offset
(
-
1
)
.
Count
(
count
)
.
Error
if
err
!=
nil
{
e
.
Log
.
Errorf
(
"OrgMatchTeamService GetPage error:%s
\r\n
"
,
err
)
return
err
}
return
nil
}
// Get 获取OrgMatchTeam对象
func
(
e
*
OrgMatchTeam
)
Get
(
d
*
dto
.
OrgMatchTeamGetReq
,
p
*
actions
.
DataPermission
,
model
*
models
.
OrgMatchTeam
)
error
{
var
data
models
.
OrgMatchTeam
err
:=
e
.
Orm
.
Model
(
&
data
)
.
Scopes
(
actions
.
Permission
(
data
.
TableName
(),
p
),
)
.
First
(
model
,
d
.
GetId
())
.
Error
if
err
!=
nil
&&
errors
.
Is
(
err
,
gorm
.
ErrRecordNotFound
)
{
err
=
errors
.
New
(
"查看对象不存在或无权查看"
)
e
.
Log
.
Errorf
(
"Service GetOrgMatchTeam error:%s
\r\n
"
,
err
)
return
err
}
if
err
!=
nil
{
e
.
Log
.
Errorf
(
"db error:%s"
,
err
)
return
err
}
return
nil
}
// Insert 创建OrgMatchTeam对象
func
(
e
*
OrgMatchTeam
)
Insert
(
c
*
dto
.
OrgMatchTeamInsertReq
)
error
{
var
err
error
var
data
models
.
OrgMatchTeam
c
.
Generate
(
&
data
)
err
=
e
.
Orm
.
Create
(
&
data
)
.
Error
if
err
!=
nil
{
e
.
Log
.
Errorf
(
"OrgMatchTeamService Insert error:%s
\r\n
"
,
err
)
return
err
}
return
nil
}
// Update 修改OrgMatchTeam对象
func
(
e
*
OrgMatchTeam
)
Update
(
c
*
dto
.
OrgMatchTeamUpdateReq
,
p
*
actions
.
DataPermission
)
error
{
var
err
error
var
data
=
models
.
OrgMatchTeam
{}
e
.
Orm
.
Scopes
(
actions
.
Permission
(
data
.
TableName
(),
p
),
)
.
First
(
&
data
,
c
.
GetId
())
c
.
Generate
(
&
data
)
db
:=
e
.
Orm
.
Save
(
&
data
)
if
db
.
Error
!=
nil
{
e
.
Log
.
Errorf
(
"OrgMatchTeamService Save error:%s
\r\n
"
,
err
)
return
err
}
if
db
.
RowsAffected
==
0
{
return
errors
.
New
(
"无权更新该数据"
)
}
return
nil
}
// Remove 删除OrgMatchTeam
func
(
e
*
OrgMatchTeam
)
Remove
(
d
*
dto
.
OrgMatchTeamDeleteReq
,
p
*
actions
.
DataPermission
)
error
{
var
data
models
.
OrgMatchTeam
db
:=
e
.
Orm
.
Model
(
&
data
)
.
Scopes
(
actions
.
Permission
(
data
.
TableName
(),
p
),
)
.
Delete
(
&
data
,
d
.
GetId
())
if
err
:=
db
.
Error
;
err
!=
nil
{
e
.
Log
.
Errorf
(
"Service RemoveOrgMatchTeam error:%s
\r\n
"
,
err
)
return
err
}
if
db
.
RowsAffected
==
0
{
return
errors
.
New
(
"无权删除该数据"
)
}
return
nil
}
\ No newline at end of file
docs/docs.go
View file @
754b285d
...
@@ -1037,11 +1037,11 @@ var doc = `{
...
@@ -1037,11 +1037,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取广告列表",
"description": "
\u003c运营\u003e
获取广告列表",
"tags": [
"tags": [
"广告"
"
\u003c运营\u003e
广告"
],
],
"summary": "获取广告列表",
"summary": "
\u003c运营\u003e
获取广告列表",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "integer",
...
@@ -1071,14 +1071,14 @@ var doc = `{
...
@@ -1071,14 +1071,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "创建广告",
"description": "
\u003c运营\u003e
创建广告",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"广告"
"
\u003c运营\u003e
广告"
],
],
"summary": "创建广告",
"summary": "
\u003c运营\u003e
创建广告",
"parameters": [
"parameters": [
{
{
"description": "data",
"description": "data",
...
@@ -1105,11 +1105,11 @@ var doc = `{
...
@@ -1105,11 +1105,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "删除广告",
"description": "
\u003c运营\u003e
删除广告",
"tags": [
"tags": [
"广告"
"
\u003c运营\u003e
广告"
],
],
"summary": "删除广告",
"summary": "
\u003c运营\u003e
删除广告",
"parameters": [
"parameters": [
{
{
"description": "ids",
"description": "ids",
...
@@ -1140,11 +1140,11 @@ var doc = `{
...
@@ -1140,11 +1140,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取广告",
"description": "
\u003c运营\u003e
获取广告",
"tags": [
"tags": [
"广告"
"
\u003c运营\u003e
广告"
],
],
"summary": "获取广告",
"summary": "
\u003c运营\u003e
获取广告",
"parameters": [
"parameters": [
{
{
"type": "string",
"type": "string",
...
@@ -1168,14 +1168,14 @@ var doc = `{
...
@@ -1168,14 +1168,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "修改广告",
"description": "
\u003c运营\u003e
修改广告",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"广告"
"
\u003c运营\u003e
广告"
],
],
"summary": "修改广告",
"summary": "
\u003c运营\u003e
修改广告",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -1204,11 +1204,11 @@ var doc = `{
...
@@ -1204,11 +1204,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取俱乐部列表",
"description": "
\u003c俱乐部\u003e
获取俱乐部列表",
"tags": [
"tags": [
"俱乐部"
"
\u003c俱乐部\u003e
俱乐部"
],
],
"summary": "获取俱乐部列表",
"summary": "
\u003c俱乐部\u003e
获取俱乐部列表",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "integer",
...
@@ -1238,14 +1238,14 @@ var doc = `{
...
@@ -1238,14 +1238,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "创建俱乐部",
"description": "
\u003c俱乐部\u003e
创建俱乐部",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"俱乐部"
"
\u003c俱乐部\u003e
俱乐部"
],
],
"summary": "创建俱乐部",
"summary": "
\u003c俱乐部\u003e
创建俱乐部",
"parameters": [
"parameters": [
{
{
"description": "data",
"description": "data",
...
@@ -1272,11 +1272,11 @@ var doc = `{
...
@@ -1272,11 +1272,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "删除俱乐部",
"description": "
\u003c俱乐部\u003e
删除俱乐部",
"tags": [
"tags": [
"俱乐部"
"
\u003c俱乐部\u003e
俱乐部"
],
],
"summary": "删除俱乐部",
"summary": "
\u003c俱乐部\u003e
删除俱乐部",
"parameters": [
"parameters": [
{
{
"description": "ids",
"description": "ids",
...
@@ -1300,6 +1300,108 @@ var doc = `{
...
@@ -1300,6 +1300,108 @@ var doc = `{
}
}
}
}
},
},
"/api/v1/org-club-team": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c俱乐部\u003e获取球队数据列表",
"tags": [
"\u003c俱乐部\u003e球队"
],
"summary": "\u003c俱乐部\u003e获取球队数据列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-club-team/get-match": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c俱乐部\u003e获取球队比赛列表",
"tags": [
"\u003c俱乐部\u003e球队"
],
"summary": "\u003c俱乐部\u003e获取球队比赛列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-club-team/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c俱乐部\u003e获取球队比赛详情",
"tags": [
"\u003c俱乐部\u003e球队"
],
"summary": "\u003c俱乐部\u003e获取球队比赛详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-club-user": {
"/api/v1/org-club-user": {
"get": {
"get": {
"security": [
"security": [
...
@@ -1474,11 +1576,11 @@ var doc = `{
...
@@ -1474,11 +1576,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取俱乐部",
"description": "
\u003c俱乐部\u003e
获取俱乐部",
"tags": [
"tags": [
"俱乐部"
"
\u003c俱乐部\u003e
俱乐部"
],
],
"summary": "获取俱乐部",
"summary": "
\u003c俱乐部\u003e
获取俱乐部",
"parameters": [
"parameters": [
{
{
"type": "string",
"type": "string",
...
@@ -1502,14 +1604,14 @@ var doc = `{
...
@@ -1502,14 +1604,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "修改俱乐部",
"description": "
\u003c俱乐部\u003e
修改俱乐部",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"俱乐部"
"
\u003c俱乐部\u003e
俱乐部"
],
],
"summary": "修改俱乐部",
"summary": "
\u003c俱乐部\u003e
修改俱乐部",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -1538,11 +1640,11 @@ var doc = `{
...
@@ -1538,11 +1640,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取赛区列表",
"description": "
\u003c赛事\u003e
获取赛区列表",
"tags": [
"tags": [
"赛区"
"
\u003c赛事\u003e
赛区"
],
],
"summary": "获取赛区列表",
"summary": "
\u003c赛事\u003e
获取赛区列表",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "integer",
...
@@ -1572,14 +1674,14 @@ var doc = `{
...
@@ -1572,14 +1674,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "创建赛区",
"description": "
\u003c赛事\u003e
创建赛区",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"赛区"
"
\u003c赛事\u003e
赛区"
],
],
"summary": "创建赛区",
"summary": "
\u003c赛事\u003e
创建赛区",
"parameters": [
"parameters": [
{
{
"description": "data",
"description": "data",
...
@@ -1606,11 +1708,11 @@ var doc = `{
...
@@ -1606,11 +1708,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "删除赛区",
"description": "
\u003c赛事\u003e
删除赛区",
"tags": [
"tags": [
"赛区"
"
\u003c赛事\u003e
赛区"
],
],
"summary": "删除赛区",
"summary": "
\u003c赛事\u003e
删除赛区",
"parameters": [
"parameters": [
{
{
"description": "ids",
"description": "ids",
...
@@ -1641,11 +1743,11 @@ var doc = `{
...
@@ -1641,11 +1743,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取赛区",
"description": "
\u003c赛事\u003e
获取赛区",
"tags": [
"tags": [
"赛区"
"
\u003c赛事\u003e
赛区"
],
],
"summary": "获取赛区",
"summary": "
\u003c赛事\u003e
获取赛区",
"parameters": [
"parameters": [
{
{
"type": "string",
"type": "string",
...
@@ -1669,14 +1771,14 @@ var doc = `{
...
@@ -1669,14 +1771,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "修改赛区",
"description": "
\u003c赛事\u003e
修改赛区",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"赛区"
"
\u003c赛事\u003e
赛区"
],
],
"summary": "修改赛区",
"summary": "
\u003c赛事\u003e
修改赛区",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -1872,11 +1974,11 @@ var doc = `{
...
@@ -1872,11 +1974,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取比赛列表",
"description": "
\u003c赛事\u003e
获取比赛列表",
"tags": [
"tags": [
"比赛"
"
\u003c赛事\u003e
比赛"
],
],
"summary": "获取比赛列表",
"summary": "
\u003c赛事\u003e
获取比赛列表",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "integer",
...
@@ -1906,14 +2008,14 @@ var doc = `{
...
@@ -1906,14 +2008,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "创建比赛",
"description": "
\u003c赛事\u003e
创建比赛",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"比赛"
"
\u003c赛事\u003e
比赛"
],
],
"summary": "创建比赛",
"summary": "
\u003c赛事\u003e
创建比赛",
"parameters": [
"parameters": [
{
{
"description": "data",
"description": "data",
...
@@ -1940,11 +2042,11 @@ var doc = `{
...
@@ -1940,11 +2042,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "删除比赛",
"description": "
\u003c赛事\u003e
删除比赛",
"tags": [
"tags": [
"比赛"
"
\u003c赛事\u003e
比赛"
],
],
"summary": "删除比赛",
"summary": "
\u003c赛事\u003e
删除比赛",
"parameters": [
"parameters": [
{
{
"description": "ids",
"description": "ids",
...
@@ -1975,11 +2077,11 @@ var doc = `{
...
@@ -1975,11 +2077,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "
获取比赛球员信息
列表",
"description": "
\u003c赛事\u003e赛后评价
列表",
"tags": [
"tags": [
"
比赛球员信息
"
"
\u003c赛事\u003e赛后评价
"
],
],
"summary": "
获取比赛球员信息
列表",
"summary": "
\u003c赛事\u003e赛后评价
列表",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "integer",
...
@@ -2002,68 +2104,73 @@ var doc = `{
...
@@ -2002,68 +2104,73 @@ var doc = `{
}
}
}
}
}
}
},
}
"post": {
},
"/api/v1/org-match-evaluate/get-match": {
"get": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "创建比赛球员信息",
"description": "\u003c赛事\u003e赛后评价比赛列表",
"consumes": [
"application/json"
],
"tags": [
"tags": [
"
比赛球员信息
"
"
\u003c赛事\u003e赛后评价
"
],
],
"summary": "
创建比赛球员信息
",
"summary": "
\u003c赛事\u003e赛后评价比赛列表
",
"parameters": [
"parameters": [
{
{
"description": "data",
"type": "integer",
"name": "data",
"description": "页条数",
"in": "body",
"name": "pageSize",
"required": true,
"in": "query"
"schema": {
},
"$ref": "#/definitions/dto.OrgMatchEvaluateInsertReq"
{
}
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"
message\": \"添加成功\"
}",
"description": "{\"code\": 200, \"
data\": [...]
}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
}
}
}
}
},
}
"delete": {
},
"/api/v1/org-match-evaluate/status/{id}": {
"put": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "删除比赛球员信息",
"description": "\u003c赛事\u003e赛后评价影像维护",
"consumes": [
"application/json"
],
"tags": [
"tags": [
"
比赛球员信息
"
"
\u003c赛事\u003e赛后评价
"
],
],
"summary": "
删除比赛球员信息
",
"summary": "
\u003c赛事\u003e赛后评价影像维护
",
"parameters": [
"parameters": [
{
{
"description": "
ids
",
"description": "
body
",
"name": "
ids
",
"name": "
data
",
"in": "body",
"in": "body",
"required": true,
"schema": {
"schema": {
"type": "array",
"$ref": "#/definitions/dto.OrgMatchEvaluateUpdateReq"
"items": {
"type": "integer"
}
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"message\": \"
删除
成功\"}",
"description": "{\"code\": 200, \"message\": \"
修改
成功\"}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
...
@@ -2078,11 +2185,11 @@ var doc = `{
...
@@ -2078,11 +2185,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "
获取比赛球员信息
",
"description": "
\u003c球队\u003e教练评价比赛详情
",
"tags": [
"tags": [
"
比赛球员信息
"
"
\u003c球队\u003e教练评价
"
],
],
"summary": "
获取比赛球员信息
",
"summary": "
\u003c球队\u003e教练评价比赛详情
",
"parameters": [
"parameters": [
{
{
"type": "string",
"type": "string",
...
@@ -2106,14 +2213,14 @@ var doc = `{
...
@@ -2106,14 +2213,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "
修改比赛球员信息
",
"description": "
\u003c球队\u003e修改评价
",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"
比赛球员信息
"
"
\u003c球队\u003e教练评价
"
],
],
"summary": "
修改比赛球员信息
",
"summary": "
\u003c球队\u003e修改评价
",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -2135,18 +2242,18 @@ var doc = `{
...
@@ -2135,18 +2242,18 @@ var doc = `{
}
}
}
}
},
},
"/api/v1/org-match-team": {
"/api/v1/org-match-team
-player
": {
"get": {
"get": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取比赛球
队
数据列表",
"description": "获取比赛球
员
数据列表",
"tags": [
"tags": [
"比赛球
队
数据"
"比赛球
员
数据"
],
],
"summary": "获取比赛球
队
数据列表",
"summary": "获取比赛球
员
数据列表",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "integer",
...
@@ -2176,14 +2283,14 @@ var doc = `{
...
@@ -2176,14 +2283,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "创建比赛球
队
数据",
"description": "创建比赛球
员
数据",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"比赛球
队
数据"
"比赛球
员
数据"
],
],
"summary": "创建比赛球
队
数据",
"summary": "创建比赛球
员
数据",
"parameters": [
"parameters": [
{
{
"description": "data",
"description": "data",
...
@@ -2191,7 +2298,7 @@ var doc = `{
...
@@ -2191,7 +2298,7 @@ var doc = `{
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/dto.OrgMatchTeamInsertReq"
"$ref": "#/definitions/dto.OrgMatchTeam
Player
InsertReq"
}
}
}
}
],
],
...
@@ -2210,11 +2317,11 @@ var doc = `{
...
@@ -2210,11 +2317,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "删除比赛球
队
数据",
"description": "删除比赛球
员
数据",
"tags": [
"tags": [
"比赛球
队
数据"
"比赛球
员
数据"
],
],
"summary": "删除比赛球
队
数据",
"summary": "删除比赛球
员
数据",
"parameters": [
"parameters": [
{
{
"description": "ids",
"description": "ids",
...
@@ -2238,30 +2345,24 @@ var doc = `{
...
@@ -2238,30 +2345,24 @@ var doc = `{
}
}
}
}
},
},
"/api/v1/org-match-team-player": {
"/api/v1/org-match-team-player
/{id}
": {
"get": {
"get": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取比赛球员数据
列表
",
"description": "获取比赛球员数据",
"tags": [
"tags": [
"比赛球员数据"
"比赛球员数据"
],
],
"summary": "获取比赛球员数据
列表
",
"summary": "获取比赛球员数据",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "string",
"description": "页条数",
"description": "id",
"name": "pageSize",
"name": "id",
"in": "query"
"in": "path"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
}
],
],
"responses": {
"responses": {
...
@@ -2273,67 +2374,64 @@ var doc = `{
...
@@ -2273,67 +2374,64 @@ var doc = `{
}
}
}
}
},
},
"p
os
t": {
"p
u
t": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "
创建
比赛球员数据",
"description": "
修改
比赛球员数据",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"比赛球员数据"
"比赛球员数据"
],
],
"summary": "
创建
比赛球员数据",
"summary": "
修改
比赛球员数据",
"parameters": [
"parameters": [
{
{
"description": "
data
",
"description": "
body
",
"name": "data",
"name": "data",
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/dto.OrgMatchTeamPlayer
Insert
Req"
"$ref": "#/definitions/dto.OrgMatchTeamPlayer
Update
Req"
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"message\": \"
添加
成功\"}",
"description": "{\"code\": 200, \"message\": \"
修改
成功\"}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
}
}
}
}
},
}
"delete": {
},
"/api/v1/org-match/get-players-is-set/{id}": {
"get": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "
删除比赛球员数据
",
"description": "
\u003c赛事\u003e获取比赛已设置球员
",
"tags": [
"tags": [
"
比赛球员数据
"
"
\u003c赛事\u003e比赛
"
],
],
"summary": "
删除比赛球员数据
",
"summary": "
\u003c赛事\u003e获取比赛已设置球员
",
"parameters": [
"parameters": [
{
{
"description": "ids",
"type": "string",
"name": "ids",
"description": "id",
"in": "body",
"name": "id",
"schema": {
"in": "path"
"type": "array",
"items": {
"type": "integer"
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"
message\": \"删除成功\"
}",
"description": "{\"code\": 200, \"
data\": [...]
}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
...
@@ -2341,18 +2439,18 @@ var doc = `{
...
@@ -2341,18 +2439,18 @@ var doc = `{
}
}
}
}
},
},
"/api/v1/org-match
-team-player
/{id}": {
"/api/v1/org-match
/get-players
/{id}": {
"get": {
"get": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "
获取比赛球员数据
",
"description": "
\u003c赛事\u003e获取比赛所有球员
",
"tags": [
"tags": [
"
比赛球员数据
"
"
\u003c赛事\u003e比赛
"
],
],
"summary": "
获取比赛球员数据
",
"summary": "
\u003c赛事\u003e获取比赛所有球员
",
"parameters": [
"parameters": [
{
{
"type": "string",
"type": "string",
...
@@ -2369,21 +2467,23 @@ var doc = `{
...
@@ -2369,21 +2467,23 @@ var doc = `{
}
}
}
}
}
}
},
}
},
"/api/v1/org-match/update-players-data/{id}": {
"put": {
"put": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "修改比赛球员数据",
"description": "
\u003c赛事\u003e
修改比赛球员数据",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"
比赛球员数据
"
"
\u003c赛事\u003e比赛
"
],
],
"summary": "修改比赛球员数据",
"summary": "
\u003c赛事\u003e
修改比赛球员数据",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -2391,7 +2491,7 @@ var doc = `{
...
@@ -2391,7 +2491,7 @@ var doc = `{
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/dto.OrgMatch
TeamPlayer
UpdateReq"
"$ref": "#/definitions/dto.OrgMatchUpdateReq"
}
}
}
}
],
],
...
@@ -2405,49 +2505,21 @@ var doc = `{
...
@@ -2405,49 +2505,21 @@ var doc = `{
}
}
}
}
},
},
"/api/v1/org-match-team/{id}": {
"/api/v1/org-match/update-players/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取比赛球队数据",
"tags": [
"比赛球队数据"
],
"summary": "获取比赛球队数据",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
},
"put": {
"put": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "
修改比赛球队数据
",
"description": "
\u003c赛事\u003e修改比赛球员
",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"
比赛球队数据
"
"
\u003c赛事\u003e比赛
"
],
],
"summary": "
修改比赛球队数据
",
"summary": "
\u003c赛事\u003e修改比赛球员
",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -2455,7 +2527,7 @@ var doc = `{
...
@@ -2455,7 +2527,7 @@ var doc = `{
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/dto.OrgMatch
Team
UpdateReq"
"$ref": "#/definitions/dto.OrgMatchUpdateReq"
}
}
}
}
],
],
...
@@ -2476,11 +2548,11 @@ var doc = `{
...
@@ -2476,11 +2548,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取比赛",
"description": "
\u003c赛事\u003e
获取比赛",
"tags": [
"tags": [
"比赛"
"
\u003c赛事\u003e
比赛"
],
],
"summary": "获取比赛",
"summary": "
\u003c赛事\u003e
获取比赛",
"parameters": [
"parameters": [
{
{
"type": "string",
"type": "string",
...
@@ -2504,14 +2576,14 @@ var doc = `{
...
@@ -2504,14 +2576,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "修改比赛",
"description": "
\u003c赛事\u003e
修改比赛",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"比赛"
"
\u003c赛事\u003e
比赛"
],
],
"summary": "修改比赛",
"summary": "
\u003c赛事\u003e
修改比赛",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -2707,11 +2779,11 @@ var doc = `{
...
@@ -2707,11 +2779,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取球员列表",
"description": "
\u003c球队\u003e
获取球员列表",
"tags": [
"tags": [
"球员"
"
\u003c球队\u003e
球员"
],
],
"summary": "获取球员列表",
"summary": "
\u003c球队\u003e
获取球员列表",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "integer",
...
@@ -2741,14 +2813,14 @@ var doc = `{
...
@@ -2741,14 +2813,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "创建球员",
"description": "
\u003c球队\u003e
创建球员",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"球员"
"
\u003c球队\u003e
球员"
],
],
"summary": "创建球员",
"summary": "
\u003c球队\u003e
创建球员",
"parameters": [
"parameters": [
{
{
"description": "data",
"description": "data",
...
@@ -2775,11 +2847,11 @@ var doc = `{
...
@@ -2775,11 +2847,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "删除球员",
"description": "
\u003c球队\u003e
删除球员",
"tags": [
"tags": [
"球员"
"
\u003c球队\u003e
球员"
],
],
"summary": "删除球员",
"summary": "
\u003c球队\u003e
删除球员",
"parameters": [
"parameters": [
{
{
"description": "ids",
"description": "ids",
...
@@ -2970,24 +3042,30 @@ var doc = `{
...
@@ -2970,24 +3042,30 @@ var doc = `{
}
}
}
}
},
},
"/api/v1/org-player/
{id}
": {
"/api/v1/org-player/
get-match
": {
"get": {
"get": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "
获取球员
",
"description": "
\u003c俱乐部\u003e获取球员比赛列表
",
"tags": [
"tags": [
"球员"
"
\u003c俱乐部\u003e
球员"
],
],
"summary": "
获取球员
",
"summary": "
\u003c俱乐部\u003e获取球员比赛列表
",
"parameters": [
"parameters": [
{
{
"type": "string",
"type": "integer",
"description": "id",
"description": "页条数",
"name": "id",
"name": "pageSize",
"in": "path"
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
}
],
],
"responses": {
"responses": {
...
@@ -2998,21 +3076,51 @@ var doc = `{
...
@@ -2998,21 +3076,51 @@ var doc = `{
}
}
}
}
}
}
},
}
},
"/api/v1/org-player/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取球员",
"tags": [
"\u003c球队\u003e球员"
],
"summary": "\u003c球队\u003e获取球员",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
},
"put": {
"put": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "修改球员",
"description": "
\u003c球队\u003e
修改球员",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"球员"
"
\u003c球队\u003e
球员"
],
],
"summary": "修改球员",
"summary": "
\u003c球队\u003e
修改球员",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -3041,11 +3149,11 @@ var doc = `{
...
@@ -3041,11 +3149,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取赛季列表",
"description": "
\u003c赛事\u003e
获取赛季列表",
"tags": [
"tags": [
"赛季"
"
\u003c赛事\u003e
赛季"
],
],
"summary": "获取赛季列表",
"summary": "
\u003c赛事\u003e
获取赛季列表",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "integer",
...
@@ -3075,14 +3183,14 @@ var doc = `{
...
@@ -3075,14 +3183,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "创建赛季",
"description": "
\u003c赛事\u003e
创建赛季",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"赛季"
"
\u003c赛事\u003e
赛季"
],
],
"summary": "创建赛季",
"summary": "
\u003c赛事\u003e
创建赛季",
"parameters": [
"parameters": [
{
{
"description": "data",
"description": "data",
...
@@ -3111,7 +3219,7 @@ var doc = `{
...
@@ -3111,7 +3219,7 @@ var doc = `{
],
],
"description": "删除赛季",
"description": "删除赛季",
"tags": [
"tags": [
"赛季"
"
\u003c赛事\u003e
赛季"
],
],
"summary": "删除赛季",
"summary": "删除赛季",
"parameters": [
"parameters": [
...
@@ -3144,11 +3252,11 @@ var doc = `{
...
@@ -3144,11 +3252,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取赛季",
"description": "
\u003c赛事\u003e
获取赛季",
"tags": [
"tags": [
"赛季"
"
\u003c赛事\u003e
赛季"
],
],
"summary": "获取赛季",
"summary": "
\u003c赛事\u003e
获取赛季",
"parameters": [
"parameters": [
{
{
"type": "string",
"type": "string",
...
@@ -3172,14 +3280,14 @@ var doc = `{
...
@@ -3172,14 +3280,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "修改赛季",
"description": "
\u003c赛事\u003e
修改赛季",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"赛季"
"
\u003c赛事\u003e
赛季"
],
],
"summary": "修改赛季",
"summary": "
\u003c赛事\u003e
修改赛季",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -3208,11 +3316,11 @@ var doc = `{
...
@@ -3208,11 +3316,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取球队列表",
"description": "
\u003c球队\u003e
获取球队列表",
"tags": [
"tags": [
"球队"
"
\u003c球队\u003e
球队"
],
],
"summary": "获取球队列表",
"summary": "
\u003c球队\u003e
获取球队列表",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "integer",
...
@@ -3242,14 +3350,14 @@ var doc = `{
...
@@ -3242,14 +3350,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "创建球队",
"description": "
\u003c球队\u003e
创建球队",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"球队"
"
\u003c球队\u003e
球队"
],
],
"summary": "创建球队",
"summary": "
\u003c球队\u003e
创建球队",
"parameters": [
"parameters": [
{
{
"description": "data",
"description": "data",
...
@@ -3257,46 +3365,847 @@ var doc = `{
...
@@ -3257,46 +3365,847 @@ var doc = `{
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/dto.OrgTeamInsertReq"
"$ref": "#/definitions/dto.OrgTeamInsertReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"添加成功\"}",
"schema": {
"type": "string"
}
}
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e删除球队",
"tags": [
"\u003c球队\u003e球队"
],
"summary": "\u003c球队\u003e删除球队",
"parameters": [
{
"description": "ids",
"name": "ids",
"in": "body",
"schema": {
"type": "array",
"items": {
"type": "integer"
}
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-club/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取俱乐部详情",
"tags": [
"\u003c球队\u003e俱乐部"
],
"summary": "\u003c球队\u003e获取俱乐部详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
},
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e修改俱乐部",
"consumes": [
"application/json"
],
"tags": [
"\u003c球队\u003e俱乐部"
],
"summary": "\u003c球队\u003e修改俱乐部",
"parameters": [
{
"description": "body",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgClubUpdateReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-match": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取比赛列表",
"tags": [
"\u003c球队\u003e比赛"
],
"summary": "\u003c球队\u003e获取比赛列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-match-evaluate": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e教练评价列表",
"tags": [
"\u003c球队\u003e教练评价"
],
"summary": "\u003c球队\u003e教练评价列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-match-evaluate/get-match": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e教练评价比赛列表",
"tags": [
"\u003c球队\u003e教练评价"
],
"summary": "\u003c球队\u003e教练评价比赛列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-match/get-players-is-set/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取比赛已设置球员",
"tags": [
"\u003c球队\u003e比赛"
],
"summary": "\u003c球队\u003e获取比赛已设置球员",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-match/get-players/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取比赛所有球员",
"tags": [
"\u003c球队\u003e比赛"
],
"summary": "\u003c球队\u003e获取比赛所有球员",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-match/update-players/{id}": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e修改比赛球员",
"consumes": [
"application/json"
],
"tags": [
"\u003c球队\u003e比赛"
],
"summary": "\u003c球队\u003e修改比赛球员",
"parameters": [
{
"description": "body",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchUpdateReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-player": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取球员表现列表",
"tags": [
"\u003c球队\u003e球员表现"
],
"summary": "\u003c球队\u003e获取球员表现列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-player/get-match": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取球员表现比赛列表",
"tags": [
"\u003c球队\u003e球员表现"
],
"summary": "\u003c球队\u003e获取球员表现比赛列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-player/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取球员表现比赛详情",
"tags": [
"\u003c球队\u003e球员表现"
],
"summary": "\u003c球队\u003e获取球员表现比赛详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-team": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取球队表现列表",
"tags": [
"\u003c球队\u003e球队表现"
],
"summary": "\u003c球队\u003e获取球队表现列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-team/get-match": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取球队表现比赛列表",
"tags": [
"\u003c球队\u003e球队表现"
],
"summary": "\u003c球队\u003e获取球队表现比赛列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-team/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取球队表现比赛详情",
"tags": [
"\u003c球队\u003e球队表现"
],
"summary": "\u003c球队\u003e获取球队表现比赛详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-user": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e工作人员列表",
"tags": [
"\u003c球队\u003e工作人员"
],
"summary": "\u003c球队\u003e工作人员列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
},
"post": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e创建工作人员",
"consumes": [
"application/json"
],
"tags": [
"\u003c球队\u003e工作人员"
],
"summary": "\u003c球队\u003e创建工作人员",
"parameters": [
{
"description": "data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgTeamUserInsertReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"添加成功\"}",
"schema": {
"type": "string"
}
}
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e删除工作人员",
"tags": [
"\u003c球队\u003e工作人员"
],
"summary": "\u003c球队\u003e删除工作人员",
"parameters": [
{
"description": "ids",
"name": "ids",
"in": "body",
"schema": {
"type": "array",
"items": {
"type": "integer"
}
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-user/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e工作人员信息",
"tags": [
"\u003c球队\u003e工作人员"
],
"summary": "\u003c球队\u003e工作人员信息",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
},
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e修改工作人员",
"consumes": [
"application/json"
],
"tags": [
"\u003c球队\u003e工作人员"
],
"summary": "\u003c球队\u003e修改工作人员",
"parameters": [
{
"description": "body",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgTeamUserUpdateReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e获取球队",
"tags": [
"\u003c球队\u003e球队"
],
"summary": "\u003c球队\u003e获取球队",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
},
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e修改球队",
"consumes": [
"application/json"
],
"tags": [
"\u003c球队\u003e球队"
],
"summary": "\u003c球队\u003e修改球队",
"parameters": [
{
"description": "body",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgTeamUpdateReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-user": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"tags": [
"用户"
],
"summary": "\u003c赛事\u003e列表用户信息数据",
"parameters": [
{
"type": "string",
"description": "username",
"name": "username",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
},
"post": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"用户"
],
"summary": "创建用户",
"parameters": [
{
"description": "用户数据",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysUserInsertReq"
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"
message\": \"添加成功\"
}",
"description": "{\"code\": 200, \"
data\": [...]
}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
}
}
}
}
},
}
"delete": {
},
"/api/v1/org-user/avatar": {
"post": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "删除球队",
"description": "获取JSON",
"consumes": [
"multipart/form-data"
],
"tags": [
"tags": [
"
球队
"
"
个人中心
"
],
],
"summary": "
删除球队
",
"summary": "
修改头像
",
"parameters": [
"parameters": [
{
{
"description": "ids",
"type": "file",
"name": "ids",
"description": "file",
"in": "body",
"name": "file",
"schema": {
"in": "formData",
"type": "array",
"required": true
"items": {
"type": "integer"
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"
message\": \"删除成功\"
}",
"description": "{\"code\": 200, \"
data\": [...]
}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
...
@@ -3304,32 +4213,18 @@ var doc = `{
...
@@ -3304,32 +4213,18 @@ var doc = `{
}
}
}
}
},
},
"/api/v1/org-
team-user
": {
"/api/v1/org-
user/getinfo
": {
"get": {
"get": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取
球队人员账户信息列表
",
"description": "获取
JSON
",
"tags": [
"tags": [
"球队人员账户信息"
"个人中心"
],
"summary": "获取球队人员账户信息列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
}
],
],
"summary": "获取个人信息",
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"description": "{\"code\": 200, \"data\": [...]}",
...
@@ -3338,68 +4233,59 @@ var doc = `{
...
@@ -3338,68 +4233,59 @@ var doc = `{
}
}
}
}
}
}
},
}
"post": {
},
"/api/v1/org-user/profile": {
"get": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "创建球队人员账户信息",
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"tags": [
"球队人员账户信息"
"个人中心"
],
"summary": "创建球队人员账户信息",
"parameters": [
{
"description": "data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgTeamUserInsertReq"
}
}
],
],
"summary": "获取个人中心用户",
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"
message\": \"添加成功\"
}",
"description": "{\"code\": 200, \"
data\": [...]
}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
}
}
}
}
},
}
"delete": {
},
"/api/v1/org-user/pwd/reset": {
"put": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "删除球队人员账户信息",
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"tags": [
"
球队人员账户信息
"
"
用户
"
],
],
"summary": "
删除球队人员账户信息
",
"summary": "
重置用户密码
",
"parameters": [
"parameters": [
{
{
"description": "
ids
",
"description": "
body
",
"name": "
ids
",
"name": "
data
",
"in": "body",
"in": "body",
"required": true,
"schema": {
"schema": {
"type": "array",
"$ref": "#/definitions/dto.ResetSysUserPwdReq"
"items": {
"type": "integer"
}
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"
message\": \"删除成功\"
}",
"description": "{\"code\": 200, \"
data\": [...]
}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
...
@@ -3407,24 +4293,30 @@ var doc = `{
...
@@ -3407,24 +4293,30 @@ var doc = `{
}
}
}
}
},
},
"/api/v1/org-
team-user/{id}
": {
"/api/v1/org-
user/pwd/set
": {
"
ge
t": {
"
pu
t": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取球队人员账户信息",
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"tags": [
"
球队人员账户信息
"
"
用户
"
],
],
"summary": "
获取球队人员账户信息
",
"summary": "
重置密码
",
"parameters": [
"parameters": [
{
{
"type": "string",
"description": "body",
"description": "id",
"name": "data",
"name": "id",
"in": "body",
"in": "path"
"required": true,
"schema": {
"$ref": "#/definitions/dto.PassWord"
}
}
}
],
],
"responses": {
"responses": {
...
@@ -3435,21 +4327,23 @@ var doc = `{
...
@@ -3435,21 +4327,23 @@ var doc = `{
}
}
}
}
}
}
},
}
},
"/api/v1/org-user/status": {
"put": {
"put": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "
修改球队人员账户信息
",
"description": "
获取JSON
",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"
球队人员账户信息
"
"
用户
"
],
],
"summary": "修改
球队人员账户信息
",
"summary": "修改
用户状态
",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -3457,13 +4351,13 @@ var doc = `{
...
@@ -3457,13 +4351,13 @@ var doc = `{
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/dto.
OrgTeamUserUpdate
Req"
"$ref": "#/definitions/dto.
UpdateSysUserStatus
Req"
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"
message\": \"修改成功\"
}",
"description": "{\"code\": 200, \"
data\": [...]
}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
...
@@ -3471,24 +4365,25 @@ var doc = `{
...
@@ -3471,24 +4365,25 @@ var doc = `{
}
}
}
}
},
},
"/api/v1/org-
team/{i
d}": {
"/api/v1/org-
user/{userI
d}": {
"get": {
"get": {
"security": [
"security": [
{
{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "获取
球队
",
"description": "获取
JSON
",
"tags": [
"tags": [
"
球队
"
"
用户
"
],
],
"summary": "获取
球队
",
"summary": "获取
用户
",
"parameters": [
"parameters": [
{
{
"type": "string",
"type": "integer",
"description": "id",
"description": "用户编码",
"name": "id",
"name": "userId",
"in": "path"
"in": "path",
"required": true
}
}
],
],
"responses": {
"responses": {
...
@@ -3506,14 +4401,14 @@ var doc = `{
...
@@ -3506,14 +4401,14 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "
修改球队
",
"description": "
获取JSON
",
"consumes": [
"consumes": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"
球队
"
"
用户
"
],
],
"summary": "修改
球队
",
"summary": "修改
用户数据
",
"parameters": [
"parameters": [
{
{
"description": "body",
"description": "body",
...
@@ -3521,13 +4416,42 @@ var doc = `{
...
@@ -3521,13 +4416,42 @@ var doc = `{
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/dto.
OrgTeam
UpdateReq"
"$ref": "#/definitions/dto.
SysUser
UpdateReq"
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"code\": 200, \"message\": \"修改成功\"}",
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"用户"
],
"summary": "删除用户数据",
"parameters": [
{
"type": "integer",
"description": "userId",
"name": "userId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
...
@@ -5414,38 +6338,6 @@ var doc = `{
...
@@ -5414,38 +6338,6 @@ var doc = `{
}
}
}
}
},
},
"dto.OrgMatchEvaluateInsertReq": {
"type": "object",
"properties": {
"content": {
"type": "string"
},
"createBy": {
"type": "integer"
},
"playerId": {
"type": "string"
},
"teamUserId": {
"type": "string"
},
"updateBy": {
"type": "integer"
},
"wonderfulMomentImg": {
"type": "string"
},
"wonderfulMomentImgTitle": {
"type": "string"
},
"wonderfulMomentMv": {
"type": "string"
},
"wonderfulMomentMvTitle": {
"type": "string"
}
}
},
"dto.OrgMatchEvaluateUpdateReq": {
"dto.OrgMatchEvaluateUpdateReq": {
"type": "object",
"type": "object",
"properties": {
"properties": {
...
@@ -5540,32 +6432,6 @@ var doc = `{
...
@@ -5540,32 +6432,6 @@ var doc = `{
}
}
}
}
},
},
"dto.OrgMatchTeamInsertReq": {
"type": "object",
"properties": {
"clubId": {
"type": "string"
},
"createBy": {
"type": "integer"
},
"integral": {
"type": "string"
},
"matchId": {
"type": "string"
},
"matchScore": {
"type": "string"
},
"teamId": {
"type": "string"
},
"updateBy": {
"type": "integer"
}
}
},
"dto.OrgMatchTeamPlayerInsertReq": {
"dto.OrgMatchTeamPlayerInsertReq": {
"type": "object",
"type": "object",
"properties": {
"properties": {
...
@@ -5681,35 +6547,6 @@ var doc = `{
...
@@ -5681,35 +6547,6 @@ var doc = `{
}
}
}
}
},
},
"dto.OrgMatchTeamUpdateReq": {
"type": "object",
"properties": {
"clubId": {
"type": "string"
},
"createBy": {
"type": "integer"
},
"id": {
"type": "integer"
},
"integral": {
"type": "string"
},
"matchId": {
"type": "string"
},
"matchScore": {
"type": "string"
},
"teamId": {
"type": "string"
},
"updateBy": {
"type": "integer"
}
}
},
"dto.OrgMatchUpdateReq": {
"dto.OrgMatchUpdateReq": {
"type": "object",
"type": "object",
"properties": {
"properties": {
...
...
docs/swagger.json
View file @
754b285d
...
@@ -1020,11 +1020,11 @@
...
@@ -1020,11 +1020,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取广告列表"
,
"description"
:
"
\u
003c运营
\u
003e
获取广告列表"
,
"tags"
:
[
"tags"
:
[
"广告"
"
\u
003c运营
\u
003e
广告"
],
],
"summary"
:
"获取广告列表"
,
"summary"
:
"
\u
003c运营
\u
003e
获取广告列表"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"integer"
,
...
@@ -1054,14 +1054,14 @@
...
@@ -1054,14 +1054,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"创建广告"
,
"description"
:
"
\u
003c运营
\u
003e
创建广告"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"广告"
"
\u
003c运营
\u
003e
广告"
],
],
"summary"
:
"创建广告"
,
"summary"
:
"
\u
003c运营
\u
003e
创建广告"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"data"
,
"description"
:
"data"
,
...
@@ -1088,11 +1088,11 @@
...
@@ -1088,11 +1088,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"删除广告"
,
"description"
:
"
\u
003c运营
\u
003e
删除广告"
,
"tags"
:
[
"tags"
:
[
"广告"
"
\u
003c运营
\u
003e
广告"
],
],
"summary"
:
"删除广告"
,
"summary"
:
"
\u
003c运营
\u
003e
删除广告"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"ids"
,
"description"
:
"ids"
,
...
@@ -1123,11 +1123,11 @@
...
@@ -1123,11 +1123,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取广告"
,
"description"
:
"
\u
003c运营
\u
003e
获取广告"
,
"tags"
:
[
"tags"
:
[
"广告"
"
\u
003c运营
\u
003e
广告"
],
],
"summary"
:
"获取广告"
,
"summary"
:
"
\u
003c运营
\u
003e
获取广告"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"string"
,
...
@@ -1151,14 +1151,14 @@
...
@@ -1151,14 +1151,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"修改广告"
,
"description"
:
"
\u
003c运营
\u
003e
修改广告"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"广告"
"
\u
003c运营
\u
003e
广告"
],
],
"summary"
:
"修改广告"
,
"summary"
:
"
\u
003c运营
\u
003e
修改广告"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -1187,11 +1187,11 @@
...
@@ -1187,11 +1187,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取俱乐部列表"
,
"description"
:
"
\u
003c俱乐部
\u
003e
获取俱乐部列表"
,
"tags"
:
[
"tags"
:
[
"俱乐部"
"
\u
003c俱乐部
\u
003e
俱乐部"
],
],
"summary"
:
"获取俱乐部列表"
,
"summary"
:
"
\u
003c俱乐部
\u
003e
获取俱乐部列表"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"integer"
,
...
@@ -1221,14 +1221,14 @@
...
@@ -1221,14 +1221,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"创建俱乐部"
,
"description"
:
"
\u
003c俱乐部
\u
003e
创建俱乐部"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"俱乐部"
"
\u
003c俱乐部
\u
003e
俱乐部"
],
],
"summary"
:
"创建俱乐部"
,
"summary"
:
"
\u
003c俱乐部
\u
003e
创建俱乐部"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"data"
,
"description"
:
"data"
,
...
@@ -1255,11 +1255,11 @@
...
@@ -1255,11 +1255,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"删除俱乐部"
,
"description"
:
"
\u
003c俱乐部
\u
003e
删除俱乐部"
,
"tags"
:
[
"tags"
:
[
"俱乐部"
"
\u
003c俱乐部
\u
003e
俱乐部"
],
],
"summary"
:
"删除俱乐部"
,
"summary"
:
"
\u
003c俱乐部
\u
003e
删除俱乐部"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"ids"
,
"description"
:
"ids"
,
...
@@ -1283,6 +1283,108 @@
...
@@ -1283,6 +1283,108 @@
}
}
}
}
},
},
"/api/v1/org-club-team"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c俱乐部
\u
003e获取球队数据列表"
,
"tags"
:
[
"
\u
003c俱乐部
\u
003e球队"
],
"summary"
:
"
\u
003c俱乐部
\u
003e获取球队数据列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-club-team/get-match"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c俱乐部
\u
003e获取球队比赛列表"
,
"tags"
:
[
"
\u
003c俱乐部
\u
003e球队"
],
"summary"
:
"
\u
003c俱乐部
\u
003e获取球队比赛列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-club-team/{id}"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c俱乐部
\u
003e获取球队比赛详情"
,
"tags"
:
[
"
\u
003c俱乐部
\u
003e球队"
],
"summary"
:
"
\u
003c俱乐部
\u
003e获取球队比赛详情"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"id"
,
"name"
:
"id"
,
"in"
:
"path"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-club-user"
:
{
"/api/v1/org-club-user"
:
{
"get"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
...
@@ -1457,11 +1559,11 @@
...
@@ -1457,11 +1559,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取俱乐部"
,
"description"
:
"
\u
003c俱乐部
\u
003e
获取俱乐部"
,
"tags"
:
[
"tags"
:
[
"俱乐部"
"
\u
003c俱乐部
\u
003e
俱乐部"
],
],
"summary"
:
"获取俱乐部"
,
"summary"
:
"
\u
003c俱乐部
\u
003e
获取俱乐部"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"string"
,
...
@@ -1485,14 +1587,14 @@
...
@@ -1485,14 +1587,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"修改俱乐部"
,
"description"
:
"
\u
003c俱乐部
\u
003e
修改俱乐部"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"俱乐部"
"
\u
003c俱乐部
\u
003e
俱乐部"
],
],
"summary"
:
"修改俱乐部"
,
"summary"
:
"
\u
003c俱乐部
\u
003e
修改俱乐部"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -1521,11 +1623,11 @@
...
@@ -1521,11 +1623,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取赛区列表"
,
"description"
:
"
\u
003c赛事
\u
003e
获取赛区列表"
,
"tags"
:
[
"tags"
:
[
"赛区"
"
\u
003c赛事
\u
003e
赛区"
],
],
"summary"
:
"获取赛区列表"
,
"summary"
:
"
\u
003c赛事
\u
003e
获取赛区列表"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"integer"
,
...
@@ -1555,14 +1657,14 @@
...
@@ -1555,14 +1657,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"创建赛区"
,
"description"
:
"
\u
003c赛事
\u
003e
创建赛区"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"赛区"
"
\u
003c赛事
\u
003e
赛区"
],
],
"summary"
:
"创建赛区"
,
"summary"
:
"
\u
003c赛事
\u
003e
创建赛区"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"data"
,
"description"
:
"data"
,
...
@@ -1589,11 +1691,11 @@
...
@@ -1589,11 +1691,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"删除赛区"
,
"description"
:
"
\u
003c赛事
\u
003e
删除赛区"
,
"tags"
:
[
"tags"
:
[
"赛区"
"
\u
003c赛事
\u
003e
赛区"
],
],
"summary"
:
"删除赛区"
,
"summary"
:
"
\u
003c赛事
\u
003e
删除赛区"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"ids"
,
"description"
:
"ids"
,
...
@@ -1624,11 +1726,11 @@
...
@@ -1624,11 +1726,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取赛区"
,
"description"
:
"
\u
003c赛事
\u
003e
获取赛区"
,
"tags"
:
[
"tags"
:
[
"赛区"
"
\u
003c赛事
\u
003e
赛区"
],
],
"summary"
:
"获取赛区"
,
"summary"
:
"
\u
003c赛事
\u
003e
获取赛区"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"string"
,
...
@@ -1652,14 +1754,14 @@
...
@@ -1652,14 +1754,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"修改赛区"
,
"description"
:
"
\u
003c赛事
\u
003e
修改赛区"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"赛区"
"
\u
003c赛事
\u
003e
赛区"
],
],
"summary"
:
"修改赛区"
,
"summary"
:
"
\u
003c赛事
\u
003e
修改赛区"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -1855,11 +1957,11 @@
...
@@ -1855,11 +1957,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取比赛列表"
,
"description"
:
"
\u
003c赛事
\u
003e
获取比赛列表"
,
"tags"
:
[
"tags"
:
[
"比赛"
"
\u
003c赛事
\u
003e
比赛"
],
],
"summary"
:
"获取比赛列表"
,
"summary"
:
"
\u
003c赛事
\u
003e
获取比赛列表"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"integer"
,
...
@@ -1889,14 +1991,14 @@
...
@@ -1889,14 +1991,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"创建比赛"
,
"description"
:
"
\u
003c赛事
\u
003e
创建比赛"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"比赛"
"
\u
003c赛事
\u
003e
比赛"
],
],
"summary"
:
"创建比赛"
,
"summary"
:
"
\u
003c赛事
\u
003e
创建比赛"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"data"
,
"description"
:
"data"
,
...
@@ -1923,11 +2025,11 @@
...
@@ -1923,11 +2025,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"删除比赛"
,
"description"
:
"
\u
003c赛事
\u
003e
删除比赛"
,
"tags"
:
[
"tags"
:
[
"比赛"
"
\u
003c赛事
\u
003e
比赛"
],
],
"summary"
:
"删除比赛"
,
"summary"
:
"
\u
003c赛事
\u
003e
删除比赛"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"ids"
,
"description"
:
"ids"
,
...
@@ -1958,11 +2060,11 @@
...
@@ -1958,11 +2060,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
获取比赛球员信息
列表"
,
"description"
:
"
\u
003c赛事
\u
003e赛后评价
列表"
,
"tags"
:
[
"tags"
:
[
"
比赛球员信息
"
"
\u
003c赛事
\u
003e赛后评价
"
],
],
"summary"
:
"
获取比赛球员信息
列表"
,
"summary"
:
"
\u
003c赛事
\u
003e赛后评价
列表"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"integer"
,
...
@@ -1985,68 +2087,73 @@
...
@@ -1985,68 +2087,73 @@
}
}
}
}
}
}
},
}
"post"
:
{
},
"/api/v1/org-match-evaluate/get-match"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"创建比赛球员信息"
,
"description"
:
"
\u
003c赛事
\u
003e赛后评价比赛列表"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"tags"
:
[
"
比赛球员信息
"
"
\u
003c赛事
\u
003e赛后评价
"
],
],
"summary"
:
"
创建比赛球员信息
"
,
"summary"
:
"
\u
003c赛事
\u
003e赛后评价比赛列表
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"data"
,
"type"
:
"integer"
,
"name"
:
"data"
,
"description"
:
"页条数"
,
"in"
:
"body"
,
"name"
:
"pageSize"
,
"required"
:
true
,
"in"
:
"query"
"schema"
:
{
},
"$ref"
:
"#/definitions/dto.OrgMatchEvaluateInsertReq"
{
}
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
添加成功
\"
}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
}
}
}
}
},
}
"delete"
:
{
},
"/api/v1/org-match-evaluate/status/{id}"
:
{
"put"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"删除比赛球员信息"
,
"description"
:
"
\u
003c赛事
\u
003e赛后评价影像维护"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"tags"
:
[
"
比赛球员信息
"
"
\u
003c赛事
\u
003e赛后评价
"
],
],
"summary"
:
"
删除比赛球员信息
"
,
"summary"
:
"
\u
003c赛事
\u
003e赛后评价影像维护
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"
ids
"
,
"description"
:
"
body
"
,
"name"
:
"
ids
"
,
"name"
:
"
data
"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"$ref"
:
"#/definitions/dto.OrgMatchEvaluateUpdateReq"
"items"
:
{
"type"
:
"integer"
}
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
删除
成功
\"
}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
修改
成功
\"
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -2061,11 +2168,11 @@
...
@@ -2061,11 +2168,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
获取比赛球员信息
"
,
"description"
:
"
\u
003c球队
\u
003e教练评价比赛详情
"
,
"tags"
:
[
"tags"
:
[
"
比赛球员信息
"
"
\u
003c球队
\u
003e教练评价
"
],
],
"summary"
:
"
获取比赛球员信息
"
,
"summary"
:
"
\u
003c球队
\u
003e教练评价比赛详情
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"string"
,
...
@@ -2089,14 +2196,14 @@
...
@@ -2089,14 +2196,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
修改比赛球员信息
"
,
"description"
:
"
\u
003c球队
\u
003e修改评价
"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"
比赛球员信息
"
"
\u
003c球队
\u
003e教练评价
"
],
],
"summary"
:
"
修改比赛球员信息
"
,
"summary"
:
"
\u
003c球队
\u
003e修改评价
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -2118,18 +2225,18 @@
...
@@ -2118,18 +2225,18 @@
}
}
}
}
},
},
"/api/v1/org-match-team"
:
{
"/api/v1/org-match-team
-player
"
:
{
"get"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取比赛球
队
数据列表"
,
"description"
:
"获取比赛球
员
数据列表"
,
"tags"
:
[
"tags"
:
[
"比赛球
队
数据"
"比赛球
员
数据"
],
],
"summary"
:
"获取比赛球
队
数据列表"
,
"summary"
:
"获取比赛球
员
数据列表"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"integer"
,
...
@@ -2159,14 +2266,14 @@
...
@@ -2159,14 +2266,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"创建比赛球
队
数据"
,
"description"
:
"创建比赛球
员
数据"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"比赛球
队
数据"
"比赛球
员
数据"
],
],
"summary"
:
"创建比赛球
队
数据"
,
"summary"
:
"创建比赛球
员
数据"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"data"
,
"description"
:
"data"
,
...
@@ -2174,7 +2281,7 @@
...
@@ -2174,7 +2281,7 @@
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgMatchTeamInsertReq"
"$ref"
:
"#/definitions/dto.OrgMatchTeam
Player
InsertReq"
}
}
}
}
],
],
...
@@ -2193,11 +2300,11 @@
...
@@ -2193,11 +2300,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"删除比赛球
队
数据"
,
"description"
:
"删除比赛球
员
数据"
,
"tags"
:
[
"tags"
:
[
"比赛球
队
数据"
"比赛球
员
数据"
],
],
"summary"
:
"删除比赛球
队
数据"
,
"summary"
:
"删除比赛球
员
数据"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"ids"
,
"description"
:
"ids"
,
...
@@ -2221,30 +2328,24 @@
...
@@ -2221,30 +2328,24 @@
}
}
}
}
},
},
"/api/v1/org-match-team-player"
:
{
"/api/v1/org-match-team-player
/{id}
"
:
{
"get"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取比赛球员数据
列表
"
,
"description"
:
"获取比赛球员数据"
,
"tags"
:
[
"tags"
:
[
"比赛球员数据"
"比赛球员数据"
],
],
"summary"
:
"获取比赛球员数据
列表
"
,
"summary"
:
"获取比赛球员数据"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"string"
,
"description"
:
"页条数"
,
"description"
:
"id"
,
"name"
:
"pageSize"
,
"name"
:
"id"
,
"in"
:
"query"
"in"
:
"path"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
}
],
],
"responses"
:
{
"responses"
:
{
...
@@ -2256,67 +2357,64 @@
...
@@ -2256,67 +2357,64 @@
}
}
}
}
},
},
"p
os
t"
:
{
"p
u
t"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
创建
比赛球员数据"
,
"description"
:
"
修改
比赛球员数据"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"比赛球员数据"
"比赛球员数据"
],
],
"summary"
:
"
创建
比赛球员数据"
,
"summary"
:
"
修改
比赛球员数据"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"
data
"
,
"description"
:
"
body
"
,
"name"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgMatchTeamPlayer
Insert
Req"
"$ref"
:
"#/definitions/dto.OrgMatchTeamPlayer
Update
Req"
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
添加
成功
\"
}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
修改
成功
\"
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
}
}
}
}
},
}
"delete"
:
{
},
"/api/v1/org-match/get-players-is-set/{id}"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
删除比赛球员数据
"
,
"description"
:
"
\u
003c赛事
\u
003e获取比赛已设置球员
"
,
"tags"
:
[
"tags"
:
[
"
比赛球员数据
"
"
\u
003c赛事
\u
003e比赛
"
],
],
"summary"
:
"
删除比赛球员数据
"
,
"summary"
:
"
\u
003c赛事
\u
003e获取比赛已设置球员
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"ids"
,
"type"
:
"string"
,
"name"
:
"ids"
,
"description"
:
"id"
,
"in"
:
"body"
,
"name"
:
"id"
,
"schema"
:
{
"in"
:
"path"
"type"
:
"array"
,
"items"
:
{
"type"
:
"integer"
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
删除成功
\"
}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -2324,18 +2422,18 @@
...
@@ -2324,18 +2422,18 @@
}
}
}
}
},
},
"/api/v1/org-match
-team-player
/{id}"
:
{
"/api/v1/org-match
/get-players
/{id}"
:
{
"get"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
获取比赛球员数据
"
,
"description"
:
"
\u
003c赛事
\u
003e获取比赛所有球员
"
,
"tags"
:
[
"tags"
:
[
"
比赛球员数据
"
"
\u
003c赛事
\u
003e比赛
"
],
],
"summary"
:
"
获取比赛球员数据
"
,
"summary"
:
"
\u
003c赛事
\u
003e获取比赛所有球员
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"string"
,
...
@@ -2352,21 +2450,23 @@
...
@@ -2352,21 +2450,23 @@
}
}
}
}
}
}
},
}
},
"/api/v1/org-match/update-players-data/{id}"
:
{
"put"
:
{
"put"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"修改比赛球员数据"
,
"description"
:
"
\u
003c赛事
\u
003e
修改比赛球员数据"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"
比赛球员数据
"
"
\u
003c赛事
\u
003e比赛
"
],
],
"summary"
:
"修改比赛球员数据"
,
"summary"
:
"
\u
003c赛事
\u
003e
修改比赛球员数据"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -2374,7 +2474,7 @@
...
@@ -2374,7 +2474,7 @@
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgMatch
TeamPlayer
UpdateReq"
"$ref"
:
"#/definitions/dto.OrgMatchUpdateReq"
}
}
}
}
],
],
...
@@ -2388,49 +2488,21 @@
...
@@ -2388,49 +2488,21 @@
}
}
}
}
},
},
"/api/v1/org-match-team/{id}"
:
{
"/api/v1/org-match/update-players/{id}"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"获取比赛球队数据"
,
"tags"
:
[
"比赛球队数据"
],
"summary"
:
"获取比赛球队数据"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"id"
,
"name"
:
"id"
,
"in"
:
"path"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
},
"put"
:
{
"put"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
修改比赛球队数据
"
,
"description"
:
"
\u
003c赛事
\u
003e修改比赛球员
"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"
比赛球队数据
"
"
\u
003c赛事
\u
003e比赛
"
],
],
"summary"
:
"
修改比赛球队数据
"
,
"summary"
:
"
\u
003c赛事
\u
003e修改比赛球员
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -2438,7 +2510,7 @@
...
@@ -2438,7 +2510,7 @@
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgMatch
Team
UpdateReq"
"$ref"
:
"#/definitions/dto.OrgMatchUpdateReq"
}
}
}
}
],
],
...
@@ -2459,11 +2531,11 @@
...
@@ -2459,11 +2531,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取比赛"
,
"description"
:
"
\u
003c赛事
\u
003e
获取比赛"
,
"tags"
:
[
"tags"
:
[
"比赛"
"
\u
003c赛事
\u
003e
比赛"
],
],
"summary"
:
"获取比赛"
,
"summary"
:
"
\u
003c赛事
\u
003e
获取比赛"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"string"
,
...
@@ -2487,14 +2559,14 @@
...
@@ -2487,14 +2559,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"修改比赛"
,
"description"
:
"
\u
003c赛事
\u
003e
修改比赛"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"比赛"
"
\u
003c赛事
\u
003e
比赛"
],
],
"summary"
:
"修改比赛"
,
"summary"
:
"
\u
003c赛事
\u
003e
修改比赛"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -2690,11 +2762,11 @@
...
@@ -2690,11 +2762,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取球员列表"
,
"description"
:
"
\u
003c球队
\u
003e
获取球员列表"
,
"tags"
:
[
"tags"
:
[
"球员"
"
\u
003c球队
\u
003e
球员"
],
],
"summary"
:
"获取球员列表"
,
"summary"
:
"
\u
003c球队
\u
003e
获取球员列表"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"integer"
,
...
@@ -2724,14 +2796,14 @@
...
@@ -2724,14 +2796,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"创建球员"
,
"description"
:
"
\u
003c球队
\u
003e
创建球员"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"球员"
"
\u
003c球队
\u
003e
球员"
],
],
"summary"
:
"创建球员"
,
"summary"
:
"
\u
003c球队
\u
003e
创建球员"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"data"
,
"description"
:
"data"
,
...
@@ -2758,11 +2830,11 @@
...
@@ -2758,11 +2830,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"删除球员"
,
"description"
:
"
\u
003c球队
\u
003e
删除球员"
,
"tags"
:
[
"tags"
:
[
"球员"
"
\u
003c球队
\u
003e
球员"
],
],
"summary"
:
"删除球员"
,
"summary"
:
"
\u
003c球队
\u
003e
删除球员"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"ids"
,
"description"
:
"ids"
,
...
@@ -2953,24 +3025,30 @@
...
@@ -2953,24 +3025,30 @@
}
}
}
}
},
},
"/api/v1/org-player/
{id}
"
:
{
"/api/v1/org-player/
get-match
"
:
{
"get"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
获取球员
"
,
"description"
:
"
\u
003c俱乐部
\u
003e获取球员比赛列表
"
,
"tags"
:
[
"tags"
:
[
"球员"
"
\u
003c俱乐部
\u
003e
球员"
],
],
"summary"
:
"
获取球员
"
,
"summary"
:
"
\u
003c俱乐部
\u
003e获取球员比赛列表
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"integer"
,
"description"
:
"id"
,
"description"
:
"页条数"
,
"name"
:
"id"
,
"name"
:
"pageSize"
,
"in"
:
"path"
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
}
],
],
"responses"
:
{
"responses"
:
{
...
@@ -2981,21 +3059,51 @@
...
@@ -2981,21 +3059,51 @@
}
}
}
}
}
}
},
}
},
"/api/v1/org-player/{id}"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取球员"
,
"tags"
:
[
"
\u
003c球队
\u
003e球员"
],
"summary"
:
"
\u
003c球队
\u
003e获取球员"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"id"
,
"name"
:
"id"
,
"in"
:
"path"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
},
"put"
:
{
"put"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"修改球员"
,
"description"
:
"
\u
003c球队
\u
003e
修改球员"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"球员"
"
\u
003c球队
\u
003e
球员"
],
],
"summary"
:
"修改球员"
,
"summary"
:
"
\u
003c球队
\u
003e
修改球员"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -3024,11 +3132,11 @@
...
@@ -3024,11 +3132,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取赛季列表"
,
"description"
:
"
\u
003c赛事
\u
003e
获取赛季列表"
,
"tags"
:
[
"tags"
:
[
"赛季"
"
\u
003c赛事
\u
003e
赛季"
],
],
"summary"
:
"获取赛季列表"
,
"summary"
:
"
\u
003c赛事
\u
003e
获取赛季列表"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"integer"
,
...
@@ -3058,14 +3166,14 @@
...
@@ -3058,14 +3166,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"创建赛季"
,
"description"
:
"
\u
003c赛事
\u
003e
创建赛季"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"赛季"
"
\u
003c赛事
\u
003e
赛季"
],
],
"summary"
:
"创建赛季"
,
"summary"
:
"
\u
003c赛事
\u
003e
创建赛季"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"data"
,
"description"
:
"data"
,
...
@@ -3094,7 +3202,7 @@
...
@@ -3094,7 +3202,7 @@
],
],
"description"
:
"删除赛季"
,
"description"
:
"删除赛季"
,
"tags"
:
[
"tags"
:
[
"赛季"
"
\u
003c赛事
\u
003e
赛季"
],
],
"summary"
:
"删除赛季"
,
"summary"
:
"删除赛季"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -3127,11 +3235,11 @@
...
@@ -3127,11 +3235,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取赛季"
,
"description"
:
"
\u
003c赛事
\u
003e
获取赛季"
,
"tags"
:
[
"tags"
:
[
"赛季"
"
\u
003c赛事
\u
003e
赛季"
],
],
"summary"
:
"获取赛季"
,
"summary"
:
"
\u
003c赛事
\u
003e
获取赛季"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"string"
,
...
@@ -3155,14 +3263,14 @@
...
@@ -3155,14 +3263,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"修改赛季"
,
"description"
:
"
\u
003c赛事
\u
003e
修改赛季"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"赛季"
"
\u
003c赛事
\u
003e
赛季"
],
],
"summary"
:
"修改赛季"
,
"summary"
:
"
\u
003c赛事
\u
003e
修改赛季"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -3191,11 +3299,11 @@
...
@@ -3191,11 +3299,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取球队列表"
,
"description"
:
"
\u
003c球队
\u
003e
获取球队列表"
,
"tags"
:
[
"tags"
:
[
"球队"
"
\u
003c球队
\u
003e
球队"
],
],
"summary"
:
"获取球队列表"
,
"summary"
:
"
\u
003c球队
\u
003e
获取球队列表"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"integer"
,
...
@@ -3225,14 +3333,14 @@
...
@@ -3225,14 +3333,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"创建球队"
,
"description"
:
"
\u
003c球队
\u
003e
创建球队"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"球队"
"
\u
003c球队
\u
003e
球队"
],
],
"summary"
:
"创建球队"
,
"summary"
:
"
\u
003c球队
\u
003e
创建球队"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"data"
,
"description"
:
"data"
,
...
@@ -3240,46 +3348,847 @@
...
@@ -3240,46 +3348,847 @@
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgTeamInsertReq"
"$ref"
:
"#/definitions/dto.OrgTeamInsertReq"
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
添加成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
},
"delete"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e删除球队"
,
"tags"
:
[
"
\u
003c球队
\u
003e球队"
],
"summary"
:
"
\u
003c球队
\u
003e删除球队"
,
"parameters"
:
[
{
"description"
:
"ids"
,
"name"
:
"ids"
,
"in"
:
"body"
,
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"integer"
}
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
删除成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-club/{id}"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取俱乐部详情"
,
"tags"
:
[
"
\u
003c球队
\u
003e俱乐部"
],
"summary"
:
"
\u
003c球队
\u
003e获取俱乐部详情"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"id"
,
"name"
:
"id"
,
"in"
:
"path"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
},
"put"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e修改俱乐部"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"
\u
003c球队
\u
003e俱乐部"
],
"summary"
:
"
\u
003c球队
\u
003e修改俱乐部"
,
"parameters"
:
[
{
"description"
:
"body"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgClubUpdateReq"
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
修改成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-match"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取比赛列表"
,
"tags"
:
[
"
\u
003c球队
\u
003e比赛"
],
"summary"
:
"
\u
003c球队
\u
003e获取比赛列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-match-evaluate"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e教练评价列表"
,
"tags"
:
[
"
\u
003c球队
\u
003e教练评价"
],
"summary"
:
"
\u
003c球队
\u
003e教练评价列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-match-evaluate/get-match"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e教练评价比赛列表"
,
"tags"
:
[
"
\u
003c球队
\u
003e教练评价"
],
"summary"
:
"
\u
003c球队
\u
003e教练评价比赛列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-match/get-players-is-set/{id}"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取比赛已设置球员"
,
"tags"
:
[
"
\u
003c球队
\u
003e比赛"
],
"summary"
:
"
\u
003c球队
\u
003e获取比赛已设置球员"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"id"
,
"name"
:
"id"
,
"in"
:
"path"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-match/get-players/{id}"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取比赛所有球员"
,
"tags"
:
[
"
\u
003c球队
\u
003e比赛"
],
"summary"
:
"
\u
003c球队
\u
003e获取比赛所有球员"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"id"
,
"name"
:
"id"
,
"in"
:
"path"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-match/update-players/{id}"
:
{
"put"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e修改比赛球员"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"
\u
003c球队
\u
003e比赛"
],
"summary"
:
"
\u
003c球队
\u
003e修改比赛球员"
,
"parameters"
:
[
{
"description"
:
"body"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgMatchUpdateReq"
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
修改成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-player"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取球员表现列表"
,
"tags"
:
[
"
\u
003c球队
\u
003e球员表现"
],
"summary"
:
"
\u
003c球队
\u
003e获取球员表现列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-player/get-match"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取球员表现比赛列表"
,
"tags"
:
[
"
\u
003c球队
\u
003e球员表现"
],
"summary"
:
"
\u
003c球队
\u
003e获取球员表现比赛列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-player/{id}"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取球员表现比赛详情"
,
"tags"
:
[
"
\u
003c球队
\u
003e球员表现"
],
"summary"
:
"
\u
003c球队
\u
003e获取球员表现比赛详情"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"id"
,
"name"
:
"id"
,
"in"
:
"path"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-team"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取球队表现列表"
,
"tags"
:
[
"
\u
003c球队
\u
003e球队表现"
],
"summary"
:
"
\u
003c球队
\u
003e获取球队表现列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-team/get-match"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取球队表现比赛列表"
,
"tags"
:
[
"
\u
003c球队
\u
003e球队表现"
],
"summary"
:
"
\u
003c球队
\u
003e获取球队表现比赛列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-team/{id}"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取球队表现比赛详情"
,
"tags"
:
[
"
\u
003c球队
\u
003e球队表现"
],
"summary"
:
"
\u
003c球队
\u
003e获取球队表现比赛详情"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"id"
,
"name"
:
"id"
,
"in"
:
"path"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-user"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e工作人员列表"
,
"tags"
:
[
"
\u
003c球队
\u
003e工作人员"
],
"summary"
:
"
\u
003c球队
\u
003e工作人员列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
},
"post"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e创建工作人员"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"
\u
003c球队
\u
003e工作人员"
],
"summary"
:
"
\u
003c球队
\u
003e创建工作人员"
,
"parameters"
:
[
{
"description"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgTeamUserInsertReq"
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
添加成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
},
"delete"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e删除工作人员"
,
"tags"
:
[
"
\u
003c球队
\u
003e工作人员"
],
"summary"
:
"
\u
003c球队
\u
003e删除工作人员"
,
"parameters"
:
[
{
"description"
:
"ids"
,
"name"
:
"ids"
,
"in"
:
"body"
,
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"integer"
}
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
删除成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team-user/{id}"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e工作人员信息"
,
"tags"
:
[
"
\u
003c球队
\u
003e工作人员"
],
"summary"
:
"
\u
003c球队
\u
003e工作人员信息"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"id"
,
"name"
:
"id"
,
"in"
:
"path"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
},
"put"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e修改工作人员"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"
\u
003c球队
\u
003e工作人员"
],
"summary"
:
"
\u
003c球队
\u
003e修改工作人员"
,
"parameters"
:
[
{
"description"
:
"body"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgTeamUserUpdateReq"
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
修改成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-team/{id}"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e获取球队"
,
"tags"
:
[
"
\u
003c球队
\u
003e球队"
],
"summary"
:
"
\u
003c球队
\u
003e获取球队"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"id"
,
"name"
:
"id"
,
"in"
:
"path"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
},
"put"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c球队
\u
003e修改球队"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"
\u
003c球队
\u
003e球队"
],
"summary"
:
"
\u
003c球队
\u
003e修改球队"
,
"parameters"
:
[
{
"description"
:
"body"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgTeamUpdateReq"
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
修改成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/api/v1/org-user"
:
{
"get"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"获取JSON"
,
"tags"
:
[
"用户"
],
"summary"
:
"
\u
003c赛事
\u
003e列表用户信息数据"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"username"
,
"name"
:
"username"
,
"in"
:
"query"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
},
"post"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"获取JSON"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"用户"
],
"summary"
:
"创建用户"
,
"parameters"
:
[
{
"description"
:
"用户数据"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.SysUserInsertReq"
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
添加成功
\"
}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
}
}
}
}
},
}
"delete"
:
{
},
"/api/v1/org-user/avatar"
:
{
"post"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"删除球队"
,
"description"
:
"获取JSON"
,
"consumes"
:
[
"multipart/form-data"
],
"tags"
:
[
"tags"
:
[
"
球队
"
"
个人中心
"
],
],
"summary"
:
"
删除球队
"
,
"summary"
:
"
修改头像
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"ids"
,
"type"
:
"file"
,
"name"
:
"ids"
,
"description"
:
"file"
,
"in"
:
"body"
,
"name"
:
"file"
,
"schema"
:
{
"in"
:
"formData"
,
"type"
:
"array"
,
"required"
:
true
"items"
:
{
"type"
:
"integer"
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
删除成功
\"
}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -3287,32 +4196,18 @@
...
@@ -3287,32 +4196,18 @@
}
}
}
}
},
},
"/api/v1/org-
team-user
"
:
{
"/api/v1/org-
user/getinfo
"
:
{
"get"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取
球队人员账户信息列表
"
,
"description"
:
"获取
JSON
"
,
"tags"
:
[
"tags"
:
[
"球队人员账户信息"
"个人中心"
],
"summary"
:
"获取球队人员账户信息列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"页条数"
,
"name"
:
"pageSize"
,
"in"
:
"query"
},
{
"type"
:
"integer"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
}
],
],
"summary"
:
"获取个人信息"
,
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
...
@@ -3321,68 +4216,59 @@
...
@@ -3321,68 +4216,59 @@
}
}
}
}
}
}
},
}
"post"
:
{
},
"/api/v1/org-user/profile"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"创建球队人员账户信息"
,
"description"
:
"获取JSON"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"tags"
:
[
"球队人员账户信息"
"个人中心"
],
"summary"
:
"创建球队人员账户信息"
,
"parameters"
:
[
{
"description"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgTeamUserInsertReq"
}
}
],
],
"summary"
:
"获取个人中心用户"
,
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
添加成功
\"
}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
}
}
}
}
},
}
"delete"
:
{
},
"/api/v1/org-user/pwd/reset"
:
{
"put"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"删除球队人员账户信息"
,
"description"
:
"获取JSON"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"tags"
:
[
"
球队人员账户信息
"
"
用户
"
],
],
"summary"
:
"
删除球队人员账户信息
"
,
"summary"
:
"
重置用户密码
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"
ids
"
,
"description"
:
"
body
"
,
"name"
:
"
ids
"
,
"name"
:
"
data
"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"$ref"
:
"#/definitions/dto.ResetSysUserPwdReq"
"items"
:
{
"type"
:
"integer"
}
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
删除成功
\"
}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -3390,24 +4276,30 @@
...
@@ -3390,24 +4276,30 @@
}
}
}
}
},
},
"/api/v1/org-
team-user/{id}
"
:
{
"/api/v1/org-
user/pwd/set
"
:
{
"
ge
t"
:
{
"
pu
t"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取球队人员账户信息"
,
"description"
:
"获取JSON"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"tags"
:
[
"
球队人员账户信息
"
"
用户
"
],
],
"summary"
:
"
获取球队人员账户信息
"
,
"summary"
:
"
重置密码
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"description"
:
"body"
,
"description"
:
"id"
,
"name"
:
"data"
,
"name"
:
"id"
,
"in"
:
"body"
,
"in"
:
"path"
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.PassWord"
}
}
}
],
],
"responses"
:
{
"responses"
:
{
...
@@ -3418,21 +4310,23 @@
...
@@ -3418,21 +4310,23 @@
}
}
}
}
}
}
},
}
},
"/api/v1/org-user/status"
:
{
"put"
:
{
"put"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
修改球队人员账户信息
"
,
"description"
:
"
获取JSON
"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"
球队人员账户信息
"
"
用户
"
],
],
"summary"
:
"修改
球队人员账户信息
"
,
"summary"
:
"修改
用户状态
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -3440,13 +4334,13 @@
...
@@ -3440,13 +4334,13 @@
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"$ref"
:
"#/definitions/dto.
OrgTeamUserUpdate
Req"
"$ref"
:
"#/definitions/dto.
UpdateSysUserStatus
Req"
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
修改成功
\"
}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -3454,24 +4348,25 @@
...
@@ -3454,24 +4348,25 @@
}
}
}
}
},
},
"/api/v1/org-
team/{i
d}"
:
{
"/api/v1/org-
user/{userI
d}"
:
{
"get"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
{
{
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"获取
球队
"
,
"description"
:
"获取
JSON
"
,
"tags"
:
[
"tags"
:
[
"
球队
"
"
用户
"
],
],
"summary"
:
"获取
球队
"
,
"summary"
:
"获取
用户
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"integer"
,
"description"
:
"id"
,
"description"
:
"用户编码"
,
"name"
:
"id"
,
"name"
:
"userId"
,
"in"
:
"path"
"in"
:
"path"
,
"required"
:
true
}
}
],
],
"responses"
:
{
"responses"
:
{
...
@@ -3489,14 +4384,14 @@
...
@@ -3489,14 +4384,14 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
修改球队
"
,
"description"
:
"
获取JSON
"
,
"consumes"
:
[
"consumes"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"
球队
"
"
用户
"
],
],
"summary"
:
"修改
球队
"
,
"summary"
:
"修改
用户数据
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"body"
,
"description"
:
"body"
,
...
@@ -3504,13 +4399,42 @@
...
@@ -3504,13 +4399,42 @@
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"$ref"
:
"#/definitions/dto.
OrgTeam
UpdateReq"
"$ref"
:
"#/definitions/dto.
SysUser
UpdateReq"
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
message
\"
:
\"
修改成功
\"
}"
,
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
},
"delete"
:
{
"security"
:
[
{
"Bearer"
:
[]
}
],
"description"
:
"删除数据"
,
"tags"
:
[
"用户"
],
"summary"
:
"删除用户数据"
,
"parameters"
:
[
{
"type"
:
"integer"
,
"description"
:
"userId"
,
"name"
:
"userId"
,
"in"
:
"path"
,
"required"
:
true
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
: 200,
\"
data
\"
: [...]}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -5397,38 +6321,6 @@
...
@@ -5397,38 +6321,6 @@
}
}
}
}
},
},
"dto.OrgMatchEvaluateInsertReq"
:
{
"type"
:
"object"
,
"properties"
:
{
"content"
:
{
"type"
:
"string"
},
"createBy"
:
{
"type"
:
"integer"
},
"playerId"
:
{
"type"
:
"string"
},
"teamUserId"
:
{
"type"
:
"string"
},
"updateBy"
:
{
"type"
:
"integer"
},
"wonderfulMomentImg"
:
{
"type"
:
"string"
},
"wonderfulMomentImgTitle"
:
{
"type"
:
"string"
},
"wonderfulMomentMv"
:
{
"type"
:
"string"
},
"wonderfulMomentMvTitle"
:
{
"type"
:
"string"
}
}
},
"dto.OrgMatchEvaluateUpdateReq"
:
{
"dto.OrgMatchEvaluateUpdateReq"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
...
@@ -5523,32 +6415,6 @@
...
@@ -5523,32 +6415,6 @@
}
}
}
}
},
},
"dto.OrgMatchTeamInsertReq"
:
{
"type"
:
"object"
,
"properties"
:
{
"clubId"
:
{
"type"
:
"string"
},
"createBy"
:
{
"type"
:
"integer"
},
"integral"
:
{
"type"
:
"string"
},
"matchId"
:
{
"type"
:
"string"
},
"matchScore"
:
{
"type"
:
"string"
},
"teamId"
:
{
"type"
:
"string"
},
"updateBy"
:
{
"type"
:
"integer"
}
}
},
"dto.OrgMatchTeamPlayerInsertReq"
:
{
"dto.OrgMatchTeamPlayerInsertReq"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
...
@@ -5664,35 +6530,6 @@
...
@@ -5664,35 +6530,6 @@
}
}
}
}
},
},
"dto.OrgMatchTeamUpdateReq"
:
{
"type"
:
"object"
,
"properties"
:
{
"clubId"
:
{
"type"
:
"string"
},
"createBy"
:
{
"type"
:
"integer"
},
"id"
:
{
"type"
:
"integer"
},
"integral"
:
{
"type"
:
"string"
},
"matchId"
:
{
"type"
:
"string"
},
"matchScore"
:
{
"type"
:
"string"
},
"teamId"
:
{
"type"
:
"string"
},
"updateBy"
:
{
"type"
:
"integer"
}
}
},
"dto.OrgMatchUpdateReq"
:
{
"dto.OrgMatchUpdateReq"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
...
...
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