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
233de2ab
Commit
233de2ab
authored
Jan 21, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Club
parent
7f6c3f53
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
184 additions
and
383 deletions
+184
-383
org_player.go
app/mobile/apis/org_player.go
+1
-1
org_player_user.go
app/mobile/apis/org_player_user.go
+0
-70
org_team_club.go
app/operate/apis/org_team_club.go
+11
-1
org_team_club.go
app/operate/router/org_team_club.go
+2
-2
org_team_user.go
app/operate/service/org_team_user.go
+15
-0
docs.go
docs/docs.go
+59
-117
swagger.json
docs/swagger.json
+59
-117
swagger.yaml
docs/swagger.yaml
+37
-75
No files found.
app/mobile/apis/org_player.go
View file @
233de2ab
...
@@ -61,7 +61,7 @@ func (e OrgPlayer) GetPage(c *gin.Context) {
...
@@ -61,7 +61,7 @@ func (e OrgPlayer) GetPage(c *gin.Context) {
// @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-player/{id} [get]
// @Router /
mobile
/v1/org-player/{id} [get]
// @Security Bearer
// @Security Bearer
func
(
e
OrgPlayer
)
Get
(
c
*
gin
.
Context
)
{
func
(
e
OrgPlayer
)
Get
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgPlayerGetReq
{}
req
:=
dto
.
OrgPlayerGetReq
{}
...
...
app/mobile/apis/org_player_user.go
View file @
233de2ab
package
apis
package
apis
import
(
import
(
"fmt"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin"
"github.com/go-admin-team/go-admin-core/sdk/api"
"github.com/go-admin-team/go-admin-core/sdk/api"
_
"github.com/go-admin-team/go-admin-core/sdk/pkg/response"
_
"github.com/go-admin-team/go-admin-core/sdk/pkg/response"
...
@@ -144,72 +143,3 @@ func (e OrgPlayerUser) Login(c *gin.Context) {
...
@@ -144,72 +143,3 @@ func (e OrgPlayerUser) Login(c *gin.Context) {
e
.
OK
(
reply
,
"查询成功"
)
e
.
OK
(
reply
,
"查询成功"
)
}
}
// GetPage <手机端>获取球员账户信息列表
// @Summary <手机端>获取球员账户信息列表
// @Description <手机端>获取球员账户信息列表
// @Tags <手机端>球员账户
// @Param pageSize query int false "页条数"
// @Param pageIndex query int false "页码"
// @Success 200 {string} string {"code": 200, "data": [...]}
// @Router /mobile/v1/org-player-user [get]
// @Security Bearer
func
(
e
OrgPlayerUser
)
GetPage
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgPlayerUserGetPageReq
{}
s
:=
service
.
OrgPlayerUser
{}
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
.
OrgPlayerUser
,
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,"msg":"更新成功","data":{}}"
// @Router /mobile/v1/org-player-user/{id} [get]
// @Security Bearer
func
(
e
OrgPlayerUser
)
Get
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgPlayerUserGetReq
{}
s
:=
service
.
OrgPlayerUser
{}
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
.
OrgPlayerUser
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
,
"查询成功"
)
}
app/operate/apis/org_team_club.go
View file @
233de2ab
...
@@ -2,6 +2,7 @@ package apis
...
@@ -2,6 +2,7 @@ package apis
import
(
import
(
"fmt"
"fmt"
"strconv"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin"
"github.com/go-admin-team/go-admin-core/sdk/api"
"github.com/go-admin-team/go-admin-core/sdk/api"
...
@@ -24,7 +25,7 @@ type OrgTeamClub struct {
...
@@ -24,7 +25,7 @@ type OrgTeamClub struct {
// @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-team-club
/{id}
[get]
// @Router /api/v1/org-team-club [get]
// @Security Bearer
// @Security Bearer
func
(
e
OrgTeamClub
)
Get
(
c
*
gin
.
Context
)
{
func
(
e
OrgTeamClub
)
Get
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgClubGetReq
{}
req
:=
dto
.
OrgClubGetReq
{}
...
@@ -39,9 +40,18 @@ func (e OrgTeamClub) Get(c *gin.Context) {
...
@@ -39,9 +40,18 @@ func (e OrgTeamClub) Get(c *gin.Context) {
e
.
Error
(
500
,
err
,
err
.
Error
())
e
.
Error
(
500
,
err
,
err
.
Error
())
return
return
}
}
sOrgTeamUser
:=
service
.
OrgTeamUser
{}
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
MakeService
(
&
sOrgTeamUser
.
Service
)
_
,
teamId
:=
sOrgTeamUser
.
GetTeamId
(
user
.
GetUserId
(
c
))
_
,
clubId
:=
sOrgTeamUser
.
GetClubId
(
teamId
)
var
object
models
.
OrgClub
var
object
models
.
OrgClub
p
:=
actions
.
GetPermissionFromContext
(
c
)
p
:=
actions
.
GetPermissionFromContext
(
c
)
req
.
Id
,
_
=
strconv
.
Atoi
(
clubId
)
err
=
s
.
Get
(
&
req
,
p
,
&
object
)
err
=
s
.
Get
(
&
req
,
p
,
&
object
)
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
()))
...
...
app/operate/router/org_team_club.go
View file @
233de2ab
...
@@ -17,7 +17,7 @@ func registerOrgTeamClubRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMi
...
@@ -17,7 +17,7 @@ func registerOrgTeamClubRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMi
api
:=
apis
.
OrgTeamClub
{}
api
:=
apis
.
OrgTeamClub
{}
r
:=
v1
.
Group
(
"/org-team-club"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
r
:=
v1
.
Group
(
"/org-team-club"
)
.
Use
(
authMiddleware
.
MiddlewareFunc
())
.
Use
(
middleware
.
AuthCheckRole
())
{
{
r
.
GET
(
"
/:id
"
,
api
.
Get
)
r
.
GET
(
""
,
api
.
Get
)
r
.
PUT
(
"/:id"
,
api
.
Update
)
r
.
PUT
(
"/:id"
,
api
.
Update
)
}
}
}
}
app/operate/service/org_team_user.go
View file @
233de2ab
...
@@ -138,6 +138,21 @@ func (e *OrgTeamUser) GetUserIds(ids []int) (error, []int) {
...
@@ -138,6 +138,21 @@ func (e *OrgTeamUser) GetUserIds(ids []int) (error, []int) {
return
nil
,
userIds
return
nil
,
userIds
}
}
// Get 获取OrgClubUser对象
func
(
e
*
OrgTeamUser
)
GetClubId
(
teamId
string
)
(
error
,
string
)
{
data
:=
new
(
models
.
OrgTeam
)
err
:=
e
.
Orm
.
Table
(
"org_team"
)
.
Select
(
"club_id"
)
.
Where
(
"id=?"
,
teamId
)
.
First
(
&
data
)
.
Error
if
err
!=
nil
{
e
.
Log
.
Errorf
(
"db error:%s"
,
err
)
return
err
,
""
}
return
nil
,
data
.
ClubId
}
// Get 获取OrgClubUser对象
// Get 获取OrgClubUser对象
func
(
e
*
OrgTeamUser
)
GetTeamId
(
userId
int
)
(
error
,
string
)
{
func
(
e
*
OrgTeamUser
)
GetTeamId
(
userId
int
)
(
error
,
string
)
{
data
:=
new
(
models
.
OrgTeamUser
)
data
:=
new
(
models
.
OrgTeamUser
)
...
...
docs/docs.go
View file @
233de2ab
...
@@ -3670,7 +3670,7 @@ var doc = `{
...
@@ -3670,7 +3670,7 @@ var doc = `{
}
}
}
}
},
},
"/api/v1/org-team-club
/{id}
": {
"/api/v1/org-team-club": {
"get": {
"get": {
"security": [
"security": [
{
{
...
@@ -3698,7 +3698,9 @@ var doc = `{
...
@@ -3698,7 +3698,9 @@ var doc = `{
}
}
}
}
}
}
}
},
},
"/api/v1/org-team-club/{id}": {
"put": {
"put": {
"security": [
"security": [
{
{
...
@@ -6720,42 +6722,6 @@ var doc = `{
...
@@ -6720,42 +6722,6 @@ var doc = `{
}
}
}
}
},
},
"/mobile/v1/org-player-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"
}
}
}
}
},
"/mobile/v1/org-player-user/get-msg": {
"/mobile/v1/org-player-user/get-msg": {
"post": {
"post": {
"security": [
"security": [
...
@@ -6822,36 +6788,6 @@ var doc = `{
...
@@ -6822,36 +6788,6 @@ var doc = `{
}
}
}
}
},
},
"/mobile/v1/org-player-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,\"msg\":\"更新成功\",\"data\":{}}",
"schema": {
"type": "string"
}
}
}
}
},
"/mobile/v1/org-player/evaluate": {
"/mobile/v1/org-player/evaluate": {
"get": {
"get": {
"security": [
"security": [
...
@@ -6965,6 +6901,36 @@ var doc = `{
...
@@ -6965,6 +6901,36 @@ var doc = `{
}
}
}
}
}
}
},
"/mobile/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"
}
}
}
}
}
}
},
},
"definitions": {
"definitions": {
...
@@ -7318,19 +7284,8 @@ var doc = `{
...
@@ -7318,19 +7284,8 @@ var doc = `{
"dto.OrgLeagueGetPageReq": {
"dto.OrgLeagueGetPageReq": {
"type": "object",
"type": "object",
"properties": {
"properties": {
"createBy": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"deletedAt": {
"type": "string"
},
"id": {
"type": "integer"
},
"leagueName": {
"leagueName": {
"description": "联赛级别",
"type": "string"
"type": "string"
},
},
"pageIndex": {
"pageIndex": {
...
@@ -7338,15 +7293,6 @@ var doc = `{
...
@@ -7338,15 +7293,6 @@ var doc = `{
},
},
"pageSize": {
"pageSize": {
"type": "integer"
"type": "integer"
},
"status": {
"type": "string"
},
"updateBy": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
}
}
},
},
...
@@ -7799,27 +7745,11 @@ var doc = `{
...
@@ -7799,27 +7745,11 @@ var doc = `{
"dto.OrgNewsGetPageReq": {
"dto.OrgNewsGetPageReq": {
"type": "object",
"type": "object",
"properties": {
"properties": {
"endTime": {
"description": "结束时间",
"type": "string"
},
"newsName": {
"description": "新闻名称",
"type": "string"
},
"pageIndex": {
"pageIndex": {
"type": "integer"
"type": "integer"
},
},
"pageSize": {
"pageSize": {
"type": "integer"
"type": "integer"
},
"startTime": {
"description": "开始时间",
"type": "string"
},
"status": {
"description": "新闻状态",
"type": "string"
}
}
}
}
},
},
...
@@ -9557,21 +9487,12 @@ var doc = `{
...
@@ -9557,21 +9487,12 @@ var doc = `{
"models.SysDept": {
"models.SysDept": {
"type": "object",
"type": "object",
"properties": {
"properties": {
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/models.SysDept"
}
},
"createBy": {
"createBy": {
"type": "integer"
"type": "integer"
},
},
"createdAt": {
"createdAt": {
"type": "string"
"type": "string"
},
},
"dataScope": {
"type": "string"
},
"deptId": {
"deptId": {
"description": "部门编码",
"description": "部门编码",
"type": "integer"
"type": "integer"
...
@@ -9591,9 +9512,6 @@ var doc = `{
...
@@ -9591,9 +9512,6 @@ var doc = `{
"description": "负责人",
"description": "负责人",
"type": "string"
"type": "string"
},
},
"params": {
"type": "string"
},
"parentId": {
"parentId": {
"description": "上级部门",
"description": "上级部门",
"type": "integer"
"type": "integer"
...
@@ -9624,9 +9542,21 @@ var doc = `{
...
@@ -9624,9 +9542,21 @@ var doc = `{
"action": {
"action": {
"type": "string"
"type": "string"
},
},
"apis": {
"type": "array",
"items": {
"type": "integer"
}
},
"breadcrumb": {
"breadcrumb": {
"type": "string"
"type": "string"
},
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/models.SysMenu"
}
},
"component": {
"component": {
"type": "string"
"type": "string"
},
},
...
@@ -9636,12 +9566,18 @@ var doc = `{
...
@@ -9636,12 +9566,18 @@ var doc = `{
"createdAt": {
"createdAt": {
"type": "string"
"type": "string"
},
},
"dataScope": {
"type": "string"
},
"icon": {
"icon": {
"type": "string"
"type": "string"
},
},
"isFrame": {
"isFrame": {
"type": "string"
"type": "string"
},
},
"is_select": {
"type": "boolean"
},
"menuId": {
"menuId": {
"type": "integer"
"type": "integer"
},
},
...
@@ -9654,6 +9590,9 @@ var doc = `{
...
@@ -9654,6 +9590,9 @@ var doc = `{
"noCache": {
"noCache": {
"type": "boolean"
"type": "boolean"
},
},
"params": {
"type": "string"
},
"parentId": {
"parentId": {
"type": "integer"
"type": "integer"
},
},
...
@@ -9666,6 +9605,9 @@ var doc = `{
...
@@ -9666,6 +9605,9 @@ var doc = `{
"permission": {
"permission": {
"type": "string"
"type": "string"
},
},
"roleId": {
"type": "integer"
},
"sort": {
"sort": {
"type": "integer"
"type": "integer"
},
},
...
...
docs/swagger.json
View file @
233de2ab
...
@@ -3653,7 +3653,7 @@
...
@@ -3653,7 +3653,7 @@
}
}
}
}
},
},
"/api/v1/org-team-club
/{id}
"
:
{
"/api/v1/org-team-club"
:
{
"get"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
{
{
...
@@ -3681,7 +3681,9 @@
...
@@ -3681,7 +3681,9 @@
}
}
}
}
}
}
}
},
},
"/api/v1/org-team-club/{id}"
:
{
"put"
:
{
"put"
:
{
"security"
:
[
"security"
:
[
{
{
...
@@ -6703,42 +6705,6 @@
...
@@ -6703,42 +6705,6 @@
}
}
}
}
},
},
"/mobile/v1/org-player-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"
}
}
}
}
},
"/mobile/v1/org-player-user/get-msg"
:
{
"/mobile/v1/org-player-user/get-msg"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
"security"
:
[
...
@@ -6805,36 +6771,6 @@
...
@@ -6805,36 +6771,6 @@
}
}
}
}
},
},
"/mobile/v1/org-player-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,
\"
msg
\"
:
\"
更新成功
\"
,
\"
data
\"
:{}}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/mobile/v1/org-player/evaluate"
:
{
"/mobile/v1/org-player/evaluate"
:
{
"get"
:
{
"get"
:
{
"security"
:
[
"security"
:
[
...
@@ -6948,6 +6884,36 @@
...
@@ -6948,6 +6884,36 @@
}
}
}
}
}
}
},
"/mobile/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"
}
}
}
}
}
}
},
},
"definitions"
:
{
"definitions"
:
{
...
@@ -7301,19 +7267,8 @@
...
@@ -7301,19 +7267,8 @@
"dto.OrgLeagueGetPageReq"
:
{
"dto.OrgLeagueGetPageReq"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"createBy"
:
{
"type"
:
"string"
},
"createdAt"
:
{
"type"
:
"string"
},
"deletedAt"
:
{
"type"
:
"string"
},
"id"
:
{
"type"
:
"integer"
},
"leagueName"
:
{
"leagueName"
:
{
"description"
:
"联赛级别"
,
"type"
:
"string"
"type"
:
"string"
},
},
"pageIndex"
:
{
"pageIndex"
:
{
...
@@ -7321,15 +7276,6 @@
...
@@ -7321,15 +7276,6 @@
},
},
"pageSize"
:
{
"pageSize"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
"status"
:
{
"type"
:
"string"
},
"updateBy"
:
{
"type"
:
"string"
},
"updatedAt"
:
{
"type"
:
"string"
}
}
}
}
},
},
...
@@ -7782,27 +7728,11 @@
...
@@ -7782,27 +7728,11 @@
"dto.OrgNewsGetPageReq"
:
{
"dto.OrgNewsGetPageReq"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"endTime"
:
{
"description"
:
"结束时间"
,
"type"
:
"string"
},
"newsName"
:
{
"description"
:
"新闻名称"
,
"type"
:
"string"
},
"pageIndex"
:
{
"pageIndex"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
"pageSize"
:
{
"pageSize"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
"startTime"
:
{
"description"
:
"开始时间"
,
"type"
:
"string"
},
"status"
:
{
"description"
:
"新闻状态"
,
"type"
:
"string"
}
}
}
}
},
},
...
@@ -9540,21 +9470,12 @@
...
@@ -9540,21 +9470,12 @@
"models.SysDept"
:
{
"models.SysDept"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"children"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/models.SysDept"
}
},
"createBy"
:
{
"createBy"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
"createdAt"
:
{
"createdAt"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"dataScope"
:
{
"type"
:
"string"
},
"deptId"
:
{
"deptId"
:
{
"description"
:
"部门编码"
,
"description"
:
"部门编码"
,
"type"
:
"integer"
"type"
:
"integer"
...
@@ -9574,9 +9495,6 @@
...
@@ -9574,9 +9495,6 @@
"description"
:
"负责人"
,
"description"
:
"负责人"
,
"type"
:
"string"
"type"
:
"string"
},
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"parentId"
:
{
"description"
:
"上级部门"
,
"description"
:
"上级部门"
,
"type"
:
"integer"
"type"
:
"integer"
...
@@ -9607,9 +9525,21 @@
...
@@ -9607,9 +9525,21 @@
"action"
:
{
"action"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"apis"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"integer"
}
},
"breadcrumb"
:
{
"breadcrumb"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"children"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/models.SysMenu"
}
},
"component"
:
{
"component"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
...
@@ -9619,12 +9549,18 @@
...
@@ -9619,12 +9549,18 @@
"createdAt"
:
{
"createdAt"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"dataScope"
:
{
"type"
:
"string"
},
"icon"
:
{
"icon"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"isFrame"
:
{
"isFrame"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"is_select"
:
{
"type"
:
"boolean"
},
"menuId"
:
{
"menuId"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
...
@@ -9637,6 +9573,9 @@
...
@@ -9637,6 +9573,9 @@
"noCache"
:
{
"noCache"
:
{
"type"
:
"boolean"
"type"
:
"boolean"
},
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"parentId"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
...
@@ -9649,6 +9588,9 @@
...
@@ -9649,6 +9588,9 @@
"permission"
:
{
"permission"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"roleId"
:
{
"type"
:
"integer"
},
"sort"
:
{
"sort"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
...
...
docs/swagger.yaml
View file @
233de2ab
...
@@ -232,26 +232,13 @@ definitions:
...
@@ -232,26 +232,13 @@ definitions:
type
:
object
type
:
object
dto.OrgLeagueGetPageReq
:
dto.OrgLeagueGetPageReq
:
properties
:
properties
:
createBy
:
type
:
string
createdAt
:
type
:
string
deletedAt
:
type
:
string
id
:
type
:
integer
leagueName
:
leagueName
:
description
:
联赛级别
type
:
string
type
:
string
pageIndex
:
pageIndex
:
type
:
integer
type
:
integer
pageSize
:
pageSize
:
type
:
integer
type
:
integer
status
:
type
:
string
updateBy
:
type
:
string
updatedAt
:
type
:
string
type
:
object
type
:
object
dto.OrgLeagueInsertReq
:
dto.OrgLeagueInsertReq
:
properties
:
properties
:
...
@@ -552,22 +539,10 @@ definitions:
...
@@ -552,22 +539,10 @@ definitions:
type
:
object
type
:
object
dto.OrgNewsGetPageReq
:
dto.OrgNewsGetPageReq
:
properties
:
properties
:
endTime
:
description
:
结束时间
type
:
string
newsName
:
description
:
新闻名称
type
:
string
pageIndex
:
pageIndex
:
type
:
integer
type
:
integer
pageSize
:
pageSize
:
type
:
integer
type
:
integer
startTime
:
description
:
开始时间
type
:
string
status
:
description
:
新闻状态
type
:
string
type
:
object
type
:
object
dto.OrgNewsInsertReq
:
dto.OrgNewsInsertReq
:
properties
:
properties
:
...
@@ -1739,16 +1714,10 @@ definitions:
...
@@ -1739,16 +1714,10 @@ definitions:
type
:
object
type
:
object
models.SysDept
:
models.SysDept
:
properties
:
properties
:
children
:
items
:
$ref
:
'
#/definitions/models.SysDept'
type
:
array
createBy
:
createBy
:
type
:
integer
type
:
integer
createdAt
:
createdAt
:
type
:
string
type
:
string
dataScope
:
type
:
string
deptId
:
deptId
:
description
:
部门编码
description
:
部门编码
type
:
integer
type
:
integer
...
@@ -1763,8 +1732,6 @@ definitions:
...
@@ -1763,8 +1732,6 @@ definitions:
leader
:
leader
:
description
:
负责人
description
:
负责人
type
:
string
type
:
string
params
:
type
:
string
parentId
:
parentId
:
description
:
上级部门
description
:
上级部门
type
:
integer
type
:
integer
...
@@ -1786,16 +1753,28 @@ definitions:
...
@@ -1786,16 +1753,28 @@ definitions:
properties
:
properties
:
action
:
action
:
type
:
string
type
:
string
apis
:
items
:
type
:
integer
type
:
array
breadcrumb
:
breadcrumb
:
type
:
string
type
:
string
children
:
items
:
$ref
:
'
#/definitions/models.SysMenu'
type
:
array
component
:
component
:
type
:
string
type
:
string
createBy
:
createBy
:
type
:
integer
type
:
integer
createdAt
:
createdAt
:
type
:
string
type
:
string
dataScope
:
type
:
string
icon
:
icon
:
type
:
string
type
:
string
is_select
:
type
:
boolean
isFrame
:
isFrame
:
type
:
string
type
:
string
menuId
:
menuId
:
...
@@ -1806,6 +1785,8 @@ definitions:
...
@@ -1806,6 +1785,8 @@ definitions:
type
:
string
type
:
string
noCache
:
noCache
:
type
:
boolean
type
:
boolean
params
:
type
:
string
parentId
:
parentId
:
type
:
integer
type
:
integer
path
:
path
:
...
@@ -1814,6 +1795,8 @@ definitions:
...
@@ -1814,6 +1795,8 @@ definitions:
type
:
string
type
:
string
permission
:
permission
:
type
:
string
type
:
string
roleId
:
type
:
integer
sort
:
sort
:
type
:
integer
type
:
integer
sysApi
:
sysApi
:
...
@@ -4265,7 +4248,7 @@ paths:
...
@@ -4265,7 +4248,7 @@ paths:
summary
:
<球队>创建球队
summary
:
<球队>创建球队
tags
:
tags
:
-
<球队>球队
-
<球队>球队
/api/v1/org-team-club
/{id}
:
/api/v1/org-team-club
:
get
:
get
:
description
:
<球队>获取俱乐部详情
description
:
<球队>获取俱乐部详情
parameters
:
parameters
:
...
@@ -4283,6 +4266,7 @@ paths:
...
@@ -4283,6 +4266,7 @@ paths:
summary
:
<球队>获取俱乐部详情
summary
:
<球队>获取俱乐部详情
tags
:
tags
:
-
<球队>俱乐部
-
<球队>俱乐部
/api/v1/org-team-club/{id}
:
put
:
put
:
consumes
:
consumes
:
-
application/json
-
application/json
...
@@ -6141,46 +6125,6 @@ paths:
...
@@ -6141,46 +6125,6 @@ paths:
summary
:
<手机端>获取球员排名
summary
:
<手机端>获取球员排名
tags
:
tags
:
-
<手机端>比赛排名
-
<手机端>比赛排名
/mobile/v1/org-player-user
:
get
:
description
:
<手机端>获取球员账户信息列表
parameters
:
-
description
:
页条数
in
:
query
name
:
pageSize
type
:
integer
-
description
:
页码
in
:
query
name
:
pageIndex
type
:
integer
responses
:
"
200"
:
description
:
'
code":
200,
"data":
[...]}'
schema
:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<手机端>获取球员账户信息列表
tags
:
-
<手机端>球员账户
/mobile/v1/org-player-user/{id}
:
get
:
description
:
<手机端>获取球员账户信息
parameters
:
-
description
:
id
in
:
path
name
:
id
type
:
string
responses
:
"
200"
:
description
:
'
{"code":
200,"msg":"更新成功","data":{}}'
schema
:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<手机端>获取球员账户信息
tags
:
-
<手机端>球员账户
/mobile/v1/org-player-user/get-msg
:
/mobile/v1/org-player-user/get-msg
:
post
:
post
:
description
:
<手机端>获取验证码
description
:
<手机端>获取验证码
...
@@ -6221,6 +6165,24 @@ paths:
...
@@ -6221,6 +6165,24 @@ paths:
summary
:
获取球员账户信息列表
summary
:
获取球员账户信息列表
tags
:
tags
:
-
<手机端>球员账户
-
<手机端>球员账户
/mobile/v1/org-player/{id}
:
get
:
description
:
<手机端>获取球员详情
parameters
:
-
description
:
id
in
:
path
name
:
id
type
:
string
responses
:
"
200"
:
description
:
'
{"code":
200,
"data":
[...]}'
schema
:
type
:
string
security
:
-
Bearer
:
[]
summary
:
<手机端>获取球员详情
tags
:
-
<手机端>球员数据
/mobile/v1/org-player/evaluate
:
/mobile/v1/org-player/evaluate
:
get
:
get
:
description
:
<手机端>获取球员精彩时刻
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