Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
c23f74ce
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
334
Star
18155
Fork
5506
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
c23f74ce
编写于
12月 13, 2019
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
文档修复
上级
885d31a2
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
319 addition
and
358 deletion
+319
-358
QMPlusServer/docs/docs.go
QMPlusServer/docs/docs.go
+109
-124
QMPlusServer/docs/swagger.json
QMPlusServer/docs/swagger.json
+114
-129
QMPlusServer/docs/swagger.yaml
QMPlusServer/docs/swagger.yaml
+95
-104
README.md
README.md
+1
-1
未找到文件。
QMPlusServer/docs/docs.go
浏览文件 @
c23f74ce
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// This file was generated by swaggo/swag at
// 2019-1
1-20 16:59:15.3568689 +0800 CST m=+0.0569201
01
// 2019-1
2-13 11:22:41.4366202 +0800 CST m=+0.0628308
01
package
docs
package
docs
...
@@ -90,7 +90,7 @@ var doc = `{
...
@@ -90,7 +90,7 @@ var doc = `{
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/
db
Model.SysApi"
"$ref": "#/definitions/
sys
Model.SysApi"
}
}
}
}
],
],
...
@@ -209,7 +209,7 @@ var doc = `{
...
@@ -209,7 +209,7 @@ var doc = `{
}
}
}
}
},
},
"/api/
setAuthAnd
Api": {
"/api/
updata
Api": {
"post": {
"post": {
"security": [
"security": [
{
{
...
@@ -225,16 +225,16 @@ var doc = `{
...
@@ -225,16 +225,16 @@ var doc = `{
"tags": [
"tags": [
"SysApi"
"SysApi"
],
],
"summary": "创建
api和角色关系
",
"summary": "创建
基础api
",
"parameters": [
"parameters": [
{
{
"description": "创建api
和角色关系
",
"description": "创建api",
"name": "data",
"name": "data",
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/api.
AuthAndPathIn
"
"$ref": "#/definitions/api.
CreateApiParams
"
}
}
}
}
],
],
...
@@ -248,7 +248,7 @@ var doc = `{
...
@@ -248,7 +248,7 @@ var doc = `{
}
}
}
}
},
},
"/a
pi/updataApi
": {
"/a
uthority/createAuthority
": {
"post": {
"post": {
"security": [
"security": [
{
{
...
@@ -262,18 +262,18 @@ var doc = `{
...
@@ -262,18 +262,18 @@ var doc = `{
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"
SysApi
"
"
authority
"
],
],
"summary": "创建
基础api
",
"summary": "创建
角色
",
"parameters": [
"parameters": [
{
{
"description": "创建
api
",
"description": "创建
角色
",
"name": "data",
"name": "data",
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/api.CreateA
piPar
ams"
"$ref": "#/definitions/api.CreateA
uthorityPat
ams"
}
}
}
}
],
],
...
@@ -287,7 +287,7 @@ var doc = `{
...
@@ -287,7 +287,7 @@ var doc = `{
}
}
}
}
},
},
"/authority/
crea
teAuthority": {
"/authority/
dele
teAuthority": {
"post": {
"post": {
"security": [
"security": [
{
{
...
@@ -303,16 +303,16 @@ var doc = `{
...
@@ -303,16 +303,16 @@ var doc = `{
"tags": [
"tags": [
"authority"
"authority"
],
],
"summary": "
创建
角色",
"summary": "
删除
角色",
"parameters": [
"parameters": [
{
{
"description": "
创建
角色",
"description": "
删除
角色",
"name": "data",
"name": "data",
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/api.
Crea
teAuthorityPatams"
"$ref": "#/definitions/api.
Dele
teAuthorityPatams"
}
}
}
}
],
],
...
@@ -326,7 +326,7 @@ var doc = `{
...
@@ -326,7 +326,7 @@ var doc = `{
}
}
}
}
},
},
"/authority/
deleteAuthority
": {
"/authority/
getAuthorityList
": {
"post": {
"post": {
"security": [
"security": [
{
{
...
@@ -342,16 +342,16 @@ var doc = `{
...
@@ -342,16 +342,16 @@ var doc = `{
"tags": [
"tags": [
"authority"
"authority"
],
],
"summary": "
删除角色
",
"summary": "
分页获取角色列表
",
"parameters": [
"parameters": [
{
{
"description": "
删除角色
",
"description": "
分页获取用户列表
",
"name": "data",
"name": "data",
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/
api.DeleteAuthorityPatams
"
"$ref": "#/definitions/
modelInterface.PageInfo
"
}
}
}
}
],
],
...
@@ -365,38 +365,30 @@ var doc = `{
...
@@ -365,38 +365,30 @@ var doc = `{
}
}
}
}
},
},
"/
authority/getAuthAndApi
": {
"/
base/login
": {
"post": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"produces": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"
authority
"
"
Base
"
],
],
"summary": "
获取本角色所有有权限的apiId
",
"summary": "
用户登录
",
"parameters": [
"parameters": [
{
{
"description": "
获取本角色所有有权限的apiId
",
"description": "
用户登录接口
",
"name": "data",
"name": "data",
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/api.
GetAuthorityId
"
"$ref": "#/definitions/api.
RegistAndLoginStuct
"
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"
获取
成功\"}",
"description": "{\"success\":true,\"data\":{},\"msg\":\"
登陆
成功\"}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
...
@@ -404,38 +396,30 @@ var doc = `{
...
@@ -404,38 +396,30 @@ var doc = `{
}
}
}
}
},
},
"/
authority/getAuthorityL
ist": {
"/
base/reg
ist": {
"post": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"produces": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"
authority
"
"
Base
"
],
],
"summary": "
分页获取角色列表
",
"summary": "
用户注册账号
",
"parameters": [
"parameters": [
{
{
"description": "
分页获取用户列表
",
"description": "
用户注册接口
",
"name": "data",
"name": "data",
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/
modelInterface.PageInfo
"
"$ref": "#/definitions/
api.RegistAndLoginStuct
"
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"
获取
成功\"}",
"description": "{\"success\":true,\"data\":{},\"msg\":\"
注册
成功\"}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
...
@@ -443,30 +427,38 @@ var doc = `{
...
@@ -443,30 +427,38 @@ var doc = `{
}
}
}
}
},
},
"/
base/login
": {
"/
casbin/casbinPUpdata
": {
"post": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"produces": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"
Base
"
"
casbin
"
],
],
"summary": "
用户登录
",
"summary": "
更改角色api权限
",
"parameters": [
"parameters": [
{
{
"description": "
用户登录接口
",
"description": "
更改角色api权限
",
"name": "data",
"name": "data",
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/api.
RegistAndLoginStuct
"
"$ref": "#/definitions/api.
CreateAuthorityPatams
"
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"
登陆
成功\"}",
"description": "{\"success\":true,\"data\":{},\"msg\":\"
获取
成功\"}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
...
@@ -474,30 +466,38 @@ var doc = `{
...
@@ -474,30 +466,38 @@ var doc = `{
}
}
}
}
},
},
"/
base/regist
": {
"/
casbin/getPolicyPathByAuthorityId
": {
"post": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"produces": [
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"
Base
"
"
casbin
"
],
],
"summary": "
用户注册账号
",
"summary": "
获取权限列表
",
"parameters": [
"parameters": [
{
{
"description": "
用户注册接口
",
"description": "
获取权限列表
",
"name": "data",
"name": "data",
"in": "body",
"in": "body",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/api.
RegistAndLoginStuct
"
"$ref": "#/definitions/api.
CreateAuthorityPatams
"
}
}
}
}
],
],
"responses": {
"responses": {
"200": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"
注册
成功\"}",
"description": "{\"success\":true,\"data\":{},\"msg\":\"
获取
成功\"}",
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
...
@@ -516,7 +516,7 @@ var doc = `{
...
@@ -516,7 +516,7 @@ var doc = `{
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"FileUploadAndDownload"
"
Exa
FileUploadAndDownload"
],
],
"summary": "删除文件",
"summary": "删除文件",
"parameters": [
"parameters": [
...
@@ -527,7 +527,7 @@ var doc = `{
...
@@ -527,7 +527,7 @@ var doc = `{
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/dbModel.FileUploadAndDownload"
"$ref": "#/definitions/dbModel.
Exa
FileUploadAndDownload"
}
}
}
}
],
],
...
@@ -555,7 +555,7 @@ var doc = `{
...
@@ -555,7 +555,7 @@ var doc = `{
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"FileUploadAndDownload"
"
Exa
FileUploadAndDownload"
],
],
"summary": "分页文件列表",
"summary": "分页文件列表",
"parameters": [
"parameters": [
...
@@ -594,7 +594,7 @@ var doc = `{
...
@@ -594,7 +594,7 @@ var doc = `{
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"FileUploadAndDownload"
"
Exa
FileUploadAndDownload"
],
],
"summary": "上传文件示例",
"summary": "上传文件示例",
"parameters": [
"parameters": [
...
@@ -641,7 +641,7 @@ var doc = `{
...
@@ -641,7 +641,7 @@ var doc = `{
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/
db
Model.SysBaseMenu"
"$ref": "#/definitions/
sys
Model.SysBaseMenu"
}
}
}
}
],
],
...
@@ -908,7 +908,7 @@ var doc = `{
...
@@ -908,7 +908,7 @@ var doc = `{
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/
db
Model.SysBaseMenu"
"$ref": "#/definitions/
sys
Model.SysBaseMenu"
}
}
}
}
],
],
...
@@ -933,7 +933,7 @@ var doc = `{
...
@@ -933,7 +933,7 @@ var doc = `{
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"User"
"
Sys
User"
],
],
"summary": "用户修改密码",
"summary": "用户修改密码",
"parameters": [
"parameters": [
...
@@ -972,7 +972,7 @@ var doc = `{
...
@@ -972,7 +972,7 @@ var doc = `{
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"User"
"
Sys
User"
],
],
"summary": "分页获取用户列表",
"summary": "分页获取用户列表",
"parameters": [
"parameters": [
...
@@ -1011,7 +1011,7 @@ var doc = `{
...
@@ -1011,7 +1011,7 @@ var doc = `{
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"User"
"
Sys
User"
],
],
"summary": "设置用户权限",
"summary": "设置用户权限",
"parameters": [
"parameters": [
...
@@ -1050,7 +1050,7 @@ var doc = `{
...
@@ -1050,7 +1050,7 @@ var doc = `{
"application/json"
"application/json"
],
],
"tags": [
"tags": [
"User"
"
Sys
User"
],
],
"summary": "用户上传头像",
"summary": "用户上传头像",
"parameters": [
"parameters": [
...
@@ -1096,7 +1096,7 @@ var doc = `{
...
@@ -1096,7 +1096,7 @@ var doc = `{
"required": true,
"required": true,
"schema": {
"schema": {
"type": "object",
"type": "object",
"$ref": "#/definitions/
dbModel.
Workflow"
"$ref": "#/definitions/
sysModel.Sys
Workflow"
}
}
}
}
],
],
...
@@ -1121,22 +1121,8 @@ var doc = `{
...
@@ -1121,22 +1121,8 @@ var doc = `{
"menus": {
"menus": {
"type": "array",
"type": "array",
"items": {
"items": {
"$ref": "#/definitions/dbModel.SysBaseMenu"
"$ref": "#/definitions/sysModel.SysBaseMenu"
}
}
}
},
"api.AuthAndPathIn": {
"type": "object",
"properties": {
"apiIds": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"authorityId": {
"type": "string"
}
}
}
}
},
},
...
@@ -1192,14 +1178,6 @@ var doc = `{
...
@@ -1192,14 +1178,6 @@ var doc = `{
}
}
}
}
},
},
"api.GetAuthorityId": {
"type": "object",
"properties": {
"authorityId": {
"type": "string"
}
}
},
"api.GetById": {
"api.GetById": {
"type": "object",
"type": "object",
"properties": {
"properties": {
...
@@ -1238,7 +1216,35 @@ var doc = `{
...
@@ -1238,7 +1216,35 @@ var doc = `{
}
}
}
}
},
},
"dbModel.SysApi": {
"dbModel.ExaFileUploadAndDownload": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"tag": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"modelInterface.PageInfo": {
"type": "object",
"properties": {
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer"
}
}
},
"sysModel.SysApi": {
"type": "object",
"type": "object",
"properties": {
"properties": {
"description": {
"description": {
...
@@ -1252,13 +1258,13 @@ var doc = `{
...
@@ -1252,13 +1258,13 @@ var doc = `{
}
}
}
}
},
},
"
db
Model.SysBaseMenu": {
"
sys
Model.SysBaseMenu": {
"type": "object",
"type": "object",
"properties": {
"properties": {
"children": {
"children": {
"type": "array",
"type": "array",
"items": {
"items": {
"$ref": "#/definitions/
db
Model.SysBaseMenu"
"$ref": "#/definitions/
sys
Model.SysBaseMenu"
}
}
},
},
"component": {
"component": {
...
@@ -1282,29 +1288,15 @@ var doc = `{
...
@@ -1282,29 +1288,15 @@ var doc = `{
"path": {
"path": {
"type": "string"
"type": "string"
},
},
"title": {
"sort": {
"type": "string"
}
}
},
"dbModel.FileUploadAndDownload": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
"type": "string"
},
},
"tag": {
"title": {
"type": "string"
},
"url": {
"type": "string"
"type": "string"
}
}
}
}
},
},
"
dbModel.
Workflow": {
"
sysModel.Sys
Workflow": {
"type": "object",
"type": "object",
"properties": {
"properties": {
"workflowDescription": {
"workflowDescription": {
...
@@ -1323,12 +1315,12 @@ var doc = `{
...
@@ -1323,12 +1315,12 @@ var doc = `{
"description": "工作流步骤",
"description": "工作流步骤",
"type": "array",
"type": "array",
"items": {
"items": {
"$ref": "#/definitions/
dbModel.
WorkflowStepInfo"
"$ref": "#/definitions/
sysModel.Sys
WorkflowStepInfo"
}
}
}
}
}
}
},
},
"
dbModel.
WorkflowStepInfo": {
"
sysModel.Sys
WorkflowStepInfo": {
"type": "object",
"type": "object",
"properties": {
"properties": {
"isEnd": {
"isEnd": {
...
@@ -1350,16 +1342,9 @@ var doc = `{
...
@@ -1350,16 +1342,9 @@ var doc = `{
"stepNo": {
"stepNo": {
"description": "步骤id (第几步)",
"description": "步骤id (第几步)",
"type": "number"
"type": "number"
}
}
},
"modelInterface.PageInfo": {
"type": "object",
"properties": {
"page": {
"type": "integer"
},
},
"pageSize": {
"workflowID": {
"description": "所属工作流ID",
"type": "integer"
"type": "integer"
}
}
}
}
...
...
QMPlusServer/docs/swagger.json
浏览文件 @
c23f74ce
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"Api"
"
Sys
Api"
],
],
"summary"
:
"创建基础api"
,
"summary"
:
"创建基础api"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"Api"
"
Sys
Api"
],
],
"summary"
:
"删除指定api"
,
"summary"
:
"删除指定api"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/
dbModel.
Api"
"$ref"
:
"#/definitions/
sysModel.Sys
Api"
}
}
}
}
],
],
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"Api"
"
Sys
Api"
],
],
"summary"
:
"获取所有的Api 不分页"
,
"summary"
:
"获取所有的Api 不分页"
,
"responses"
:
{
"responses"
:
{
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"Api"
"
Sys
Api"
],
],
"summary"
:
"根据id获取api"
,
"summary"
:
"根据id获取api"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"Api"
"
Sys
Api"
],
],
"summary"
:
"分页获取API列表"
,
"summary"
:
"分页获取API列表"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
}
}
}
}
},
},
"/api/
setAuthAnd
Api"
:
{
"/api/
updata
Api"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
"security"
:
[
{
{
...
@@ -206,18 +206,18 @@
...
@@ -206,18 +206,18 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"Api"
"
Sys
Api"
],
],
"summary"
:
"创建
api和角色关系
"
,
"summary"
:
"创建
基础api
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"创建api
和角色关系
"
,
"description"
:
"创建api"
,
"name"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/api.
AuthAndPathIn
"
"$ref"
:
"#/definitions/api.
CreateApiParams
"
}
}
}
}
],
],
...
@@ -231,7 +231,7 @@
...
@@ -231,7 +231,7 @@
}
}
}
}
},
},
"/a
pi/updataApi
"
:
{
"/a
uthority/createAuthority
"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
"security"
:
[
{
{
...
@@ -245,18 +245,18 @@
...
@@ -245,18 +245,18 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"
Api
"
"
authority
"
],
],
"summary"
:
"创建
基础api
"
,
"summary"
:
"创建
角色
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"创建
api
"
,
"description"
:
"创建
角色
"
,
"name"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/api.CreateA
piPar
ams"
"$ref"
:
"#/definitions/api.CreateA
uthorityPat
ams"
}
}
}
}
],
],
...
@@ -270,7 +270,7 @@
...
@@ -270,7 +270,7 @@
}
}
}
}
},
},
"/authority/
crea
teAuthority"
:
{
"/authority/
dele
teAuthority"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
"security"
:
[
{
{
...
@@ -286,16 +286,16 @@
...
@@ -286,16 +286,16 @@
"tags"
:
[
"tags"
:
[
"authority"
"authority"
],
],
"summary"
:
"
创建
角色"
,
"summary"
:
"
删除
角色"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"
创建
角色"
,
"description"
:
"
删除
角色"
,
"name"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/api.
Crea
teAuthorityPatams"
"$ref"
:
"#/definitions/api.
Dele
teAuthorityPatams"
}
}
}
}
],
],
...
@@ -309,7 +309,7 @@
...
@@ -309,7 +309,7 @@
}
}
}
}
},
},
"/authority/
deleteAuthority
"
:
{
"/authority/
getAuthorityList
"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
"security"
:
[
{
{
...
@@ -325,16 +325,16 @@
...
@@ -325,16 +325,16 @@
"tags"
:
[
"tags"
:
[
"authority"
"authority"
],
],
"summary"
:
"
删除角色
"
,
"summary"
:
"
分页获取角色列表
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"
删除角色
"
,
"description"
:
"
分页获取用户列表
"
,
"name"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/
api.DeleteAuthorityPatams
"
"$ref"
:
"#/definitions/
modelInterface.PageInfo
"
}
}
}
}
],
],
...
@@ -348,38 +348,30 @@
...
@@ -348,38 +348,30 @@
}
}
}
}
},
},
"/
authority/getAuthAndApi
"
:
{
"/
base/login
"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
{
"ApiKeyAuth"
:
[]
}
],
"consumes"
:
[
"application/json"
],
"produces"
:
[
"produces"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"
authority
"
"
Base
"
],
],
"summary"
:
"
获取本角色所有有权限的apiId
"
,
"summary"
:
"
用户登录
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"
获取本角色所有有权限的apiId
"
,
"description"
:
"
用户登录接口
"
,
"name"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/api.
GetAuthorityId
"
"$ref"
:
"#/definitions/api.
RegistAndLoginStuct
"
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
获取
成功
\"
}"
,
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
登陆
成功
\"
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -387,38 +379,30 @@
...
@@ -387,38 +379,30 @@
}
}
}
}
},
},
"/
authority/getAuthorityL
ist"
:
{
"/
base/reg
ist"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
{
"ApiKeyAuth"
:
[]
}
],
"consumes"
:
[
"application/json"
],
"produces"
:
[
"produces"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"
authority
"
"
Base
"
],
],
"summary"
:
"
分页获取角色列表
"
,
"summary"
:
"
用户注册账号
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"
分页获取用户列表
"
,
"description"
:
"
用户注册接口
"
,
"name"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/
modelInterface.PageInfo
"
"$ref"
:
"#/definitions/
api.RegistAndLoginStuct
"
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
获取
成功
\"
}"
,
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
注册
成功
\"
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -426,30 +410,38 @@
...
@@ -426,30 +410,38 @@
}
}
}
}
},
},
"/
base/login
"
:
{
"/
casbin/casbinPUpdata
"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
{
"ApiKeyAuth"
:
[]
}
],
"consumes"
:
[
"application/json"
],
"produces"
:
[
"produces"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"
Base
"
"
casbin
"
],
],
"summary"
:
"
用户登录
"
,
"summary"
:
"
更改角色api权限
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"
用户登录接口
"
,
"description"
:
"
更改角色api权限
"
,
"name"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/api.
RegistAndLoginStuct
"
"$ref"
:
"#/definitions/api.
CreateAuthorityPatams
"
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
登陆
成功
\"
}"
,
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
获取
成功
\"
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -457,30 +449,38 @@
...
@@ -457,30 +449,38 @@
}
}
}
}
},
},
"/
base/regist
"
:
{
"/
casbin/getPolicyPathByAuthorityId
"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
{
"ApiKeyAuth"
:
[]
}
],
"consumes"
:
[
"application/json"
],
"produces"
:
[
"produces"
:
[
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"
Base
"
"
casbin
"
],
],
"summary"
:
"
用户注册账号
"
,
"summary"
:
"
获取权限列表
"
,
"parameters"
:
[
"parameters"
:
[
{
{
"description"
:
"
用户注册接口
"
,
"description"
:
"
获取权限列表
"
,
"name"
:
"data"
,
"name"
:
"data"
,
"in"
:
"body"
,
"in"
:
"body"
,
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/api.
RegistAndLoginStuct
"
"$ref"
:
"#/definitions/api.
CreateAuthorityPatams
"
}
}
}
}
],
],
"responses"
:
{
"responses"
:
{
"200"
:
{
"200"
:
{
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
注册
成功
\"
}"
,
"description"
:
"{
\"
success
\"
:true,
\"
data
\"
:{},
\"
msg
\"
:
\"
获取
成功
\"
}"
,
"schema"
:
{
"schema"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
...
@@ -499,7 +499,7 @@
...
@@ -499,7 +499,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"FileUploadAndDownload"
"
Exa
FileUploadAndDownload"
],
],
"summary"
:
"删除文件"
,
"summary"
:
"删除文件"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -510,7 +510,7 @@
...
@@ -510,7 +510,7 @@
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/dbModel.FileUploadAndDownload"
"$ref"
:
"#/definitions/dbModel.
Exa
FileUploadAndDownload"
}
}
}
}
],
],
...
@@ -538,7 +538,7 @@
...
@@ -538,7 +538,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"FileUploadAndDownload"
"
Exa
FileUploadAndDownload"
],
],
"summary"
:
"分页文件列表"
,
"summary"
:
"分页文件列表"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -577,7 +577,7 @@
...
@@ -577,7 +577,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"FileUploadAndDownload"
"
Exa
FileUploadAndDownload"
],
],
"summary"
:
"上传文件示例"
,
"summary"
:
"上传文件示例"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -624,7 +624,7 @@
...
@@ -624,7 +624,7 @@
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/
dbModel.
BaseMenu"
"$ref"
:
"#/definitions/
sysModel.Sys
BaseMenu"
}
}
}
}
],
],
...
@@ -891,7 +891,7 @@
...
@@ -891,7 +891,7 @@
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/
dbModel.
BaseMenu"
"$ref"
:
"#/definitions/
sysModel.Sys
BaseMenu"
}
}
}
}
],
],
...
@@ -916,7 +916,7 @@
...
@@ -916,7 +916,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"User"
"
Sys
User"
],
],
"summary"
:
"用户修改密码"
,
"summary"
:
"用户修改密码"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -955,7 +955,7 @@
...
@@ -955,7 +955,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"User"
"
Sys
User"
],
],
"summary"
:
"分页获取用户列表"
,
"summary"
:
"分页获取用户列表"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -994,7 +994,7 @@
...
@@ -994,7 +994,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"User"
"
Sys
User"
],
],
"summary"
:
"设置用户权限"
,
"summary"
:
"设置用户权限"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -1033,7 +1033,7 @@
...
@@ -1033,7 +1033,7 @@
"application/json"
"application/json"
],
],
"tags"
:
[
"tags"
:
[
"User"
"
Sys
User"
],
],
"summary"
:
"用户上传头像"
,
"summary"
:
"用户上传头像"
,
"parameters"
:
[
"parameters"
:
[
...
@@ -1079,7 +1079,7 @@
...
@@ -1079,7 +1079,7 @@
"required"
:
true
,
"required"
:
true
,
"schema"
:
{
"schema"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"$ref"
:
"#/definitions/
dbModel.
Workflow"
"$ref"
:
"#/definitions/
sysModel.Sys
Workflow"
}
}
}
}
],
],
...
@@ -1104,22 +1104,8 @@
...
@@ -1104,22 +1104,8 @@
"menus"
:
{
"menus"
:
{
"type"
:
"array"
,
"type"
:
"array"
,
"items"
:
{
"items"
:
{
"$ref"
:
"#/definitions/dbModel.BaseMenu"
"$ref"
:
"#/definitions/sysModel.SysBaseMenu"
}
}
}
},
"api.AuthAndPathIn"
:
{
"type"
:
"object"
,
"properties"
:
{
"apiIds"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"integer"
}
}
},
"authorityId"
:
{
"type"
:
"string"
}
}
}
}
},
},
...
@@ -1175,14 +1161,6 @@
...
@@ -1175,14 +1161,6 @@
}
}
}
}
},
},
"api.GetAuthorityId"
:
{
"type"
:
"object"
,
"properties"
:
{
"authorityId"
:
{
"type"
:
"string"
}
}
},
"api.GetById"
:
{
"api.GetById"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
...
@@ -1221,7 +1199,35 @@
...
@@ -1221,7 +1199,35 @@
}
}
}
}
},
},
"dbModel.Api"
:
{
"dbModel.ExaFileUploadAndDownload"
:
{
"type"
:
"object"
,
"properties"
:
{
"key"
:
{
"type"
:
"string"
},
"name"
:
{
"type"
:
"string"
},
"tag"
:
{
"type"
:
"string"
},
"url"
:
{
"type"
:
"string"
}
}
},
"modelInterface.PageInfo"
:
{
"type"
:
"object"
,
"properties"
:
{
"page"
:
{
"type"
:
"integer"
},
"pageSize"
:
{
"type"
:
"integer"
}
}
},
"sysModel.SysApi"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"description"
:
{
"description"
:
{
...
@@ -1235,13 +1241,13 @@
...
@@ -1235,13 +1241,13 @@
}
}
}
}
},
},
"
dbModel.
BaseMenu"
:
{
"
sysModel.Sys
BaseMenu"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"children"
:
{
"children"
:
{
"type"
:
"array"
,
"type"
:
"array"
,
"items"
:
{
"items"
:
{
"$ref"
:
"#/definitions/
dbModel.
BaseMenu"
"$ref"
:
"#/definitions/
sysModel.Sys
BaseMenu"
}
}
},
},
"component"
:
{
"component"
:
{
...
@@ -1265,29 +1271,15 @@
...
@@ -1265,29 +1271,15 @@
"path"
:
{
"path"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"title"
:
{
"sort"
:
{
"type"
:
"string"
}
}
},
"dbModel.FileUploadAndDownload"
:
{
"type"
:
"object"
,
"properties"
:
{
"key"
:
{
"type"
:
"string"
},
"name"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"tag"
:
{
"title"
:
{
"type"
:
"string"
},
"url"
:
{
"type"
:
"string"
"type"
:
"string"
}
}
}
}
},
},
"
dbModel.
Workflow"
:
{
"
sysModel.Sys
Workflow"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"workflowDescription"
:
{
"workflowDescription"
:
{
...
@@ -1306,12 +1298,12 @@
...
@@ -1306,12 +1298,12 @@
"description"
:
"工作流步骤"
,
"description"
:
"工作流步骤"
,
"type"
:
"array"
,
"type"
:
"array"
,
"items"
:
{
"items"
:
{
"$ref"
:
"#/definitions/
dbModel.
WorkflowStepInfo"
"$ref"
:
"#/definitions/
sysModel.Sys
WorkflowStepInfo"
}
}
}
}
}
}
},
},
"
dbModel.
WorkflowStepInfo"
:
{
"
sysModel.Sys
WorkflowStepInfo"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"isEnd"
:
{
"isEnd"
:
{
...
@@ -1333,16 +1325,9 @@
...
@@ -1333,16 +1325,9 @@
"stepNo"
:
{
"stepNo"
:
{
"description"
:
"步骤id (第几步)"
,
"description"
:
"步骤id (第几步)"
,
"type"
:
"number"
"type"
:
"number"
}
}
},
"modelInterface.PageInfo"
:
{
"type"
:
"object"
,
"properties"
:
{
"page"
:
{
"type"
:
"integer"
},
},
"pageSize"
:
{
"workflowID"
:
{
"description"
:
"所属工作流ID"
,
"type"
:
"integer"
"type"
:
"integer"
}
}
}
}
...
...
QMPlusServer/docs/swagger.yaml
浏览文件 @
c23f74ce
...
@@ -6,18 +6,9 @@ definitions:
...
@@ -6,18 +6,9 @@ definitions:
type
:
string
type
:
string
menus
:
menus
:
items
:
items
:
$ref
:
'
#/definitions/
dbModel.
BaseMenu'
$ref
:
'
#/definitions/
sysModel.Sys
BaseMenu'
type
:
array
type
:
array
type
:
object
type
:
object
api.AuthAndPathIn
:
properties
:
apiIds
:
items
:
type
:
integer
type
:
array
authorityId
:
type
:
string
type
:
object
api.AuthorityIdInfo
:
api.AuthorityIdInfo
:
properties
:
properties
:
authorityId
:
authorityId
:
...
@@ -51,11 +42,6 @@ definitions:
...
@@ -51,11 +42,6 @@ definitions:
authorityId
:
authorityId
:
type
:
integer
type
:
integer
type
:
object
type
:
object
api.GetAuthorityId
:
properties
:
authorityId
:
type
:
string
type
:
object
api.GetById
:
api.GetById
:
properties
:
properties
:
id
:
id
:
...
@@ -80,7 +66,25 @@ definitions:
...
@@ -80,7 +66,25 @@ definitions:
uuid
:
uuid
:
type
:
string
type
:
string
type
:
object
type
:
object
dbModel.Api
:
dbModel.ExaFileUploadAndDownload
:
properties
:
key
:
type
:
string
name
:
type
:
string
tag
:
type
:
string
url
:
type
:
string
type
:
object
modelInterface.PageInfo
:
properties
:
page
:
type
:
integer
pageSize
:
type
:
integer
type
:
object
sysModel.SysApi
:
properties
:
properties
:
description
:
description
:
type
:
string
type
:
string
...
@@ -89,11 +93,11 @@ definitions:
...
@@ -89,11 +93,11 @@ definitions:
path
:
path
:
type
:
string
type
:
string
type
:
object
type
:
object
dbModel.
BaseMenu
:
sysModel.Sys
BaseMenu
:
properties
:
properties
:
children
:
children
:
items
:
items
:
$ref
:
'
#/definitions/
dbModel.
BaseMenu'
$ref
:
'
#/definitions/
sysModel.Sys
BaseMenu'
type
:
array
type
:
array
component
:
component
:
type
:
string
type
:
string
...
@@ -109,21 +113,12 @@ definitions:
...
@@ -109,21 +113,12 @@ definitions:
type
:
string
type
:
string
path
:
path
:
type
:
string
type
:
string
title
:
sort
:
type
:
string
type
:
object
dbModel.FileUploadAndDownload
:
properties
:
key
:
type
:
string
name
:
type
:
string
tag
:
type
:
string
type
:
string
url
:
title
:
type
:
string
type
:
string
type
:
object
type
:
object
dbModel.
Workflow
:
sysModel.Sys
Workflow
:
properties
:
properties
:
workflowDescription
:
workflowDescription
:
description
:
工作流描述
description
:
工作流描述
...
@@ -137,10 +132,10 @@ definitions:
...
@@ -137,10 +132,10 @@ definitions:
workflowStep
:
workflowStep
:
description
:
工作流步骤
description
:
工作流步骤
items
:
items
:
$ref
:
'
#/definitions/
dbModel.
WorkflowStepInfo'
$ref
:
'
#/definitions/
sysModel.Sys
WorkflowStepInfo'
type
:
array
type
:
array
type
:
object
type
:
object
dbModel.
WorkflowStepInfo
:
sysModel.Sys
WorkflowStepInfo
:
properties
:
properties
:
isEnd
:
isEnd
:
description
:
是否是完结流节点
description
:
是否是完结流节点
...
@@ -157,12 +152,8 @@ definitions:
...
@@ -157,12 +152,8 @@ definitions:
stepNo
:
stepNo
:
description
:
步骤id (第几步)
description
:
步骤id (第几步)
type
:
number
type
:
number
type
:
object
workflowID
:
modelInterface.PageInfo
:
description
:
所属工作流ID
properties
:
page
:
type
:
integer
pageSize
:
type
:
integer
type
:
integer
type
:
object
type
:
object
info
:
info
:
...
@@ -195,7 +186,7 @@ paths:
...
@@ -195,7 +186,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
创建基础api
summary
:
创建基础api
tags
:
tags
:
-
Api
-
Sys
Api
/api/deleteApi
:
/api/deleteApi
:
post
:
post
:
consumes
:
consumes
:
...
@@ -206,7 +197,7 @@ paths:
...
@@ -206,7 +197,7 @@ paths:
name
:
data
name
:
data
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/
dbModel.
Api'
$ref
:
'
#/definitions/
sysModel.Sys
Api'
type
:
object
type
:
object
produces
:
produces
:
-
application/json
-
application/json
...
@@ -219,7 +210,7 @@ paths:
...
@@ -219,7 +210,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
删除指定api
summary
:
删除指定api
tags
:
tags
:
-
Api
-
Sys
Api
/api/getAllApis
:
/api/getAllApis
:
post
:
post
:
consumes
:
consumes
:
...
@@ -235,7 +226,7 @@ paths:
...
@@ -235,7 +226,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
获取所有的Api 不分页
summary
:
获取所有的Api 不分页
tags
:
tags
:
-
Api
-
Sys
Api
/api/getApiById
:
/api/getApiById
:
post
:
post
:
consumes
:
consumes
:
...
@@ -259,7 +250,7 @@ paths:
...
@@ -259,7 +250,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
根据id获取api
summary
:
根据id获取api
tags
:
tags
:
-
Api
-
Sys
Api
/api/getApiList
:
/api/getApiList
:
post
:
post
:
consumes
:
consumes
:
...
@@ -283,31 +274,7 @@ paths:
...
@@ -283,31 +274,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
分页获取API列表
summary
:
分页获取API列表
tags
:
tags
:
-
Api
-
SysApi
/api/setAuthAndApi
:
post
:
consumes
:
-
application/json
parameters
:
-
description
:
创建api和角色关系
in
:
body
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/api.AuthAndPathIn'
type
:
object
produces
:
-
application/json
responses
:
"
200"
:
description
:
'
{"success":true,"data":{},"msg":"获取成功"}'
schema
:
type
:
string
security
:
-
ApiKeyAuth
:
[]
summary
:
创建api和角色关系
tags
:
-
Api
/api/updataApi
:
/api/updataApi
:
post
:
post
:
consumes
:
consumes
:
...
@@ -331,7 +298,7 @@ paths:
...
@@ -331,7 +298,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
创建基础api
summary
:
创建基础api
tags
:
tags
:
-
Api
-
Sys
Api
/authority/createAuthority
:
/authority/createAuthority
:
post
:
post
:
consumes
:
consumes
:
...
@@ -380,30 +347,6 @@ paths:
...
@@ -380,30 +347,6 @@ paths:
summary
:
删除角色
summary
:
删除角色
tags
:
tags
:
-
authority
-
authority
/authority/getAuthAndApi
:
post
:
consumes
:
-
application/json
parameters
:
-
description
:
获取本角色所有有权限的apiId
in
:
body
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/api.GetAuthorityId'
type
:
object
produces
:
-
application/json
responses
:
"
200"
:
description
:
'
{"success":true,"data":{},"msg":"获取成功"}'
schema
:
type
:
string
security
:
-
ApiKeyAuth
:
[]
summary
:
获取本角色所有有权限的apiId
tags
:
-
authority
/authority/getAuthorityList
:
/authority/getAuthorityList
:
post
:
post
:
consumes
:
consumes
:
...
@@ -468,6 +411,54 @@ paths:
...
@@ -468,6 +411,54 @@ paths:
summary
:
用户注册账号
summary
:
用户注册账号
tags
:
tags
:
-
Base
-
Base
/casbin/casbinPUpdata
:
post
:
consumes
:
-
application/json
parameters
:
-
description
:
更改角色api权限
in
:
body
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/api.CreateAuthorityPatams'
type
:
object
produces
:
-
application/json
responses
:
"
200"
:
description
:
'
{"success":true,"data":{},"msg":"获取成功"}'
schema
:
type
:
string
security
:
-
ApiKeyAuth
:
[]
summary
:
更改角色api权限
tags
:
-
casbin
/casbin/getPolicyPathByAuthorityId
:
post
:
consumes
:
-
application/json
parameters
:
-
description
:
获取权限列表
in
:
body
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/api.CreateAuthorityPatams'
type
:
object
produces
:
-
application/json
responses
:
"
200"
:
description
:
'
{"success":true,"data":{},"msg":"获取成功"}'
schema
:
type
:
string
security
:
-
ApiKeyAuth
:
[]
summary
:
获取权限列表
tags
:
-
casbin
/fileUploadAndDownload/deleteFile
:
/fileUploadAndDownload/deleteFile
:
post
:
post
:
parameters
:
parameters
:
...
@@ -476,7 +467,7 @@ paths:
...
@@ -476,7 +467,7 @@ paths:
name
:
data
name
:
data
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/dbModel.FileUploadAndDownload'
$ref
:
'
#/definitions/dbModel.
Exa
FileUploadAndDownload'
type
:
object
type
:
object
produces
:
produces
:
-
application/json
-
application/json
...
@@ -489,7 +480,7 @@ paths:
...
@@ -489,7 +480,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
删除文件
summary
:
删除文件
tags
:
tags
:
-
FileUploadAndDownload
-
Exa
FileUploadAndDownload
/fileUploadAndDownload/getFileList
:
/fileUploadAndDownload/getFileList
:
post
:
post
:
consumes
:
consumes
:
...
@@ -513,7 +504,7 @@ paths:
...
@@ -513,7 +504,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
分页文件列表
summary
:
分页文件列表
tags
:
tags
:
-
FileUploadAndDownload
-
Exa
FileUploadAndDownload
/fileUploadAndDownload/upload
:
/fileUploadAndDownload/upload
:
post
:
post
:
consumes
:
consumes
:
...
@@ -535,7 +526,7 @@ paths:
...
@@ -535,7 +526,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
上传文件示例
summary
:
上传文件示例
tags
:
tags
:
-
FileUploadAndDownload
-
Exa
FileUploadAndDownload
/menu/addBaseMenu
:
/menu/addBaseMenu
:
post
:
post
:
consumes
:
consumes
:
...
@@ -546,7 +537,7 @@ paths:
...
@@ -546,7 +537,7 @@ paths:
name
:
data
name
:
data
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/
dbModel.
BaseMenu'
$ref
:
'
#/definitions/
sysModel.Sys
BaseMenu'
type
:
object
type
:
object
produces
:
produces
:
-
application/json
-
application/json
...
@@ -710,7 +701,7 @@ paths:
...
@@ -710,7 +701,7 @@ paths:
name
:
data
name
:
data
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/
dbModel.
BaseMenu'
$ref
:
'
#/definitions/
sysModel.Sys
BaseMenu'
type
:
object
type
:
object
produces
:
produces
:
-
application/json
-
application/json
...
@@ -745,7 +736,7 @@ paths:
...
@@ -745,7 +736,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
用户修改密码
summary
:
用户修改密码
tags
:
tags
:
-
User
-
Sys
User
/user/getUserList
:
/user/getUserList
:
post
:
post
:
consumes
:
consumes
:
...
@@ -769,7 +760,7 @@ paths:
...
@@ -769,7 +760,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
分页获取用户列表
summary
:
分页获取用户列表
tags
:
tags
:
-
User
-
Sys
User
/user/setUserAuthority
:
/user/setUserAuthority
:
post
:
post
:
consumes
:
consumes
:
...
@@ -793,7 +784,7 @@ paths:
...
@@ -793,7 +784,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
设置用户权限
summary
:
设置用户权限
tags
:
tags
:
-
User
-
Sys
User
/user/uploadHeaderImg
:
/user/uploadHeaderImg
:
post
:
post
:
consumes
:
consumes
:
...
@@ -820,7 +811,7 @@ paths:
...
@@ -820,7 +811,7 @@ paths:
-
ApiKeyAuth
:
[]
-
ApiKeyAuth
:
[]
summary
:
用户上传头像
summary
:
用户上传头像
tags
:
tags
:
-
User
-
Sys
User
/workflow/createWorkFlow
:
/workflow/createWorkFlow
:
post
:
post
:
parameters
:
parameters
:
...
@@ -829,7 +820,7 @@ paths:
...
@@ -829,7 +820,7 @@ paths:
name
:
data
name
:
data
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/
dbModel.
Workflow'
$ref
:
'
#/definitions/
sysModel.Sys
Workflow'
type
:
object
type
:
object
produces
:
produces
:
-
application/json
-
application/json
...
...
README.md
浏览文件 @
c23f74ce
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
3.
go server建议使用goland运行 减少出错可能性
3.
go server建议使用goland运行 减少出错可能性
4.
前端项目node建议高于V8.6.0
4.
前端项目node建议高于V8.6.0
5.
到前端项目目录下运行 npm i 安装所需依赖
5.
到前端项目目录下运行 npm i 安装所需依赖
6.
依赖安装完成直接运行 npm run
dev
即可启动项目
6.
依赖安装完成直接运行 npm run
serve
即可启动项目
7.
如果要使用swagger自动化文档 首先需要安装 swagger
7.
如果要使用swagger自动化文档 首先需要安装 swagger
````
````
go get -u github.com/swaggo/swag/cmd/swag
go get -u github.com/swaggo/swag/cmd/swag
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录