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
914cecaa
Commit
914cecaa
authored
Jan 15, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
b17ad4e2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
161 additions
and
42 deletions
+161
-42
org_team_user.go
app/operate/apis/org_team_user.go
+1
-0
org_team_user.go
app/operate/service/dto/org_team_user.go
+1
-1
docs.go
docs/docs.go
+59
-15
swagger.json
docs/swagger.json
+59
-15
swagger.yaml
docs/swagger.yaml
+41
-11
No files found.
app/operate/apis/org_team_user.go
View file @
914cecaa
...
@@ -27,6 +27,7 @@ type OrgTeamUser struct {
...
@@ -27,6 +27,7 @@ type OrgTeamUser struct {
// @Tags <球队>工作人员
// @Tags <球队>工作人员
// @Param pageSize query int false "页条数"
// @Param pageSize query int false "页条数"
// @Param pageIndex query int false "页码"
// @Param pageIndex query int false "页码"
// @Param data body dto.OrgTeamUserGetPageReq true "data"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-team-user [get]
// @Router /api/v1/org-team-user [get]
// @Security Bearer
// @Security Bearer
...
...
app/operate/service/dto/org_team_user.go
View file @
914cecaa
...
@@ -10,7 +10,7 @@ type OrgTeamUserGetPageReq struct {
...
@@ -10,7 +10,7 @@ type OrgTeamUserGetPageReq struct {
dto
.
Pagination
`search:"-"`
dto
.
Pagination
`search:"-"`
TeamName
string
`form:"teamName" search:"type:contains;column:team_name;table:ot" comment:"球队名称"`
//球队名称
TeamName
string
`form:"teamName" search:"type:contains;column:team_name;table:ot" comment:"球队名称"`
//球队名称
Name
string
`form:"name" search:"type:contains;column:name;table:otu" comment:"姓名"`
//姓名
Name
string
`form:"name" search:"type:contains;column:name;table:otu" comment:"姓名"`
//姓名
Status
string
`form:"status" search:"type:exact;column:status;table:su" comment:"状态"`
//状态
Status
string
`form:"status" search:"type:exact;column:status;table:su" comment:"状态"`
//状态
1 离职 2 在职
}
}
type
OrgTeamUserGetPageReply
struct
{
type
OrgTeamUserGetPageReply
struct
{
...
...
docs/docs.go
View file @
914cecaa
...
@@ -2893,11 +2893,11 @@ var doc = `{
...
@@ -2893,11 +2893,11 @@ var doc = `{
"Bearer": []
"Bearer": []
}
}
],
],
"description": "\u003c
球队\u003e获取球员
列表",
"description": "\u003c
俱乐部\u003e获取球员数据
列表",
"tags": [
"tags": [
"\u003c
球队
\u003e球员"
"\u003c
俱乐部
\u003e球员"
],
],
"summary": "\u003c
球队\u003e获取球员
列表",
"summary": "\u003c
俱乐部\u003e获取球员数据
列表",
"parameters": [
"parameters": [
{
{
"type": "integer",
"type": "integer",
...
@@ -4089,6 +4089,15 @@ var doc = `{
...
@@ -4089,6 +4089,15 @@ var doc = `{
"description": "页码",
"description": "页码",
"name": "pageIndex",
"name": "pageIndex",
"in": "query"
"in": "query"
},
{
"description": "data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgTeamUserGetPageReq"
}
}
}
],
],
"responses": {
"responses": {
...
@@ -7226,6 +7235,29 @@ var doc = `{
...
@@ -7226,6 +7235,29 @@ var doc = `{
}
}
}
}
},
},
"dto.OrgTeamUserGetPageReq": {
"type": "object",
"properties": {
"name": {
"description": "姓名",
"type": "string"
},
"pageIndex": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"status": {
"description": "状态 1 离职 2 在职",
"type": "string"
},
"teamName": {
"description": "球队名称",
"type": "string"
}
}
},
"dto.OrgTeamUserInsertReq": {
"dto.OrgTeamUserInsertReq": {
"type": "object",
"type": "object",
"properties": {
"properties": {
...
@@ -8370,21 +8402,12 @@ var doc = `{
...
@@ -8370,21 +8402,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"
...
@@ -8404,9 +8427,6 @@ var doc = `{
...
@@ -8404,9 +8427,6 @@ var doc = `{
"description": "负责人",
"description": "负责人",
"type": "string"
"type": "string"
},
},
"params": {
"type": "string"
},
"parentId": {
"parentId": {
"description": "上级部门",
"description": "上级部门",
"type": "integer"
"type": "integer"
...
@@ -8437,9 +8457,21 @@ var doc = `{
...
@@ -8437,9 +8457,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"
},
},
...
@@ -8449,12 +8481,18 @@ var doc = `{
...
@@ -8449,12 +8481,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"
},
},
...
@@ -8467,6 +8505,9 @@ var doc = `{
...
@@ -8467,6 +8505,9 @@ var doc = `{
"noCache": {
"noCache": {
"type": "boolean"
"type": "boolean"
},
},
"params": {
"type": "string"
},
"parentId": {
"parentId": {
"type": "integer"
"type": "integer"
},
},
...
@@ -8479,6 +8520,9 @@ var doc = `{
...
@@ -8479,6 +8520,9 @@ var doc = `{
"permission": {
"permission": {
"type": "string"
"type": "string"
},
},
"roleId": {
"type": "integer"
},
"sort": {
"sort": {
"type": "integer"
"type": "integer"
},
},
...
...
docs/swagger.json
View file @
914cecaa
...
@@ -2876,11 +2876,11 @@
...
@@ -2876,11 +2876,11 @@
"Bearer"
:
[]
"Bearer"
:
[]
}
}
],
],
"description"
:
"
\u
003c
球队
\u
003e获取球员
列表"
,
"description"
:
"
\u
003c
俱乐部
\u
003e获取球员数据
列表"
,
"tags"
:
[
"tags"
:
[
"
\u
003c
球队
\u
003e球员"
"
\u
003c
俱乐部
\u
003e球员"
],
],
"summary"
:
"
\u
003c
球队
\u
003e获取球员
列表"
,
"summary"
:
"
\u
003c
俱乐部
\u
003e获取球员数据
列表"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"integer"
,
"type"
:
"integer"
,
...
@@ -4072,6 +4072,15 @@
...
@@ -4072,6 +4072,15 @@
"description"
:
"页码"
,
"description"
:
"页码"
,
"name"
:
"pageIndex"
,
"name"
:
"pageIndex"
,
"in"
:
"query"
"in"
:
"query"
},
{
"description"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgTeamUserGetPageReq"
}
}
}
],
],
"responses"
:
{
"responses"
:
{
...
@@ -7209,6 +7218,29 @@
...
@@ -7209,6 +7218,29 @@
}
}
}
}
},
},
"dto.OrgTeamUserGetPageReq"
:
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"description"
:
"姓名"
,
"type"
:
"string"
},
"pageIndex"
:
{
"type"
:
"integer"
},
"pageSize"
:
{
"type"
:
"integer"
},
"status"
:
{
"description"
:
"状态 1 离职 2 在职"
,
"type"
:
"string"
},
"teamName"
:
{
"description"
:
"球队名称"
,
"type"
:
"string"
}
}
},
"dto.OrgTeamUserInsertReq"
:
{
"dto.OrgTeamUserInsertReq"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
...
@@ -8353,21 +8385,12 @@
...
@@ -8353,21 +8385,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"
...
@@ -8387,9 +8410,6 @@
...
@@ -8387,9 +8410,6 @@
"description"
:
"负责人"
,
"description"
:
"负责人"
,
"type"
:
"string"
"type"
:
"string"
},
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"parentId"
:
{
"description"
:
"上级部门"
,
"description"
:
"上级部门"
,
"type"
:
"integer"
"type"
:
"integer"
...
@@ -8420,9 +8440,21 @@
...
@@ -8420,9 +8440,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"
},
},
...
@@ -8432,12 +8464,18 @@
...
@@ -8432,12 +8464,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"
},
},
...
@@ -8450,6 +8488,9 @@
...
@@ -8450,6 +8488,9 @@
"noCache"
:
{
"noCache"
:
{
"type"
:
"boolean"
"type"
:
"boolean"
},
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"parentId"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
...
@@ -8462,6 +8503,9 @@
...
@@ -8462,6 +8503,9 @@
"permission"
:
{
"permission"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"roleId"
:
{
"type"
:
"integer"
},
"sort"
:
{
"sort"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
...
...
docs/swagger.yaml
View file @
914cecaa
...
@@ -632,6 +632,22 @@ definitions:
...
@@ -632,6 +632,22 @@ definitions:
updateBy
:
updateBy
:
type
:
integer
type
:
integer
type
:
object
type
:
object
dto.OrgTeamUserGetPageReq
:
properties
:
name
:
description
:
姓名
type
:
string
pageIndex
:
type
:
integer
pageSize
:
type
:
integer
status
:
description
:
状态 1 离职 2 在职
type
:
string
teamName
:
description
:
球队名称
type
:
string
type
:
object
dto.OrgTeamUserInsertReq
:
dto.OrgTeamUserInsertReq
:
properties
:
properties
:
clubId
:
clubId
:
...
@@ -1409,16 +1425,10 @@ definitions:
...
@@ -1409,16 +1425,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
...
@@ -1433,8 +1443,6 @@ definitions:
...
@@ -1433,8 +1443,6 @@ definitions:
leader
:
leader
:
description
:
负责人
description
:
负责人
type
:
string
type
:
string
params
:
type
:
string
parentId
:
parentId
:
description
:
上级部门
description
:
上级部门
type
:
integer
type
:
integer
...
@@ -1456,16 +1464,28 @@ definitions:
...
@@ -1456,16 +1464,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
:
...
@@ -1476,6 +1496,8 @@ definitions:
...
@@ -1476,6 +1496,8 @@ definitions:
type
:
string
type
:
string
noCache
:
noCache
:
type
:
boolean
type
:
boolean
params
:
type
:
string
parentId
:
parentId
:
type
:
integer
type
:
integer
path
:
path
:
...
@@ -1484,6 +1506,8 @@ definitions:
...
@@ -1484,6 +1506,8 @@ definitions:
type
:
string
type
:
string
permission
:
permission
:
type
:
string
type
:
string
roleId
:
type
:
integer
sort
:
sort
:
type
:
integer
type
:
integer
sysApi
:
sysApi
:
...
@@ -3472,7 +3496,7 @@ paths:
...
@@ -3472,7 +3496,7 @@ paths:
tags
:
tags
:
-
<球队>球员
-
<球队>球员
get
:
get
:
description
:
<
球队>获取球员
列表
description
:
<
俱乐部>获取球员数据
列表
parameters
:
parameters
:
-
description
:
页条数
-
description
:
页条数
in
:
query
in
:
query
...
@@ -3489,9 +3513,9 @@ paths:
...
@@ -3489,9 +3513,9 @@ paths:
type
:
string
type
:
string
security
:
security
:
-
Bearer
:
[]
-
Bearer
:
[]
summary
:
<
球队>获取球员
列表
summary
:
<
俱乐部>获取球员数据
列表
tags
:
tags
:
-
<
球队
>球员
-
<
俱乐部
>球员
post
:
post
:
consumes
:
consumes
:
-
application/json
-
application/json
...
@@ -4201,6 +4225,12 @@ paths:
...
@@ -4201,6 +4225,12 @@ paths:
in
:
query
in
:
query
name
:
pageIndex
name
:
pageIndex
type
:
integer
type
:
integer
-
description
:
data
in
:
body
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/dto.OrgTeamUserGetPageReq'
responses
:
responses
:
"
200"
:
"
200"
:
description
:
'
{"code":
200,
"data":
[...]}'
description
:
'
{"code":
200,
"data":
[...]}'
...
...
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