修改角色删除逻辑,有用户占用状态的角色禁止删除
This commit is contained in:
+316
-33
@@ -548,20 +548,20 @@
|
||||
"summary": "删除回滚记录",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "删除回滚记录",
|
||||
"description": "请求参数",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.AutoHistoryByID"
|
||||
"$ref": "#/definitions/request.GetById"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
|
||||
"description": "删除成功!",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -637,23 +637,23 @@
|
||||
"tags": [
|
||||
"AutoCode"
|
||||
],
|
||||
"summary": "回滚",
|
||||
"summary": "获取meta信息",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "获取meta信息",
|
||||
"description": "请求参数",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.AutoHistoryByID"
|
||||
"$ref": "#/definitions/request.GetById"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
||||
"description": "获取成功!",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -678,7 +678,7 @@
|
||||
"summary": "查询回滚记录",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "查询回滚记录",
|
||||
"description": "请求参数",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -689,9 +689,9 @@
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
||||
"description": "获取成功!",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -778,23 +778,23 @@
|
||||
"tags": [
|
||||
"AutoCode"
|
||||
],
|
||||
"summary": "回滚",
|
||||
"summary": "回滚自动生成代码",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "回滚自动生成代码",
|
||||
"description": "请求参数",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.AutoHistoryByID"
|
||||
"$ref": "#/definitions/request.GetById"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"回滚成功\"}",
|
||||
"description": "回滚成功!",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3196,6 +3196,44 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/SetSelfInfo": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"SysUser"
|
||||
],
|
||||
"summary": "设置用户信息",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "ID, 用户名, 昵称, 头像链接",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/system.SysUser"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/changePassword": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -3364,6 +3402,41 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/resetPassword": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"SysUser"
|
||||
],
|
||||
"summary": "用户修改密码",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "ID",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/system.SysUser"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/setUserAuthorities": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -3568,6 +3641,63 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.AwsS3": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"baseURL": {
|
||||
"type": "string"
|
||||
},
|
||||
"bucket": {
|
||||
"type": "string"
|
||||
},
|
||||
"pathPrefix": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"secretID": {
|
||||
"type": "string"
|
||||
},
|
||||
"secretKey": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.CORS": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"mode": {
|
||||
"type": "string"
|
||||
},
|
||||
"whitelist": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/config.CORSWhitelist"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.CORSWhitelist": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow-credentials": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"allow-headers": {
|
||||
"type": "string"
|
||||
},
|
||||
"allow-methods": {
|
||||
"type": "string"
|
||||
},
|
||||
"allow-origin": {
|
||||
"type": "string"
|
||||
},
|
||||
"expose-headers": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.Captcha": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -3594,6 +3724,59 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.DB": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"alias-name": {
|
||||
"type": "string"
|
||||
},
|
||||
"config": {
|
||||
"description": "高级配置",
|
||||
"type": "string"
|
||||
},
|
||||
"dbname": {
|
||||
"description": "数据库名",
|
||||
"type": "string"
|
||||
},
|
||||
"disable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"logMode": {
|
||||
"description": "是否开启Gorm全局日志",
|
||||
"type": "string"
|
||||
},
|
||||
"logZap": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"maxIdleConns": {
|
||||
"description": "空闲中的最大连接数",
|
||||
"type": "integer"
|
||||
},
|
||||
"maxOpenConns": {
|
||||
"description": "打开到数据库的最大连接数",
|
||||
"type": "integer"
|
||||
},
|
||||
"password": {
|
||||
"description": "数据库密码",
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"description": "服务器地址:端口",
|
||||
"type": "string"
|
||||
},
|
||||
"port": {
|
||||
"description": ":端口",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"username": {
|
||||
"description": "数据库用户名",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.Detail": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -3652,6 +3835,26 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.HuaWeiObs": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"accessKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"bucket": {
|
||||
"type": "string"
|
||||
},
|
||||
"endpoint": {
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"type": "string"
|
||||
},
|
||||
"secretKey": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.JWT": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -3663,6 +3866,10 @@
|
||||
"description": "过期时间",
|
||||
"type": "integer"
|
||||
},
|
||||
"issuer": {
|
||||
"description": "签发者",
|
||||
"type": "string"
|
||||
},
|
||||
"signingKey": {
|
||||
"description": "jwt签名",
|
||||
"type": "string"
|
||||
@@ -3679,6 +3886,51 @@
|
||||
}
|
||||
},
|
||||
"config.Mysql": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"config": {
|
||||
"description": "高级配置",
|
||||
"type": "string"
|
||||
},
|
||||
"dbname": {
|
||||
"description": "数据库名",
|
||||
"type": "string"
|
||||
},
|
||||
"logMode": {
|
||||
"description": "是否开启Gorm全局日志",
|
||||
"type": "string"
|
||||
},
|
||||
"logZap": {
|
||||
"description": "是否通过zap写入日志文件",
|
||||
"type": "boolean"
|
||||
},
|
||||
"maxIdleConns": {
|
||||
"description": "空闲中的最大连接数",
|
||||
"type": "integer"
|
||||
},
|
||||
"maxOpenConns": {
|
||||
"description": "打开到数据库的最大连接数",
|
||||
"type": "integer"
|
||||
},
|
||||
"password": {
|
||||
"description": "数据库密码",
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"description": "服务器地址",
|
||||
"type": "string"
|
||||
},
|
||||
"port": {
|
||||
"description": "端口",
|
||||
"type": "string"
|
||||
},
|
||||
"username": {
|
||||
"description": "数据库用户名",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.Pgsql": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"config": {
|
||||
@@ -3713,6 +3965,10 @@
|
||||
"description": "服务器地址:端口",
|
||||
"type": "string"
|
||||
},
|
||||
"port": {
|
||||
"description": ":端口",
|
||||
"type": "string"
|
||||
},
|
||||
"username": {
|
||||
"description": "数据库用户名",
|
||||
"type": "string"
|
||||
@@ -3779,18 +4035,34 @@
|
||||
"description": "auto",
|
||||
"$ref": "#/definitions/config.Autocode"
|
||||
},
|
||||
"awsS3": {
|
||||
"$ref": "#/definitions/config.AwsS3"
|
||||
},
|
||||
"captcha": {
|
||||
"$ref": "#/definitions/config.Captcha"
|
||||
},
|
||||
"casbin": {
|
||||
"$ref": "#/definitions/config.Casbin"
|
||||
},
|
||||
"cors": {
|
||||
"description": "跨域配置",
|
||||
"$ref": "#/definitions/config.CORS"
|
||||
},
|
||||
"db-list": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/config.DB"
|
||||
}
|
||||
},
|
||||
"email": {
|
||||
"$ref": "#/definitions/config.Email"
|
||||
},
|
||||
"excel": {
|
||||
"$ref": "#/definitions/config.Excel"
|
||||
},
|
||||
"huaWeiObs": {
|
||||
"$ref": "#/definitions/config.HuaWeiObs"
|
||||
},
|
||||
"jwt": {
|
||||
"$ref": "#/definitions/config.JWT"
|
||||
},
|
||||
@@ -3802,6 +4074,9 @@
|
||||
"description": "gorm",
|
||||
"$ref": "#/definitions/config.Mysql"
|
||||
},
|
||||
"pgsql": {
|
||||
"$ref": "#/definitions/config.Pgsql"
|
||||
},
|
||||
"qiniu": {
|
||||
"$ref": "#/definitions/config.Qiniu"
|
||||
},
|
||||
@@ -3837,6 +4112,12 @@
|
||||
"description": "环境值",
|
||||
"type": "string"
|
||||
},
|
||||
"iplimitCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"iplimitTime": {
|
||||
"type": "integer"
|
||||
},
|
||||
"ossType": {
|
||||
"description": "Oss类型",
|
||||
"type": "string"
|
||||
@@ -3908,10 +4189,6 @@
|
||||
"description": "级别",
|
||||
"type": "string"
|
||||
},
|
||||
"linkName": {
|
||||
"description": "软链接名称",
|
||||
"type": "string"
|
||||
},
|
||||
"logInConsole": {
|
||||
"description": "输出控制台",
|
||||
"type": "boolean"
|
||||
@@ -4030,14 +4307,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.AutoHistoryByID": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.CasbinInReceive": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -4126,6 +4395,10 @@
|
||||
"description": "数据库名",
|
||||
"type": "string"
|
||||
},
|
||||
"dbType": {
|
||||
"description": "数据库类型",
|
||||
"type": "string"
|
||||
},
|
||||
"host": {
|
||||
"description": "服务器地址",
|
||||
"type": "string"
|
||||
@@ -4307,6 +4580,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"response.Response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer"
|
||||
},
|
||||
"data": {
|
||||
"type": "object"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response.SysAuthorityCopyResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -4373,10 +4660,6 @@
|
||||
"description": "数据库字段描述",
|
||||
"type": "string"
|
||||
},
|
||||
"dataType": {
|
||||
"description": "数据库字段类型",
|
||||
"type": "string"
|
||||
},
|
||||
"dataTypeLong": {
|
||||
"description": "数据库字段长度",
|
||||
"type": "string"
|
||||
|
||||
Reference in New Issue
Block a user