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
033bc81b
Commit
033bc81b
authored
Jan 22, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swag
parent
48f8f0fd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
316 additions
and
117 deletions
+316
-117
docs.go
docs/docs.go
+117
-43
swagger.json
docs/swagger.json
+117
-43
swagger.yaml
docs/swagger.yaml
+82
-31
No files found.
docs/docs.go
View file @
033bc81b
...
@@ -4555,10 +4555,13 @@ var doc = `{
...
@@ -4555,10 +4555,13 @@ var doc = `{
"summary": "\u003c赛事\u003e列表用户信息数据",
"summary": "\u003c赛事\u003e列表用户信息数据",
"parameters": [
"parameters": [
{
{
"type": "string",
"description": "data",
"description": "username",
"name": "data",
"name": "username",
"in": "body",
"in": "query"
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgUserGetPageReq"
}
}
}
],
],
"responses": {
"responses": {
...
@@ -4591,7 +4594,7 @@ var doc = `{
...
@@ -4591,7 +4594,7 @@ var doc = `{
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/dto.
Sys
UserInsertReq"
"$ref": "#/definitions/dto.
Org
UserInsertReq"
}
}
}
}
],
],
...
@@ -4663,7 +4666,7 @@ var doc = `{
...
@@ -4663,7 +4666,7 @@ var doc = `{
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/dto.
UpdateSysUser
StatusReq"
"$ref": "#/definitions/dto.
OrgUserUpdate
StatusReq"
}
}
}
}
],
],
...
@@ -4728,7 +4731,7 @@ var doc = `{
...
@@ -4728,7 +4731,7 @@ var doc = `{
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/dto.
Sys
UserUpdateReq"
"$ref": "#/definitions/dto.
Org
UserUpdateReq"
}
}
}
}
],
],
...
@@ -8355,6 +8358,109 @@ var doc = `{
...
@@ -8355,6 +8358,109 @@ var doc = `{
}
}
}
}
},
},
"dto.OrgUserGetPageReq": {
"type": "object",
"properties": {
"nickName": {
"description": "姓名",
"type": "string"
},
"pageIndex": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"roleId": {
"description": "角色",
"type": "string"
},
"status": {
"description": "状态 1 离职 2 在职",
"type": "string"
},
"username": {
"description": "账号(手机号)",
"type": "string"
}
}
},
"dto.OrgUserInsertReq": {
"type": "object",
"properties": {
"createBy": {
"type": "integer"
},
"nickName": {
"type": "string"
},
"nickNameEn": {
"type": "string"
},
"roleId": {
"type": "string"
},
"status": {
"type": "string",
"default": "2"
},
"updateBy": {
"type": "integer"
},
"userType": {
"type": "string",
"default": "2"
},
"username": {
"type": "string"
}
}
},
"dto.OrgUserUpdateReq": {
"type": "object",
"properties": {
"createBy": {
"type": "integer"
},
"nickName": {
"type": "string"
},
"nickNameEn": {
"type": "string"
},
"roleId": {
"type": "string"
},
"status": {
"type": "string",
"default": "2"
},
"updateBy": {
"type": "integer"
},
"username": {
"type": "string"
}
}
},
"dto.OrgUserUpdateStatusReq": {
"type": "object",
"properties": {
"createBy": {
"type": "integer"
},
"id": {
"type": "integer"
},
"status": {
"description": "状态 1 离职 2 在职",
"type": "string"
},
"updateBy": {
"type": "integer"
}
}
},
"dto.PassWord": {
"dto.PassWord": {
"type": "object",
"type": "object",
"properties": {
"properties": {
...
@@ -9242,6 +9348,10 @@ var doc = `{
...
@@ -9242,6 +9348,10 @@ var doc = `{
"description": "用户ID",
"description": "用户ID",
"type": "integer"
"type": "integer"
},
},
"userType": {
"type": "string",
"default": "1"
},
"username": {
"username": {
"type": "string"
"type": "string"
}
}
...
@@ -9428,21 +9538,12 @@ var doc = `{
...
@@ -9428,21 +9538,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"
...
@@ -9462,9 +9563,6 @@ var doc = `{
...
@@ -9462,9 +9563,6 @@ var doc = `{
"description": "负责人",
"description": "负责人",
"type": "string"
"type": "string"
},
},
"params": {
"type": "string"
},
"parentId": {
"parentId": {
"description": "上级部门",
"description": "上级部门",
"type": "integer"
"type": "integer"
...
@@ -9495,21 +9593,9 @@ var doc = `{
...
@@ -9495,21 +9593,9 @@ 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"
},
},
...
@@ -9519,18 +9605,12 @@ var doc = `{
...
@@ -9519,18 +9605,12 @@ 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"
},
},
...
@@ -9543,9 +9623,6 @@ var doc = `{
...
@@ -9543,9 +9623,6 @@ var doc = `{
"noCache": {
"noCache": {
"type": "boolean"
"type": "boolean"
},
},
"params": {
"type": "string"
},
"parentId": {
"parentId": {
"type": "integer"
"type": "integer"
},
},
...
@@ -9558,9 +9635,6 @@ var doc = `{
...
@@ -9558,9 +9635,6 @@ var doc = `{
"permission": {
"permission": {
"type": "string"
"type": "string"
},
},
"roleId": {
"type": "integer"
},
"sort": {
"sort": {
"type": "integer"
"type": "integer"
},
},
...
...
docs/swagger.json
View file @
033bc81b
...
@@ -4538,10 +4538,13 @@
...
@@ -4538,10 +4538,13 @@
"summary"
:
"
\u
003c赛事
\u
003e列表用户信息数据"
,
"summary"
:
"
\u
003c赛事
\u
003e列表用户信息数据"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"description"
:
"data"
,
"description"
:
"username"
,
"name"
:
"data"
,
"name"
:
"username"
,
"in"
:
"body"
,
"in"
:
"query"
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgUserGetPageReq"
}
}
}
],
],
"responses"
:
{
"responses"
:
{
...
@@ -4574,7 +4577,7 @@
...
@@ -4574,7 +4577,7 @@
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"$ref"
:
"#/definitions/dto.
Sys
UserInsertReq"
"$ref"
:
"#/definitions/dto.
Org
UserInsertReq"
}
}
}
}
],
],
...
@@ -4646,7 +4649,7 @@
...
@@ -4646,7 +4649,7 @@
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"$ref"
:
"#/definitions/dto.
UpdateSysUser
StatusReq"
"$ref"
:
"#/definitions/dto.
OrgUserUpdate
StatusReq"
}
}
}
}
],
],
...
@@ -4711,7 +4714,7 @@
...
@@ -4711,7 +4714,7 @@
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"$ref"
:
"#/definitions/dto.
Sys
UserUpdateReq"
"$ref"
:
"#/definitions/dto.
Org
UserUpdateReq"
}
}
}
}
],
],
...
@@ -8338,6 +8341,109 @@
...
@@ -8338,6 +8341,109 @@
}
}
}
}
},
},
"dto.OrgUserGetPageReq"
:
{
"type"
:
"object"
,
"properties"
:
{
"nickName"
:
{
"description"
:
"姓名"
,
"type"
:
"string"
},
"pageIndex"
:
{
"type"
:
"integer"
},
"pageSize"
:
{
"type"
:
"integer"
},
"roleId"
:
{
"description"
:
"角色"
,
"type"
:
"string"
},
"status"
:
{
"description"
:
"状态 1 离职 2 在职"
,
"type"
:
"string"
},
"username"
:
{
"description"
:
"账号(手机号)"
,
"type"
:
"string"
}
}
},
"dto.OrgUserInsertReq"
:
{
"type"
:
"object"
,
"properties"
:
{
"createBy"
:
{
"type"
:
"integer"
},
"nickName"
:
{
"type"
:
"string"
},
"nickNameEn"
:
{
"type"
:
"string"
},
"roleId"
:
{
"type"
:
"string"
},
"status"
:
{
"type"
:
"string"
,
"default"
:
"2"
},
"updateBy"
:
{
"type"
:
"integer"
},
"userType"
:
{
"type"
:
"string"
,
"default"
:
"2"
},
"username"
:
{
"type"
:
"string"
}
}
},
"dto.OrgUserUpdateReq"
:
{
"type"
:
"object"
,
"properties"
:
{
"createBy"
:
{
"type"
:
"integer"
},
"nickName"
:
{
"type"
:
"string"
},
"nickNameEn"
:
{
"type"
:
"string"
},
"roleId"
:
{
"type"
:
"string"
},
"status"
:
{
"type"
:
"string"
,
"default"
:
"2"
},
"updateBy"
:
{
"type"
:
"integer"
},
"username"
:
{
"type"
:
"string"
}
}
},
"dto.OrgUserUpdateStatusReq"
:
{
"type"
:
"object"
,
"properties"
:
{
"createBy"
:
{
"type"
:
"integer"
},
"id"
:
{
"type"
:
"integer"
},
"status"
:
{
"description"
:
"状态 1 离职 2 在职"
,
"type"
:
"string"
},
"updateBy"
:
{
"type"
:
"integer"
}
}
},
"dto.PassWord"
:
{
"dto.PassWord"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
...
@@ -9225,6 +9331,10 @@
...
@@ -9225,6 +9331,10 @@
"description"
:
"用户ID"
,
"description"
:
"用户ID"
,
"type"
:
"integer"
"type"
:
"integer"
},
},
"userType"
:
{
"type"
:
"string"
,
"default"
:
"1"
},
"username"
:
{
"username"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -9411,21 +9521,12 @@
...
@@ -9411,21 +9521,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"
...
@@ -9445,9 +9546,6 @@
...
@@ -9445,9 +9546,6 @@
"description"
:
"负责人"
,
"description"
:
"负责人"
,
"type"
:
"string"
"type"
:
"string"
},
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"parentId"
:
{
"description"
:
"上级部门"
,
"description"
:
"上级部门"
,
"type"
:
"integer"
"type"
:
"integer"
...
@@ -9478,21 +9576,9 @@
...
@@ -9478,21 +9576,9 @@
"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"
},
},
...
@@ -9502,18 +9588,12 @@
...
@@ -9502,18 +9588,12 @@
"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"
},
},
...
@@ -9526,9 +9606,6 @@
...
@@ -9526,9 +9606,6 @@
"noCache"
:
{
"noCache"
:
{
"type"
:
"boolean"
"type"
:
"boolean"
},
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"parentId"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
...
@@ -9541,9 +9618,6 @@
...
@@ -9541,9 +9618,6 @@
"permission"
:
{
"permission"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"roleId"
:
{
"type"
:
"integer"
},
"sort"
:
{
"sort"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
...
...
docs/swagger.yaml
View file @
033bc81b
...
@@ -1020,6 +1020,76 @@ definitions:
...
@@ -1020,6 +1020,76 @@ definitions:
updateBy
:
updateBy
:
type
:
integer
type
:
integer
type
:
object
type
:
object
dto.OrgUserGetPageReq
:
properties
:
nickName
:
description
:
姓名
type
:
string
pageIndex
:
type
:
integer
pageSize
:
type
:
integer
roleId
:
description
:
角色
type
:
string
status
:
description
:
状态 1 离职 2 在职
type
:
string
username
:
description
:
账号(手机号)
type
:
string
type
:
object
dto.OrgUserInsertReq
:
properties
:
createBy
:
type
:
integer
nickName
:
type
:
string
nickNameEn
:
type
:
string
roleId
:
type
:
string
status
:
default
:
"
2"
type
:
string
updateBy
:
type
:
integer
userType
:
default
:
"
2"
type
:
string
username
:
type
:
string
type
:
object
dto.OrgUserUpdateReq
:
properties
:
createBy
:
type
:
integer
nickName
:
type
:
string
nickNameEn
:
type
:
string
roleId
:
type
:
string
status
:
default
:
"
2"
type
:
string
updateBy
:
type
:
integer
username
:
type
:
string
type
:
object
dto.OrgUserUpdateStatusReq
:
properties
:
createBy
:
type
:
integer
id
:
type
:
integer
status
:
description
:
状态 1 离职 2 在职
type
:
string
updateBy
:
type
:
integer
type
:
object
dto.PassWord
:
dto.PassWord
:
properties
:
properties
:
newPassword
:
newPassword
:
...
@@ -1626,6 +1696,9 @@ definitions:
...
@@ -1626,6 +1696,9 @@ definitions:
userId
:
userId
:
description
:
用户ID
description
:
用户ID
type
:
integer
type
:
integer
userType
:
default
:
"
1"
type
:
string
username
:
username
:
type
:
string
type
:
string
type
:
object
type
:
object
...
@@ -1750,16 +1823,10 @@ definitions:
...
@@ -1750,16 +1823,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
...
@@ -1774,8 +1841,6 @@ definitions:
...
@@ -1774,8 +1841,6 @@ definitions:
leader
:
leader
:
description
:
负责人
description
:
负责人
type
:
string
type
:
string
params
:
type
:
string
parentId
:
parentId
:
description
:
上级部门
description
:
上级部门
type
:
integer
type
:
integer
...
@@ -1797,28 +1862,16 @@ definitions:
...
@@ -1797,28 +1862,16 @@ 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
:
...
@@ -1829,8 +1882,6 @@ definitions:
...
@@ -1829,8 +1882,6 @@ definitions:
type
:
string
type
:
string
noCache
:
noCache
:
type
:
boolean
type
:
boolean
params
:
type
:
string
parentId
:
parentId
:
type
:
integer
type
:
integer
path
:
path
:
...
@@ -1839,8 +1890,6 @@ definitions:
...
@@ -1839,8 +1890,6 @@ definitions:
type
:
string
type
:
string
permission
:
permission
:
type
:
string
type
:
string
roleId
:
type
:
integer
sort
:
sort
:
type
:
integer
type
:
integer
sysApi
:
sysApi
:
...
@@ -4828,10 +4877,12 @@ paths:
...
@@ -4828,10 +4877,12 @@ paths:
get
:
get
:
description
:
获取JSON
description
:
获取JSON
parameters
:
parameters
:
-
description
:
username
-
description
:
data
in
:
query
in
:
body
name
:
username
name
:
data
type
:
string
required
:
true
schema
:
$ref
:
'
#/definitions/dto.OrgUserGetPageReq'
responses
:
responses
:
"
200"
:
"
200"
:
description
:
'
{"code":
200,
"data":
[...]}'
description
:
'
{"code":
200,
"data":
[...]}'
...
@@ -4852,7 +4903,7 @@ paths:
...
@@ -4852,7 +4903,7 @@ paths:
name
:
data
name
:
data
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/dto.
Sys
UserInsertReq'
$ref
:
'
#/definitions/dto.
Org
UserInsertReq'
responses
:
responses
:
"
200"
:
"
200"
:
description
:
'
{"code":
200,
"data":
[...]}'
description
:
'
{"code":
200,
"data":
[...]}'
...
@@ -4910,7 +4961,7 @@ paths:
...
@@ -4910,7 +4961,7 @@ paths:
name
:
data
name
:
data
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/dto.
Sys
UserUpdateReq'
$ref
:
'
#/definitions/dto.
Org
UserUpdateReq'
responses
:
responses
:
"
200"
:
"
200"
:
description
:
'
{"code":
200,
"data":
[...]}'
description
:
'
{"code":
200,
"data":
[...]}'
...
@@ -4954,7 +5005,7 @@ paths:
...
@@ -4954,7 +5005,7 @@ paths:
name
:
data
name
:
data
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/dto.
UpdateSysUser
StatusReq'
$ref
:
'
#/definitions/dto.
OrgUserUpdate
StatusReq'
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