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
Hide 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 = `{
"summary": "\u003c赛事\u003e列表用户信息数据",
"parameters": [
{
"type": "string",
"description": "username",
"name": "username",
"in": "query"
"description": "data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgUserGetPageReq"
}
}
],
"responses": {
...
...
@@ -4591,7 +4594,7 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.
Sys
UserInsertReq"
"$ref": "#/definitions/dto.
Org
UserInsertReq"
}
}
],
...
...
@@ -4663,7 +4666,7 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.
UpdateSysUser
StatusReq"
"$ref": "#/definitions/dto.
OrgUserUpdate
StatusReq"
}
}
],
...
...
@@ -4728,7 +4731,7 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.
Sys
UserUpdateReq"
"$ref": "#/definitions/dto.
Org
UserUpdateReq"
}
}
],
...
...
@@ -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": {
"type": "object",
"properties": {
...
...
@@ -9242,6 +9348,10 @@ var doc = `{
"description": "用户ID",
"type": "integer"
},
"userType": {
"type": "string",
"default": "1"
},
"username": {
"type": "string"
}
...
...
@@ -9428,21 +9538,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"
...
...
@@ -9462,9 +9563,6 @@ var doc = `{
"description": "负责人",
"type": "string"
},
"params": {
"type": "string"
},
"parentId": {
"description": "上级部门",
"type": "integer"
...
...
@@ -9495,21 +9593,9 @@ 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"
},
...
...
@@ -9519,18 +9605,12 @@ var doc = `{
"createdAt": {
"type": "string"
},
"dataScope": {
"type": "string"
},
"icon": {
"type": "string"
},
"isFrame": {
"type": "string"
},
"is_select": {
"type": "boolean"
},
"menuId": {
"type": "integer"
},
...
...
@@ -9543,9 +9623,6 @@ var doc = `{
"noCache": {
"type": "boolean"
},
"params": {
"type": "string"
},
"parentId": {
"type": "integer"
},
...
...
@@ -9558,9 +9635,6 @@ var doc = `{
"permission": {
"type": "string"
},
"roleId": {
"type": "integer"
},
"sort": {
"type": "integer"
},
...
...
docs/swagger.json
View file @
033bc81b
...
...
@@ -4538,10 +4538,13 @@
"summary"
:
"
\u
003c赛事
\u
003e列表用户信息数据"
,
"parameters"
:
[
{
"type"
:
"string"
,
"description"
:
"username"
,
"name"
:
"username"
,
"in"
:
"query"
"description"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.OrgUserGetPageReq"
}
}
],
"responses"
:
{
...
...
@@ -4574,7 +4577,7 @@
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.
Sys
UserInsertReq"
"$ref"
:
"#/definitions/dto.
Org
UserInsertReq"
}
}
],
...
...
@@ -4646,7 +4649,7 @@
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.
UpdateSysUser
StatusReq"
"$ref"
:
"#/definitions/dto.
OrgUserUpdate
StatusReq"
}
}
],
...
...
@@ -4711,7 +4714,7 @@
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/dto.
Sys
UserUpdateReq"
"$ref"
:
"#/definitions/dto.
Org
UserUpdateReq"
}
}
],
...
...
@@ -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"
:
{
"type"
:
"object"
,
"properties"
:
{
...
...
@@ -9225,6 +9331,10 @@
"description"
:
"用户ID"
,
"type"
:
"integer"
},
"userType"
:
{
"type"
:
"string"
,
"default"
:
"1"
},
"username"
:
{
"type"
:
"string"
}
...
...
@@ -9411,21 +9521,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"
...
...
@@ -9445,9 +9546,6 @@
"description"
:
"负责人"
,
"type"
:
"string"
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"description"
:
"上级部门"
,
"type"
:
"integer"
...
...
@@ -9478,21 +9576,9 @@
"action"
:
{
"type"
:
"string"
},
"apis"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"integer"
}
},
"breadcrumb"
:
{
"type"
:
"string"
},
"children"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/models.SysMenu"
}
},
"component"
:
{
"type"
:
"string"
},
...
...
@@ -9502,18 +9588,12 @@
"createdAt"
:
{
"type"
:
"string"
},
"dataScope"
:
{
"type"
:
"string"
},
"icon"
:
{
"type"
:
"string"
},
"isFrame"
:
{
"type"
:
"string"
},
"is_select"
:
{
"type"
:
"boolean"
},
"menuId"
:
{
"type"
:
"integer"
},
...
...
@@ -9526,9 +9606,6 @@
"noCache"
:
{
"type"
:
"boolean"
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"type"
:
"integer"
},
...
...
@@ -9541,9 +9618,6 @@
"permission"
:
{
"type"
:
"string"
},
"roleId"
:
{
"type"
:
"integer"
},
"sort"
:
{
"type"
:
"integer"
},
...
...
docs/swagger.yaml
View file @
033bc81b
...
...
@@ -1020,6 +1020,76 @@ definitions:
updateBy
:
type
:
integer
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
:
properties
:
newPassword
:
...
...
@@ -1626,6 +1696,9 @@ definitions:
userId
:
description
:
用户ID
type
:
integer
userType
:
default
:
"
1"
type
:
string
username
:
type
:
string
type
:
object
...
...
@@ -1750,16 +1823,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
...
...
@@ -1774,8 +1841,6 @@ definitions:
leader
:
description
:
负责人
type
:
string
params
:
type
:
string
parentId
:
description
:
上级部门
type
:
integer
...
...
@@ -1797,28 +1862,16 @@ 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
:
...
...
@@ -1829,8 +1882,6 @@ definitions:
type
:
string
noCache
:
type
:
boolean
params
:
type
:
string
parentId
:
type
:
integer
path
:
...
...
@@ -1839,8 +1890,6 @@ definitions:
type
:
string
permission
:
type
:
string
roleId
:
type
:
integer
sort
:
type
:
integer
sysApi
:
...
...
@@ -4828,10 +4877,12 @@ paths:
get
:
description
:
获取JSON
parameters
:
-
description
:
username
in
:
query
name
:
username
type
:
string
-
description
:
data
in
:
body
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/dto.OrgUserGetPageReq'
responses
:
"
200"
:
description
:
'
{"code":
200,
"data":
[...]}'
...
...
@@ -4852,7 +4903,7 @@ paths:
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/dto.
Sys
UserInsertReq'
$ref
:
'
#/definitions/dto.
Org
UserInsertReq'
responses
:
"
200"
:
description
:
'
{"code":
200,
"data":
[...]}'
...
...
@@ -4910,7 +4961,7 @@ paths:
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/dto.
Sys
UserUpdateReq'
$ref
:
'
#/definitions/dto.
Org
UserUpdateReq'
responses
:
"
200"
:
description
:
'
{"code":
200,
"data":
[...]}'
...
...
@@ -4954,7 +5005,7 @@ paths:
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/dto.
UpdateSysUser
StatusReq'
$ref
:
'
#/definitions/dto.
OrgUserUpdate
StatusReq'
responses
:
"
200"
:
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