Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞一样的人
gin-vue-admin
提交
4517e07e
G
gin-vue-admin
项目概览
飞一样的人
/
gin-vue-admin
与 Fork 源项目一致
Fork自
FLIPPED-AURORA / gin-vue-admin
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4517e07e
编写于
8月 04, 2021
作者:
W
wangyecheng@yaoyanshe.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update swagger for changePassword
上级
6174a239
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
251 addition
and
31 deletion
+251
-31
server/docs/docs.go
server/docs/docs.go
+95
-11
server/docs/swagger.json
server/docs/swagger.json
+95
-11
server/docs/swagger.yaml
server/docs/swagger.yaml
+61
-9
未找到文件。
server/docs/docs.go
浏览文件 @
4517e07e
...
...
@@ -1476,9 +1476,7 @@ var doc = `{
}
],
"responses": {
"200": {
"description": ""
}
"200": {}
}
}
},
...
...
@@ -1511,9 +1509,7 @@ var doc = `{
}
],
"responses": {
"200": {
"description": ""
}
"200": {}
}
}
},
...
...
@@ -2884,7 +2880,7 @@ var doc = `{
}
},
"/user/changePassword": {
"p
u
t": {
"p
os
t": {
"security": [
{
"ApiKeyAuth": []
...
...
@@ -2956,6 +2952,33 @@ var doc = `{
}
}
},
"/user/getUserInfo": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"SysUser"
],
"summary": "获取用户信息",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/user/getUserList": {
"post": {
"security": [
...
...
@@ -3024,7 +3047,7 @@ var doc = `{
}
}
},
"/user/setUserAuthorit
y
": {
"/user/setUserAuthorit
ies
": {
"post": {
"security": [
{
...
...
@@ -3041,6 +3064,44 @@ var doc = `{
"SysUser"
],
"summary": "设置用户权限",
"parameters": [
{
"description": "用户UUID, 角色ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.SetUserAuthorities"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/user/setUserAuthority": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"SysUser"
],
"summary": "更改用户权限",
"parameters": [
{
"description": "用户UUID, 角色ID",
...
...
@@ -3838,6 +3899,12 @@ var doc = `{
"authorityId": {
"type": "string"
},
"authorityIds": {
"type": "array",
"items": {
"type": "string"
}
},
"headerImg": {
"type": "string"
},
...
...
@@ -3907,10 +3974,21 @@ var doc = `{
"authorityId": {
"description": "角色ID",
"type": "string"
}
}
},
"request.SetUserAuthorities": {
"type": "object",
"properties": {
"authorityIds": {
"description": "角色ID",
"type": "array",
"items": {
"type": "string"
}
},
"uuid": {
"description": "用户UUID",
"type": "string"
"id": {
"type": "integer"
}
}
},
...
...
@@ -4524,6 +4602,12 @@ var doc = `{
"description": "活跃颜色",
"type": "string"
},
"authorities": {
"type": "array",
"items": {
"$ref": "#/definitions/system.SysAuthority"
}
},
"authority": {
"$ref": "#/definitions/system.SysAuthority"
},
...
...
server/docs/swagger.json
浏览文件 @
4517e07e
...
...
@@ -1460,9 +1460,7 @@
}
],
"responses"
:
{
"200"
:
{
"description"
:
""
}
"200"
:
{}
}
}
},
...
...
@@ -1495,9 +1493,7 @@
}
],
"responses"
:
{
"200"
:
{
"description"
:
""
}
"200"
:
{}
}
}
},
...
...
@@ -2868,7 +2864,7 @@
}
},
"/user/changePassword"
:
{
"p
u
t"
:
{
"p
os
t"
:
{
"security"
:
[
{
"ApiKeyAuth"
:
[]
...
...
@@ -2940,6 +2936,33 @@
}
}
},
"/user/getUserInfo"
:
{
"get"
:
{
"security"
:
[
{
"ApiKeyAuth"
:
[]
}
],
"consumes"
:
[
"application/json"
],
"produces"
:
[
"application/json"
],
"tags"
:
[
"SysUser"
],
"summary"
:
"获取用户信息"
,
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
获取成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/user/getUserList"
:
{
"post"
:
{
"security"
:
[
...
...
@@ -3008,7 +3031,7 @@
}
}
},
"/user/setUserAuthorit
y
"
:
{
"/user/setUserAuthorit
ies
"
:
{
"post"
:
{
"security"
:
[
{
...
...
@@ -3025,6 +3048,44 @@
"SysUser"
],
"summary"
:
"设置用户权限"
,
"parameters"
:
[
{
"description"
:
"用户UUID, 角色ID"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"$ref"
:
"#/definitions/request.SetUserAuthorities"
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
修改成功
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"/user/setUserAuthority"
:
{
"post"
:
{
"security"
:
[
{
"ApiKeyAuth"
:
[]
}
],
"consumes"
:
[
"application/json"
],
"produces"
:
[
"application/json"
],
"tags"
:
[
"SysUser"
],
"summary"
:
"更改用户权限"
,
"parameters"
:
[
{
"description"
:
"用户UUID, 角色ID"
,
...
...
@@ -3822,6 +3883,12 @@
"authorityId"
:
{
"type"
:
"string"
},
"authorityIds"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"headerImg"
:
{
"type"
:
"string"
},
...
...
@@ -3891,10 +3958,21 @@
"authorityId"
:
{
"description"
:
"角色ID"
,
"type"
:
"string"
}
}
},
"request.SetUserAuthorities"
:
{
"type"
:
"object"
,
"properties"
:
{
"authorityIds"
:
{
"description"
:
"角色ID"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"uuid"
:
{
"description"
:
"用户UUID"
,
"type"
:
"string"
"id"
:
{
"type"
:
"integer"
}
}
},
...
...
@@ -4508,6 +4586,12 @@
"description"
:
"活跃颜色"
,
"type"
:
"string"
},
"authorities"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/system.SysAuthority"
}
},
"authority"
:
{
"$ref"
:
"#/definitions/system.SysAuthority"
},
...
...
server/docs/swagger.yaml
浏览文件 @
4517e07e
...
...
@@ -514,6 +514,10 @@ definitions:
properties
:
authorityId
:
type
:
string
authorityIds
:
items
:
type
:
string
type
:
array
headerImg
:
type
:
string
nickName
:
...
...
@@ -564,9 +568,16 @@ definitions:
authorityId
:
description
:
角色ID
type
:
string
uuid
:
description
:
用户UUID
type
:
string
type
:
object
request.SetUserAuthorities
:
properties
:
authorityIds
:
description
:
角色ID
items
:
type
:
string
type
:
array
id
:
type
:
integer
type
:
object
request.SysAutoHistory
:
properties
:
...
...
@@ -1009,6 +1020,10 @@ definitions:
activeColor
:
description
:
活跃颜色
type
:
string
authorities
:
items
:
$ref
:
'
#/definitions/system.SysAuthority'
type
:
array
authority
:
$ref
:
'
#/definitions/system.SysAuthority'
authorityId
:
...
...
@@ -1928,8 +1943,7 @@ paths:
produces
:
-
application/json
responses
:
"
200"
:
description
:
"
"
"
200"
:
{}
security
:
-
ApiKeyAuth
:
[]
summary
:
下载模板
...
...
@@ -1949,8 +1963,7 @@ paths:
produces
:
-
application/octet-stream
responses
:
"
200"
:
description
:
"
"
"
200"
:
{}
security
:
-
ApiKeyAuth
:
[]
summary
:
导出Excel
...
...
@@ -2783,7 +2796,7 @@ paths:
tags
:
-
System
/user/changePassword
:
p
u
t
:
p
os
t
:
parameters
:
-
description
:
用户名, 原密码, 新密码
in
:
body
...
...
@@ -2826,6 +2839,22 @@ paths:
summary
:
删除用户
tags
:
-
SysUser
/user/getUserInfo
:
get
:
consumes
:
-
application/json
produces
:
-
application/json
responses
:
"
200"
:
description
:
'
{"success":true,"data":{},"msg":"获取成功"}'
schema
:
type
:
string
security
:
-
ApiKeyAuth
:
[]
summary
:
获取用户信息
tags
:
-
SysUser
/user/getUserList
:
post
:
consumes
:
...
...
@@ -2868,6 +2897,29 @@ paths:
summary
:
用户注册账号
tags
:
-
SysUser
/user/setUserAuthorities
:
post
:
consumes
:
-
application/json
parameters
:
-
description
:
用户UUID, 角色ID
in
:
body
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/request.SetUserAuthorities'
produces
:
-
application/json
responses
:
"
200"
:
description
:
'
{"success":true,"data":{},"msg":"修改成功"}'
schema
:
type
:
string
security
:
-
ApiKeyAuth
:
[]
summary
:
设置用户权限
tags
:
-
SysUser
/user/setUserAuthority
:
post
:
consumes
:
...
...
@@ -2888,7 +2940,7 @@ paths:
type
:
string
security
:
-
ApiKeyAuth
:
[]
summary
:
设置
用户权限
summary
:
更改
用户权限
tags
:
-
SysUser
/user/setUserInfo
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录