Browse Source

Update swagger for changePassword

main
wangyecheng@yaoyanshe.com 3 years ago
parent
commit
4517e07e11
  1. 106
      server/docs/docs.go
  2. 106
      server/docs/swagger.json
  3. 70
      server/docs/swagger.yaml

106
server/docs/docs.go

@ -1476,9 +1476,7 @@ var doc = `{
} }
], ],
"responses": { "responses": {
"200": {
"description": ""
}
"200": {}
} }
} }
}, },
@ -1511,9 +1509,7 @@ var doc = `{
} }
], ],
"responses": { "responses": {
"200": {
"description": ""
}
"200": {}
} }
} }
}, },
@ -2884,7 +2880,7 @@ var doc = `{
} }
}, },
"/user/changePassword": { "/user/changePassword": {
"put": {
"post": {
"security": [ "security": [
{ {
"ApiKeyAuth": [] "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": { "/user/getUserList": {
"post": { "post": {
"security": [ "security": [
@ -3024,7 +3047,7 @@ var doc = `{
} }
} }
}, },
"/user/setUserAuthority": {
"/user/setUserAuthorities": {
"post": { "post": {
"security": [ "security": [
{ {
@ -3041,6 +3064,44 @@ var doc = `{
"SysUser" "SysUser"
], ],
"summary": "设置用户权限", "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": [ "parameters": [
{ {
"description": "用户UUID, 角色ID", "description": "用户UUID, 角色ID",
@ -3838,6 +3899,12 @@ var doc = `{
"authorityId": { "authorityId": {
"type": "string" "type": "string"
}, },
"authorityIds": {
"type": "array",
"items": {
"type": "string"
}
},
"headerImg": { "headerImg": {
"type": "string" "type": "string"
}, },
@ -3907,10 +3974,21 @@ var doc = `{
"authorityId": { "authorityId": {
"description": "角色ID", "description": "角色ID",
"type": "string" "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": "活跃颜色", "description": "活跃颜色",
"type": "string" "type": "string"
}, },
"authorities": {
"type": "array",
"items": {
"$ref": "#/definitions/system.SysAuthority"
}
},
"authority": { "authority": {
"$ref": "#/definitions/system.SysAuthority" "$ref": "#/definitions/system.SysAuthority"
}, },

106
server/docs/swagger.json

@ -1460,9 +1460,7 @@
} }
], ],
"responses": { "responses": {
"200": {
"description": ""
}
"200": {}
} }
} }
}, },
@ -1495,9 +1493,7 @@
} }
], ],
"responses": { "responses": {
"200": {
"description": ""
}
"200": {}
} }
} }
}, },
@ -2868,7 +2864,7 @@
} }
}, },
"/user/changePassword": { "/user/changePassword": {
"put": {
"post": {
"security": [ "security": [
{ {
"ApiKeyAuth": [] "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": { "/user/getUserList": {
"post": { "post": {
"security": [ "security": [
@ -3008,7 +3031,7 @@
} }
} }
}, },
"/user/setUserAuthority": {
"/user/setUserAuthorities": {
"post": { "post": {
"security": [ "security": [
{ {
@ -3025,6 +3048,44 @@
"SysUser" "SysUser"
], ],
"summary": "设置用户权限", "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": [ "parameters": [
{ {
"description": "用户UUID, 角色ID", "description": "用户UUID, 角色ID",
@ -3822,6 +3883,12 @@
"authorityId": { "authorityId": {
"type": "string" "type": "string"
}, },
"authorityIds": {
"type": "array",
"items": {
"type": "string"
}
},
"headerImg": { "headerImg": {
"type": "string" "type": "string"
}, },
@ -3891,10 +3958,21 @@
"authorityId": { "authorityId": {
"description": "角色ID", "description": "角色ID",
"type": "string" "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": "活跃颜色", "description": "活跃颜色",
"type": "string" "type": "string"
}, },
"authorities": {
"type": "array",
"items": {
"$ref": "#/definitions/system.SysAuthority"
}
},
"authority": { "authority": {
"$ref": "#/definitions/system.SysAuthority" "$ref": "#/definitions/system.SysAuthority"
}, },

70
server/docs/swagger.yaml

@ -514,6 +514,10 @@ definitions:
properties: properties:
authorityId: authorityId:
type: string type: string
authorityIds:
items:
type: string
type: array
headerImg: headerImg:
type: string type: string
nickName: nickName:
@ -564,9 +568,16 @@ definitions:
authorityId: authorityId:
description: 角色ID description: 角色ID
type: string 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 type: object
request.SysAutoHistory: request.SysAutoHistory:
properties: properties:
@ -1009,6 +1020,10 @@ definitions:
activeColor: activeColor:
description: 活跃颜色 description: 活跃颜色
type: string type: string
authorities:
items:
$ref: '#/definitions/system.SysAuthority'
type: array
authority: authority:
$ref: '#/definitions/system.SysAuthority' $ref: '#/definitions/system.SysAuthority'
authorityId: authorityId:
@ -1928,8 +1943,7 @@ paths:
produces: produces:
- application/json - application/json
responses: responses:
"200":
description: ""
"200": {}
security: security:
- ApiKeyAuth: [] - ApiKeyAuth: []
summary: 下载模板 summary: 下载模板
@ -1949,8 +1963,7 @@ paths:
produces: produces:
- application/octet-stream - application/octet-stream
responses: responses:
"200":
description: ""
"200": {}
security: security:
- ApiKeyAuth: [] - ApiKeyAuth: []
summary: 导出Excel summary: 导出Excel
@ -2783,7 +2796,7 @@ paths:
tags: tags:
- System - System
/user/changePassword: /user/changePassword:
put:
post:
parameters: parameters:
- description: 用户名, 原密码, 新密码 - description: 用户名, 原密码, 新密码
in: body in: body
@ -2826,6 +2839,22 @@ paths:
summary: 删除用户 summary: 删除用户
tags: tags:
- SysUser - 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: /user/getUserList:
post: post:
consumes: consumes:
@ -2868,6 +2897,29 @@ paths:
summary: 用户注册账号 summary: 用户注册账号
tags: tags:
- SysUser - 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: /user/setUserAuthority:
post: post:
consumes: consumes:
@ -2888,7 +2940,7 @@ paths:
type: string type: string
security: security:
- ApiKeyAuth: [] - ApiKeyAuth: []
summary: 设置用户权限
summary: 更改用户权限
tags: tags:
- SysUser - SysUser
/user/setUserInfo: /user/setUserInfo:

Loading…
Cancel
Save