角色增加数据资源功能 增加数据资源关联返回(go代码完成 api开发完成 数据库配置完成 前端实现逻辑编写中)

This commit is contained in:
pixel
2020-01-07 12:38:13 +08:00
parent 9ce54177d1
commit 024c76361b
8 changed files with 339 additions and 49 deletions
+82 -1
View File
@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2019-12-20 11:36:51.4275267 +0800 CST m=+0.082812601
// 2020-01-06 17:53:22.2207663 +0800 CST m=+0.069844001
package docs
@@ -365,6 +365,45 @@ var doc = `{
}
}
},
"/authority/setDataAuthority": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"authority"
],
"summary": "设置角色资源权限",
"parameters": [
{
"description": "设置角色资源权限",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/sysModel.SysAuthority"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/base/login": {
"post": {
"produces": [
@@ -616,6 +655,33 @@ var doc = `{
}
}
},
"/jwt/jsonInBlacklist": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"jwt"
],
"summary": "jwt加入黑名单",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/menu/addBaseMenu": {
"post": {
"security": [
@@ -1266,6 +1332,21 @@ var doc = `{
},
"authorityName": {
"type": "string"
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/sysModel.SysAuthority"
}
},
"dataAuthorityId": {
"type": "array",
"items": {
"$ref": "#/definitions/sysModel.SysAuthority"
}
},
"parentId": {
"type": "string"
}
}
},
+81
View File
@@ -348,6 +348,45 @@
}
}
},
"/authority/setDataAuthority": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"authority"
],
"summary": "设置角色资源权限",
"parameters": [
{
"description": "设置角色资源权限",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/sysModel.SysAuthority"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/base/login": {
"post": {
"produces": [
@@ -599,6 +638,33 @@
}
}
},
"/jwt/jsonInBlacklist": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"jwt"
],
"summary": "jwt加入黑名单",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/menu/addBaseMenu": {
"post": {
"security": [
@@ -1249,6 +1315,21 @@
},
"authorityName": {
"type": "string"
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/sysModel.SysAuthority"
}
},
"dataAuthorityId": {
"type": "array",
"items": {
"$ref": "#/definitions/sysModel.SysAuthority"
}
},
"parentId": {
"type": "string"
}
}
},
+50
View File
@@ -99,6 +99,16 @@ definitions:
type: string
authorityName:
type: string
children:
items:
$ref: '#/definitions/sysModel.SysAuthority'
type: array
dataAuthorityId:
items:
$ref: '#/definitions/sysModel.SysAuthority'
type: array
parentId:
type: string
type: object
sysModel.SysBaseMenu:
properties:
@@ -394,6 +404,30 @@ paths:
summary: 分页获取角色列表
tags:
- authority
/authority/setDataAuthority:
post:
consumes:
- application/json
parameters:
- description: 设置角色资源权限
in: body
name: data
required: true
schema:
$ref: '#/definitions/sysModel.SysAuthority'
type: object
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"设置成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 设置角色资源权限
tags:
- authority
/base/login:
post:
parameters:
@@ -550,6 +584,22 @@ paths:
summary: 上传文件示例
tags:
- ExaFileUploadAndDownload
/jwt/jsonInBlacklist:
post:
consumes:
- application/json
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"拉黑成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: jwt加入黑名单
tags:
- jwt
/menu/addBaseMenu:
post:
consumes: