角色增加数据资源功能 增加数据资源关联返回(go代码完成 api开发完成 数据库配置完成 前端实现逻辑编写中)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user