提交 c23f74ce 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

文档修复

上级 885d31a2
// 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-11-20 16:59:15.3568689 +0800 CST m=+0.056920101 // 2019-12-13 11:22:41.4366202 +0800 CST m=+0.062830801
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/dbModel.SysApi" "$ref": "#/definitions/sysModel.SysApi"
} }
} }
], ],
...@@ -209,7 +209,7 @@ var doc = `{ ...@@ -209,7 +209,7 @@ var doc = `{
} }
} }
}, },
"/api/setAuthAndApi": { "/api/updataApi": {
"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 = `{
} }
} }
}, },
"/api/updataApi": { "/authority/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.CreateApiParams" "$ref": "#/definitions/api.CreateAuthorityPatams"
} }
} }
], ],
...@@ -287,7 +287,7 @@ var doc = `{ ...@@ -287,7 +287,7 @@ var doc = `{
} }
} }
}, },
"/authority/createAuthority": { "/authority/deleteAuthority": {
"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.CreateAuthorityPatams" "$ref": "#/definitions/api.DeleteAuthorityPatams"
} }
} }
], ],
...@@ -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/getAuthorityList": { "/base/regist": {
"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" "ExaFileUploadAndDownload"
], ],
"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.ExaFileUploadAndDownload"
} }
} }
], ],
...@@ -555,7 +555,7 @@ var doc = `{ ...@@ -555,7 +555,7 @@ var doc = `{
"application/json" "application/json"
], ],
"tags": [ "tags": [
"FileUploadAndDownload" "ExaFileUploadAndDownload"
], ],
"summary": "分页文件列表", "summary": "分页文件列表",
"parameters": [ "parameters": [
...@@ -594,7 +594,7 @@ var doc = `{ ...@@ -594,7 +594,7 @@ var doc = `{
"application/json" "application/json"
], ],
"tags": [ "tags": [
"FileUploadAndDownload" "ExaFileUploadAndDownload"
], ],
"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/dbModel.SysBaseMenu" "$ref": "#/definitions/sysModel.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/dbModel.SysBaseMenu" "$ref": "#/definitions/sysModel.SysBaseMenu"
} }
} }
], ],
...@@ -933,7 +933,7 @@ var doc = `{ ...@@ -933,7 +933,7 @@ var doc = `{
"application/json" "application/json"
], ],
"tags": [ "tags": [
"User" "SysUser"
], ],
"summary": "用户修改密码", "summary": "用户修改密码",
"parameters": [ "parameters": [
...@@ -972,7 +972,7 @@ var doc = `{ ...@@ -972,7 +972,7 @@ var doc = `{
"application/json" "application/json"
], ],
"tags": [ "tags": [
"User" "SysUser"
], ],
"summary": "分页获取用户列表", "summary": "分页获取用户列表",
"parameters": [ "parameters": [
...@@ -1011,7 +1011,7 @@ var doc = `{ ...@@ -1011,7 +1011,7 @@ var doc = `{
"application/json" "application/json"
], ],
"tags": [ "tags": [
"User" "SysUser"
], ],
"summary": "设置用户权限", "summary": "设置用户权限",
"parameters": [ "parameters": [
...@@ -1050,7 +1050,7 @@ var doc = `{ ...@@ -1050,7 +1050,7 @@ var doc = `{
"application/json" "application/json"
], ],
"tags": [ "tags": [
"User" "SysUser"
], ],
"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.SysWorkflow"
} }
} }
], ],
...@@ -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 = `{
} }
} }
}, },
"dbModel.SysBaseMenu": { "sysModel.SysBaseMenu": {
"type": "object", "type": "object",
"properties": { "properties": {
"children": { "children": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/definitions/dbModel.SysBaseMenu" "$ref": "#/definitions/sysModel.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.SysWorkflow": {
"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.SysWorkflowStepInfo"
} }
} }
} }
}, },
"dbModel.WorkflowStepInfo": { "sysModel.SysWorkflowStepInfo": {
"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"
} }
} }
......
此差异已折叠。
...@@ -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.SysBaseMenu'
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.SysBaseMenu:
properties: properties:
children: children:
items: items:
$ref: '#/definitions/dbModel.BaseMenu' $ref: '#/definitions/sysModel.SysBaseMenu'
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.SysWorkflow:
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.SysWorkflowStepInfo'
type: array type: array
type: object type: object
dbModel.WorkflowStepInfo: sysModel.SysWorkflowStepInfo:
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 - SysApi
/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.SysApi'
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 - SysApi
/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 - SysApi
/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 - SysApi
/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 - SysApi
/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.ExaFileUploadAndDownload'
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 - ExaFileUploadAndDownload
/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 - ExaFileUploadAndDownload
/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 - ExaFileUploadAndDownload
/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.SysBaseMenu'
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.SysBaseMenu'
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 - SysUser
/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 - SysUser
/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 - SysUser
/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 - SysUser
/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.SysWorkflow'
type: object type: object
produces: produces:
- application/json - application/json
......
...@@ -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.
先完成此消息的编辑!
想要评论请 注册