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
e5105abb
Commit
e5105abb
authored
Jan 15, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Player
parent
3dfe5710
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
414 additions
and
180 deletions
+414
-180
org_match.go
app/operate/apis/org_match.go
+2
-2
org_player.go
app/operate/apis/org_player.go
+95
-63
org_team_match.go
app/operate/apis/org_team_match.go
+3
-3
org_player.go
app/operate/service/dto/org_player.go
+55
-1
org_player.go
app/operate/service/org_player.go
+17
-5
org_player_user.go
app/operate/service/org_player_user.go
+45
-26
docs.go
docs/docs.go
+72
-28
swagger.json
docs/swagger.json
+72
-28
swagger.yaml
docs/swagger.yaml
+53
-24
No files found.
app/operate/apis/org_match.go
View file @
e5105abb
...
...
@@ -358,7 +358,7 @@ func (e OrgMatch) GetPlayer(c *gin.Context) {
}
p
:=
actions
.
GetPermissionFromContext
(
c
)
list
:=
make
([]
models
.
OrgPlayer
,
0
)
list
:=
make
([]
dto
.
OrgPlayerGetPageReply
,
0
)
var
count
int64
req
.
PageIndex
=
1
...
...
@@ -449,7 +449,7 @@ func (e OrgMatch) UpdatePlayer(c *gin.Context) {
teamId
:=
""
for
_
,
v
:=
range
playersIds
{
orgPlayer
:=
new
(
models
.
OrgPlayer
)
orgPlayer
:=
new
(
dto
.
OrgPlayerGetReply
)
id
,
_
:=
strconv
.
Atoi
(
v
)
reqOrgPlayer
:=
new
(
dto
.
OrgPlayerGetReq
)
reqOrgPlayer
.
Id
=
id
...
...
app/operate/apis/org_player.go
View file @
e5105abb
...
...
@@ -2,13 +2,12 @@ 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"
"strconv"
"go-admin/app/operate/models"
"go-admin/app/operate/service"
"go-admin/app/operate/service/dto"
"go-admin/common/actions"
...
...
@@ -42,7 +41,7 @@ func (e OrgPlayer) GetPage(c *gin.Context) {
}
p
:=
actions
.
GetPermissionFromContext
(
c
)
list
:=
make
([]
models
.
OrgPlayer
,
0
)
list
:=
make
([]
dto
.
OrgPlayerGetPageReply
,
0
)
var
count
int64
err
=
s
.
GetPage
(
&
req
,
p
,
&
list
,
&
count
)
...
...
@@ -75,7 +74,7 @@ func (e OrgPlayer) Get(c *gin.Context) {
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
var
object
models
.
OrgPlayer
var
object
dto
.
OrgPlayerGetReply
p
:=
actions
.
GetPermissionFromContext
(
c
)
err
=
s
.
Get
(
&
req
,
p
,
&
object
)
...
...
@@ -84,7 +83,7 @@ func (e OrgPlayer) Get(c *gin.Context) {
return
}
e
.
OK
(
object
,
"查询成功"
)
e
.
OK
(
object
,
"查询成功"
)
}
// Insert <球队>创建球员
...
...
@@ -110,6 +109,23 @@ func (e OrgPlayer) Insert(c *gin.Context) {
e
.
Error
(
500
,
err
,
err
.
Error
())
return
}
reqUser
:=
dto
.
OrgPlayerUserInsertReq
{}
sUser
:=
service
.
OrgPlayerUser
{}
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
MakeService
(
&
sUser
.
Service
)
_
,
userId
:=
sUser
.
IsBeing
(
req
.
Username
)
if
userId
>
0
{
req
.
PlayerUserId
=
strconv
.
Itoa
(
userId
)
}
else
{
// 设置创建人
reqUser
.
SetCreateBy
(
user
.
GetUserId
(
c
))
reqUser
.
Username
=
req
.
Username
reqUser
.
Password
=
dto
.
Pwd
(
"123456"
)
err
=
sUser
.
Insert
(
&
reqUser
)
req
.
PlayerUserId
=
strconv
.
Itoa
(
reqUser
.
Id
)
}
// 设置创建人
req
.
SetCreateBy
(
user
.
GetUserId
(
c
))
...
...
@@ -148,12 +164,28 @@ func (e OrgPlayer) Update(c *gin.Context) {
req
.
SetUpdateBy
(
user
.
GetUserId
(
c
))
p
:=
actions
.
GetPermissionFromContext
(
c
)
reqUser
:=
dto
.
OrgPlayerUserInsertReq
{}
sUser
:=
service
.
OrgPlayerUser
{}
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
MakeService
(
&
sUser
.
Service
)
_
,
userId
:=
sUser
.
IsBeing
(
req
.
Username
)
if
userId
>
0
{
req
.
PlayerUserId
=
strconv
.
Itoa
(
userId
)
}
else
{
// 设置创建人
reqUser
.
SetCreateBy
(
user
.
GetUserId
(
c
))
reqUser
.
Username
=
req
.
Username
reqUser
.
Password
=
dto
.
Pwd
(
"123456"
)
err
=
sUser
.
Insert
(
&
reqUser
)
req
.
PlayerUserId
=
strconv
.
Itoa
(
reqUser
.
Id
)
}
err
=
s
.
Update
(
&
req
,
p
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"修改球员 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
}
// Delete <球队>删除球员
...
...
@@ -186,5 +218,5 @@ func (e OrgPlayer) Delete(c *gin.Context) {
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"删除球员失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
e
.
OK
(
req
.
GetId
(),
"删除成功"
)
e
.
OK
(
req
.
GetId
(),
"删除成功"
)
}
app/operate/apis/org_team_match.go
View file @
e5105abb
...
...
@@ -78,11 +78,11 @@ func (e OrgTeamMatch) GetPlayers(c *gin.Context) {
}
p
:=
actions
.
GetPermissionFromContext
(
c
)
list
:=
make
([]
models
.
OrgPlayer
,
0
)
list
:=
make
([]
dto
.
OrgPlayerGetPageReply
,
0
)
var
count
int64
req
.
PageIndex
=
1
req
.
PageSize
=
999
req
.
PageSize
=
999
9
err
=
s
.
GetPage
(
&
req
,
p
,
&
list
,
&
count
)
if
err
!=
nil
{
...
...
@@ -167,7 +167,7 @@ func (e OrgTeamMatch) UpdatePlayers(c *gin.Context) {
teamId
:=
""
for
_
,
v
:=
range
playersIds
{
orgPlayer
:=
new
(
models
.
OrgPlayer
)
orgPlayer
:=
new
(
dto
.
OrgPlayerGetReply
)
id
,
_
:=
strconv
.
Atoi
(
v
)
reqOrgPlayer
:=
new
(
dto
.
OrgPlayerGetReq
)
reqOrgPlayer
.
Id
=
id
...
...
app/operate/service/dto/org_player.go
View file @
e5105abb
...
...
@@ -4,12 +4,29 @@ import (
"go-admin/app/operate/models"
"go-admin/common/dto"
common
"go-admin/common/models"
"golang.org/x/crypto/bcrypt"
"time"
)
type
OrgPlayerGetPageReq
struct
{
dto
.
Pagination
`search:"-"`
TeamId
string
`form:"teamId" search:"type:exact;column:team_id;table:org_player" comment:""`
TeamId
string
`form:"teamId" search:"type:contains;column:team_id;table:ot" comment:""`
TeamName
string
`form:"teamName" search:"type:contains;column:team_name;table:ot" comment:""`
PlayerName
string
`form:"playerName" search:"type:contains;column:player_name;table:op" comment:""`
Status
string
`form:"status" search:"type:exact;column:status;table:op" comment:""`
}
type
OrgPlayerGetPageReply
struct
{
Id
string
`json:"id" comment:"球队id"`
//球队id
ClubId
string
`json:"clubId" comment:"俱乐部id"`
ClubName
string
`json:"clubName" comment:"俱乐部名称"`
TeamId
string
`json:"teamId" comment:"球队id"`
TeamName
string
`json:"teamName" comment:"球队名称"`
PlayerName
string
`json:"playerName" comment:"球员名称"`
PlayerNameEn
string
`json:"playerNameEn" comment:"球员名称英文"`
PlayerNumber
string
`json:"playerNumber" comment:"球衣号"`
Position
string
`json:"position" comment:"场上位置"`
Sex
string
`json:"sex" comment:"性别"`
Status
string
`json:"status" comment:"状态"`
}
type
OrgPlayerOrder
struct
{
...
...
@@ -47,6 +64,8 @@ type OrgPlayerInsertReq struct {
PlayerImg
string
`json:"playerImg" comment:"球员照片"`
PlayerUserId
string
`json:"playerUserId" comment:"org_player_user表id"`
ShareConf
string
`json:"shareConf" comment:"分享功能 1 开启 2 关闭"`
PlayerNameEn
string
`json:"playerNameEn" comment:"球员名称英文"`
Username
string
`json:"username" comment:"账号"`
common
.
ControlBy
}
...
...
@@ -82,6 +101,8 @@ type OrgPlayerUpdateReq struct {
PlayerImg
string
`json:"playerImg" comment:"球员照片"`
PlayerUserId
string
`json:"playerUserId" comment:"org_player_user表id"`
ShareConf
string
`json:"shareConf" comment:"分享功能 1 开启 2 关闭"`
PlayerNameEn
string
`json:"playerNameEn" comment:"球员名称英文"`
Username
string
`json:"username" comment:"账号"`
common
.
ControlBy
}
...
...
@@ -110,6 +131,24 @@ type OrgPlayerGetReq struct {
Id
int
`uri:"id"`
}
type
OrgPlayerGetReply
struct
{
Id
int
`json:"id" comment:"球员id"`
ClubId
string
`json:"clubId" comment:"俱乐部id"`
ClubName
string
`json:"clubName" comment:"俱乐部名称"`
TeamId
string
`json:"teamId" comment:"球队id"`
TeamName
string
`json:"teamName" comment:"球队名称"`
PlayerName
string
`json:"playerName" comment:"球员名称"`
PlayerNameEn
string
`json:"playerNameEn" comment:"球员名称英文"`
IdCard
string
`json:"idCard" comment:"身份证号"`
Sex
string
`json:"sex" comment:"性别"`
PlayerNumber
string
`json:"playerNumber" comment:"球衣号"`
Position
string
`json:"position" comment:"场上位置"`
PlayerImg
string
`json:"playerImg" comment:"球员照片"`
Username
string
`json:"username" comment:"账号"`
ShareConf
string
`json:"shareConf" comment:"分享功能 1 开启 2 关闭"`
Status
string
`json:"status" comment:"状态"`
}
func
(
s
*
OrgPlayerGetReq
)
GetId
()
interface
{}
{
return
s
.
Id
}
...
...
@@ -122,3 +161,18 @@ type OrgPlayerDeleteReq struct {
func
(
s
*
OrgPlayerDeleteReq
)
GetId
()
interface
{}
{
return
s
.
Ids
}
func
Pwd
(
password
string
)
string
{
if
password
==
""
{
return
""
}
var
hash
[]
byte
var
err
error
if
hash
,
err
=
bcrypt
.
GenerateFromPassword
([]
byte
(
password
),
bcrypt
.
DefaultCost
);
err
!=
nil
{
return
""
}
else
{
return
string
(
hash
)
}
}
app/operate/service/org_player.go
View file @
e5105abb
...
...
@@ -16,16 +16,22 @@ type OrgPlayer struct {
}
// GetPage 获取OrgPlayer列表
func
(
e
*
OrgPlayer
)
GetPage
(
c
*
dto
.
OrgPlayerGetPageReq
,
p
*
actions
.
DataPermission
,
list
*
[]
models
.
OrgPlayer
,
count
*
int64
)
error
{
func
(
e
*
OrgPlayer
)
GetPage
(
c
*
dto
.
OrgPlayerGetPageReq
,
p
*
actions
.
DataPermission
,
list
*
[]
dto
.
OrgPlayerGetPageReply
,
count
*
int64
)
error
{
var
err
error
var
data
models
.
OrgPlayer
err
=
e
.
Orm
.
Model
(
&
data
)
.
err
=
e
.
Orm
.
Table
(
"org_player as op"
)
.
Select
(
"op.id,op.club_id,oc.club_name,op.team_id,ot.team_name,"
+
"op.player_name,op.player_number,op.position,op.sex,op.status"
)
.
Joins
(
"left join org_club as oc on op.club_id=oc.id"
)
.
Joins
(
"left join org_team as ot on op.team_id=ot.id"
)
.
Joins
(
"left join org_player_user as opu on op.player_user_id=opu.id"
)
.
Scopes
(
cDto
.
MakeCondition
(
c
.
GetNeedSearch
()),
cDto
.
Paginate
(
c
.
GetPageSize
(),
c
.
GetPageIndex
()),
actions
.
Permission
(
data
.
TableName
(),
p
),
cDto
.
SetWhere
(
""
,
"team_id"
,
c
.
TeamId
),
cDto
.
SetWhere
(
"op"
,
"team_id"
,
c
.
TeamId
),
cDto
.
PassDel
(
"op"
),
)
.
Find
(
list
)
.
Limit
(
-
1
)
.
Offset
(
-
1
)
.
Count
(
count
)
.
Error
...
...
@@ -37,10 +43,16 @@ func (e *OrgPlayer) GetPage(c *dto.OrgPlayerGetPageReq, p *actions.DataPermissio
}
// Get 获取OrgPlayer对象
func
(
e
*
OrgPlayer
)
Get
(
d
*
dto
.
OrgPlayerGetReq
,
p
*
actions
.
DataPermission
,
model
*
models
.
OrgPlayer
)
error
{
func
(
e
*
OrgPlayer
)
Get
(
d
*
dto
.
OrgPlayerGetReq
,
p
*
actions
.
DataPermission
,
model
*
dto
.
OrgPlayerGetReply
)
error
{
var
data
models
.
OrgPlayer
err
:=
e
.
Orm
.
Model
(
&
data
)
.
err
:=
e
.
Orm
.
Table
(
"org_player as op"
)
.
Select
(
"op.id,op.club_id,oc.club_name,op.team_id,ot.team_name,"
+
"op.player_name,op.player_name_en,op.id_card,op.player_number,"
+
"op.position,op.sex,op.player_img,opu.username,op.share_conf,op.status"
)
.
Joins
(
"left join org_club as oc on op.club_id=oc.id"
)
.
Joins
(
"left join org_team as ot on op.team_id=ot.id"
)
.
Joins
(
"left join org_player_user as opu on op.player_user_id=opu.id"
)
.
Scopes
(
actions
.
Permission
(
data
.
TableName
(),
p
),
)
.
...
...
app/operate/service/org_player_user.go
View file @
e5105abb
...
...
@@ -67,6 +67,7 @@ func (e *OrgPlayerUser) Insert(c *dto.OrgPlayerUserInsertReq) error {
e
.
Log
.
Errorf
(
"OrgPlayerUserService Insert error:%s
\r\n
"
,
err
)
return
err
}
c
.
Id
=
data
.
Id
return
nil
}
...
...
@@ -107,3 +108,21 @@ func (e *OrgPlayerUser) Remove(d *dto.OrgPlayerUserDeleteReq, p *actions.DataPer
}
return
nil
}
func
(
e
*
OrgPlayerUser
)
IsBeing
(
username
string
)
(
error
,
int
)
{
var
data
models
.
OrgPlayerUser
err
:=
e
.
Orm
.
Model
(
&
data
)
.
Where
(
"username=?"
,
username
)
.
First
(
&
data
)
.
Error
if
err
!=
nil
&&
errors
.
Is
(
err
,
gorm
.
ErrRecordNotFound
)
{
err
=
errors
.
New
(
"查看对象不存在或无权查看"
)
e
.
Log
.
Errorf
(
"Service GetOrgMatchTeamPlayer error:%s
\r\n
"
,
err
)
return
err
,
0
}
if
err
!=
nil
{
e
.
Log
.
Errorf
(
"db error:%s"
,
err
)
return
err
,
0
}
return
nil
,
data
.
Id
}
docs/docs.go
View file @
e5105abb
...
...
@@ -1948,11 +1948,11 @@ var doc = `{
"Bearer": []
}
],
"description": "
\u003c赛事\u003e
获取联赛列表",
"description": "获取联赛列表",
"tags": [
"
\u003c赛事\u003e
联赛"
"联赛"
],
"summary": "
\u003c赛事\u003e
获取联赛列表",
"summary": "获取联赛列表",
"parameters": [
{
"type": "integer",
...
...
@@ -1982,14 +1982,14 @@ var doc = `{
"Bearer": []
}
],
"description": "
\u003c赛事\u003e
创建联赛",
"description": "创建联赛",
"consumes": [
"application/json"
],
"tags": [
"
\u003c赛事\u003e
联赛"
"联赛"
],
"summary": "
\u003c赛事\u003e
创建联赛",
"summary": "创建联赛",
"parameters": [
{
"description": "data",
...
...
@@ -2016,11 +2016,11 @@ var doc = `{
"Bearer": []
}
],
"description": "
\u003c赛事\u003e
删除联赛",
"description": "删除联赛",
"tags": [
"
\u003c赛事\u003e
联赛"
"联赛"
],
"summary": "
\u003c赛事\u003e
删除联赛",
"summary": "删除联赛",
"parameters": [
{
"description": "ids",
...
...
@@ -2051,11 +2051,11 @@ var doc = `{
"Bearer": []
}
],
"description": "
\u003c赛事\u003e
获取联赛",
"description": "获取联赛",
"tags": [
"
\u003c赛事\u003e
联赛"
"联赛"
],
"summary": "
\u003c赛事\u003e
获取联赛",
"summary": "获取联赛",
"parameters": [
{
"type": "string",
...
...
@@ -2079,14 +2079,14 @@ var doc = `{
"Bearer": []
}
],
"description": "
\u003c赛事\u003e
修改联赛",
"description": "修改联赛",
"consumes": [
"application/json"
],
"tags": [
"
\u003c赛事\u003e
联赛"
"联赛"
],
"summary": "
\u003c赛事\u003e
修改联赛",
"summary": "修改联赛",
"parameters": [
{
"description": "body",
...
...
@@ -7016,6 +7016,9 @@ var doc = `{
"playerName": {
"type": "string"
},
"playerNameEn": {
"type": "string"
},
"playerNumber": {
"type": "string"
},
...
...
@@ -7036,6 +7039,9 @@ var doc = `{
},
"updateBy": {
"type": "integer"
},
"username": {
"type": "string"
}
}
},
...
...
@@ -7060,6 +7066,9 @@ var doc = `{
"playerName": {
"type": "string"
},
"playerNameEn": {
"type": "string"
},
"playerNumber": {
"type": "string"
},
...
...
@@ -7080,6 +7089,9 @@ var doc = `{
},
"updateBy": {
"type": "integer"
},
"username": {
"type": "string"
}
}
},
...
...
@@ -7214,6 +7226,12 @@ var doc = `{
"dto.OrgTeamGetPageReq": {
"type": "object",
"properties": {
"clubId": {
"type": "string"
},
"createBy": {
"type": "string"
},
"createEndTime": {
"description": "结束时间",
"type": "string"
...
...
@@ -7222,6 +7240,15 @@ var doc = `{
"description": "开始时间",
"type": "string"
},
"createdAt": {
"type": "string"
},
"deletedAt": {
"type": "string"
},
"id": {
"type": "integer"
},
"pageIndex": {
"type": "integer"
},
...
...
@@ -7229,7 +7256,12 @@ var doc = `{
"type": "integer"
},
"teamName": {
"description": "球队名称",
"type": "string"
},
"updateBy": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
...
...
@@ -8438,21 +8470,12 @@ var doc = `{
"models.SysDept": {
"type": "object",
"properties": {
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/models.SysDept"
}
},
"createBy": {
"type": "integer"
},
"createdAt": {
"type": "string"
},
"dataScope": {
"type": "string"
},
"deptId": {
"description": "部门编码",
"type": "integer"
...
...
@@ -8472,9 +8495,6 @@ var doc = `{
"description": "负责人",
"type": "string"
},
"params": {
"type": "string"
},
"parentId": {
"description": "上级部门",
"type": "integer"
...
...
@@ -8505,9 +8525,21 @@ var doc = `{
"action": {
"type": "string"
},
"apis": {
"type": "array",
"items": {
"type": "integer"
}
},
"breadcrumb": {
"type": "string"
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/models.SysMenu"
}
},
"component": {
"type": "string"
},
...
...
@@ -8517,12 +8549,18 @@ var doc = `{
"createdAt": {
"type": "string"
},
"dataScope": {
"type": "string"
},
"icon": {
"type": "string"
},
"isFrame": {
"type": "string"
},
"is_select": {
"type": "boolean"
},
"menuId": {
"type": "integer"
},
...
...
@@ -8535,6 +8573,9 @@ var doc = `{
"noCache": {
"type": "boolean"
},
"params": {
"type": "string"
},
"parentId": {
"type": "integer"
},
...
...
@@ -8547,6 +8588,9 @@ var doc = `{
"permission": {
"type": "string"
},
"roleId": {
"type": "integer"
},
"sort": {
"type": "integer"
},
...
...
docs/swagger.json
View file @
e5105abb
...
...
@@ -1931,11 +1931,11 @@
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c赛事
\u
003e
获取联赛列表"
,
"description"
:
"获取联赛列表"
,
"tags"
:
[
"
\u
003c赛事
\u
003e
联赛"
"联赛"
],
"summary"
:
"
\u
003c赛事
\u
003e
获取联赛列表"
,
"summary"
:
"获取联赛列表"
,
"parameters"
:
[
{
"type"
:
"integer"
,
...
...
@@ -1965,14 +1965,14 @@
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c赛事
\u
003e
创建联赛"
,
"description"
:
"创建联赛"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"
\u
003c赛事
\u
003e
联赛"
"联赛"
],
"summary"
:
"
\u
003c赛事
\u
003e
创建联赛"
,
"summary"
:
"创建联赛"
,
"parameters"
:
[
{
"description"
:
"data"
,
...
...
@@ -1999,11 +1999,11 @@
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c赛事
\u
003e
删除联赛"
,
"description"
:
"删除联赛"
,
"tags"
:
[
"
\u
003c赛事
\u
003e
联赛"
"联赛"
],
"summary"
:
"
\u
003c赛事
\u
003e
删除联赛"
,
"summary"
:
"删除联赛"
,
"parameters"
:
[
{
"description"
:
"ids"
,
...
...
@@ -2034,11 +2034,11 @@
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c赛事
\u
003e
获取联赛"
,
"description"
:
"获取联赛"
,
"tags"
:
[
"
\u
003c赛事
\u
003e
联赛"
"联赛"
],
"summary"
:
"
\u
003c赛事
\u
003e
获取联赛"
,
"summary"
:
"获取联赛"
,
"parameters"
:
[
{
"type"
:
"string"
,
...
...
@@ -2062,14 +2062,14 @@
"Bearer"
:
[]
}
],
"description"
:
"
\u
003c赛事
\u
003e
修改联赛"
,
"description"
:
"修改联赛"
,
"consumes"
:
[
"application/json"
],
"tags"
:
[
"
\u
003c赛事
\u
003e
联赛"
"联赛"
],
"summary"
:
"
\u
003c赛事
\u
003e
修改联赛"
,
"summary"
:
"修改联赛"
,
"parameters"
:
[
{
"description"
:
"body"
,
...
...
@@ -6999,6 +6999,9 @@
"playerName"
:
{
"type"
:
"string"
},
"playerNameEn"
:
{
"type"
:
"string"
},
"playerNumber"
:
{
"type"
:
"string"
},
...
...
@@ -7019,6 +7022,9 @@
},
"updateBy"
:
{
"type"
:
"integer"
},
"username"
:
{
"type"
:
"string"
}
}
},
...
...
@@ -7043,6 +7049,9 @@
"playerName"
:
{
"type"
:
"string"
},
"playerNameEn"
:
{
"type"
:
"string"
},
"playerNumber"
:
{
"type"
:
"string"
},
...
...
@@ -7063,6 +7072,9 @@
},
"updateBy"
:
{
"type"
:
"integer"
},
"username"
:
{
"type"
:
"string"
}
}
},
...
...
@@ -7197,6 +7209,12 @@
"dto.OrgTeamGetPageReq"
:
{
"type"
:
"object"
,
"properties"
:
{
"clubId"
:
{
"type"
:
"string"
},
"createBy"
:
{
"type"
:
"string"
},
"createEndTime"
:
{
"description"
:
"结束时间"
,
"type"
:
"string"
...
...
@@ -7205,6 +7223,15 @@
"description"
:
"开始时间"
,
"type"
:
"string"
},
"createdAt"
:
{
"type"
:
"string"
},
"deletedAt"
:
{
"type"
:
"string"
},
"id"
:
{
"type"
:
"integer"
},
"pageIndex"
:
{
"type"
:
"integer"
},
...
...
@@ -7212,7 +7239,12 @@
"type"
:
"integer"
},
"teamName"
:
{
"description"
:
"球队名称"
,
"type"
:
"string"
},
"updateBy"
:
{
"type"
:
"string"
},
"updatedAt"
:
{
"type"
:
"string"
}
}
...
...
@@ -8421,21 +8453,12 @@
"models.SysDept"
:
{
"type"
:
"object"
,
"properties"
:
{
"children"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/models.SysDept"
}
},
"createBy"
:
{
"type"
:
"integer"
},
"createdAt"
:
{
"type"
:
"string"
},
"dataScope"
:
{
"type"
:
"string"
},
"deptId"
:
{
"description"
:
"部门编码"
,
"type"
:
"integer"
...
...
@@ -8455,9 +8478,6 @@
"description"
:
"负责人"
,
"type"
:
"string"
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"description"
:
"上级部门"
,
"type"
:
"integer"
...
...
@@ -8488,9 +8508,21 @@
"action"
:
{
"type"
:
"string"
},
"apis"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"integer"
}
},
"breadcrumb"
:
{
"type"
:
"string"
},
"children"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/models.SysMenu"
}
},
"component"
:
{
"type"
:
"string"
},
...
...
@@ -8500,12 +8532,18 @@
"createdAt"
:
{
"type"
:
"string"
},
"dataScope"
:
{
"type"
:
"string"
},
"icon"
:
{
"type"
:
"string"
},
"isFrame"
:
{
"type"
:
"string"
},
"is_select"
:
{
"type"
:
"boolean"
},
"menuId"
:
{
"type"
:
"integer"
},
...
...
@@ -8518,6 +8556,9 @@
"noCache"
:
{
"type"
:
"boolean"
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"type"
:
"integer"
},
...
...
@@ -8530,6 +8571,9 @@
"permission"
:
{
"type"
:
"string"
},
"roleId"
:
{
"type"
:
"integer"
},
"sort"
:
{
"type"
:
"integer"
},
...
...
docs/swagger.yaml
View file @
e5105abb
...
...
@@ -464,6 +464,8 @@ definitions:
type
:
string
playerName
:
type
:
string
playerNameEn
:
type
:
string
playerNumber
:
type
:
string
playerUserId
:
...
...
@@ -478,6 +480,8 @@ definitions:
type
:
string
updateBy
:
type
:
integer
username
:
type
:
string
type
:
object
dto.OrgPlayerUpdateReq
:
properties
:
...
...
@@ -493,6 +497,8 @@ definitions:
type
:
string
playerName
:
type
:
string
playerNameEn
:
type
:
string
playerNumber
:
type
:
string
playerUserId
:
...
...
@@ -507,6 +513,8 @@ definitions:
type
:
string
updateBy
:
type
:
integer
username
:
type
:
string
type
:
object
dto.OrgPlayerUserInsertReq
:
properties
:
...
...
@@ -594,18 +602,31 @@ definitions:
type
:
object
dto.OrgTeamGetPageReq
:
properties
:
clubId
:
type
:
string
createBy
:
type
:
string
createEndTime
:
description
:
结束时间
type
:
string
createStartTime
:
description
:
开始时间
type
:
string
createdAt
:
type
:
string
deletedAt
:
type
:
string
id
:
type
:
integer
pageIndex
:
type
:
integer
pageSize
:
type
:
integer
teamName
:
description
:
球队名称
type
:
string
updateBy
:
type
:
string
updatedAt
:
type
:
string
type
:
object
dto.OrgTeamInsertReq
:
...
...
@@ -1425,16 +1446,10 @@ definitions:
type
:
object
models.SysDept
:
properties
:
children
:
items
:
$ref
:
'
#/definitions/models.SysDept'
type
:
array
createBy
:
type
:
integer
createdAt
:
type
:
string
dataScope
:
type
:
string
deptId
:
description
:
部门编码
type
:
integer
...
...
@@ -1449,8 +1464,6 @@ definitions:
leader
:
description
:
负责人
type
:
string
params
:
type
:
string
parentId
:
description
:
上级部门
type
:
integer
...
...
@@ -1472,16 +1485,28 @@ definitions:
properties
:
action
:
type
:
string
apis
:
items
:
type
:
integer
type
:
array
breadcrumb
:
type
:
string
children
:
items
:
$ref
:
'
#/definitions/models.SysMenu'
type
:
array
component
:
type
:
string
createBy
:
type
:
integer
createdAt
:
type
:
string
dataScope
:
type
:
string
icon
:
type
:
string
is_select
:
type
:
boolean
isFrame
:
type
:
string
menuId
:
...
...
@@ -1492,6 +1517,8 @@ definitions:
type
:
string
noCache
:
type
:
boolean
params
:
type
:
string
parentId
:
type
:
integer
path
:
...
...
@@ -1500,6 +1527,8 @@ definitions:
type
:
string
permission
:
type
:
string
roleId
:
type
:
integer
sort
:
type
:
integer
sysApi
:
...
...
@@ -2891,7 +2920,7 @@ paths:
-
<赛事>赛区
/api/v1/org-league
:
delete
:
description
:
<赛事>
删除联赛
description
:
删除联赛
parameters
:
-
description
:
ids
in
:
body
...
...
@@ -2907,11 +2936,11 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<赛事>
删除联赛
summary
:
删除联赛
tags
:
-
<赛事>
联赛
-
联赛
get
:
description
:
<赛事>
获取联赛列表
description
:
获取联赛列表
parameters
:
-
description
:
页条数
in
:
query
...
...
@@ -2928,13 +2957,13 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<赛事>
获取联赛列表
summary
:
获取联赛列表
tags
:
-
<赛事>
联赛
-
联赛
post
:
consumes
:
-
application/json
description
:
<赛事>
创建联赛
description
:
创建联赛
parameters
:
-
description
:
data
in
:
body
...
...
@@ -2949,12 +2978,12 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<赛事>
创建联赛
summary
:
创建联赛
tags
:
-
<赛事>
联赛
-
联赛
/api/v1/org-league/{id}
:
get
:
description
:
<赛事>
获取联赛
description
:
获取联赛
parameters
:
-
description
:
id
in
:
path
...
...
@@ -2967,13 +2996,13 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<赛事>
获取联赛
summary
:
获取联赛
tags
:
-
<赛事>
联赛
-
联赛
put
:
consumes
:
-
application/json
description
:
<赛事>
修改联赛
description
:
修改联赛
parameters
:
-
description
:
body
in
:
body
...
...
@@ -2988,9 +3017,9 @@ paths:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<赛事>
修改联赛
summary
:
修改联赛
tags
:
-
<赛事>
联赛
-
联赛
/api/v1/org-match
:
delete
:
description
:
<赛事>删除比赛
...
...
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