Browse Source

同步swagger

main
pixel 4 years ago
parent
commit
db12d74878
  1. 976
      server/docs/docs.go
  2. 973
      server/docs/swagger.json
  3. 563
      server/docs/swagger.yaml

976
server/docs/docs.go
File diff suppressed because it is too large
View File

973
server/docs/swagger.json
File diff suppressed because it is too large
View File

563
server/docs/swagger.yaml

@ -13,6 +13,35 @@ definitions:
endpoint: endpoint:
type: string type: string
type: object type: object
config.Autocode:
properties:
root:
type: string
server:
type: string
serverApi:
type: string
serverInitialize:
type: string
serverModel:
type: string
serverRequest:
type: string
serverRouter:
type: string
serverService:
type: string
web:
type: string
webApi:
type: string
webFlow:
type: string
webForm:
type: string
webTable:
type: string
type: object
config.Captcha: config.Captcha:
properties: properties:
imgHeight: imgHeight:
@ -115,6 +144,10 @@ definitions:
aliyunOSS: aliyunOSS:
$ref: '#/definitions/config.AliyunOSS' $ref: '#/definitions/config.AliyunOSS'
type: object type: object
autoCode:
$ref: '#/definitions/config.Autocode'
description: auto
type: object
captcha: captcha:
$ref: '#/definitions/config.Captcha' $ref: '#/definitions/config.Captcha'
type: object type: object
@ -499,165 +532,6 @@ definitions:
$ref: '#/definitions/config.Server' $ref: '#/definitions/config.Server'
type: object type: object
type: object type: object
model.WorkflowEdge:
properties:
clazz:
type: string
conditionExpression:
type: string
createdAt:
type: string
description:
type: string
endPoint:
$ref: '#/definitions/model.WorkflowEndPoint'
description: 终点信息
type: object
hideIcon:
type: boolean
id:
type: string
label:
type: string
reverse:
type: boolean
seq:
type: string
shape:
type: string
source:
type: string
sourceAnchor:
type: integer
startPoint:
$ref: '#/definitions/model.WorkflowStartPoint'
description: 起点信息
type: object
target:
type: string
targetAnchor:
type: integer
updatedAt:
type: string
type: object
model.WorkflowEndPoint:
properties:
createdAt:
type: string
id:
type: integer
index:
type: integer
updatedAt:
type: string
workflowEdgeID:
type: string
x:
type: number
"y":
type: number
type: object
model.WorkflowNode:
properties:
assignType:
type: string
assignValue:
type: string
clazz:
type: string
content:
type: string
createdAt:
type: string
cycle:
type: string
description:
type: string
dueDate:
type: string
duration:
type: string
hideIcon:
type: boolean
id:
type: string
label:
type: string
shape:
type: string
stateValue:
type: string
subject:
type: string
success:
type: boolean
to:
type: string
type:
type: string
updatedAt:
type: string
view:
type: string
waitState:
type: string
workflowProcessID:
type: string
x:
type: number
"y":
type: number
type: object
model.WorkflowProcess:
properties:
category:
type: string
clazz:
type: string
createdAt:
type: string
description:
type: string
edges:
description: 流程链接数据
items:
$ref: '#/definitions/model.WorkflowEdge'
type: array
hideIcon:
type: boolean
id:
type: string
label:
type: string
name:
type: string
nodes:
description: 流程节点数据
items:
$ref: '#/definitions/model.WorkflowNode'
type: array
updatedAt:
type: string
view:
type: string
type: object
model.WorkflowStartPoint:
properties:
createdAt:
type: string
id:
type: integer
index:
type: integer
updatedAt:
type: string
workflowEdgeID:
type: string
x:
type: number
"y":
type: number
type: object
request.AddMenuAuthorityInfo: request.AddMenuAuthorityInfo:
properties: properties:
authorityId: authorityId:
@ -861,43 +735,6 @@ definitions:
user_id: user_id:
type: integer type: integer
type: object type: object
request.WorkflowProcessSearch:
properties:
category:
type: string
clazz:
type: string
createdAt:
type: string
description:
type: string
edges:
description: 流程链接数据
items:
$ref: '#/definitions/model.WorkflowEdge'
type: array
hideIcon:
type: boolean
id:
type: string
label:
type: string
name:
type: string
nodes:
description: 流程节点数据
items:
$ref: '#/definitions/model.WorkflowNode'
type: array
page:
type: integer
pageSize:
type: integer
updatedAt:
type: string
view:
type: string
type: object
response.SysAuthorityCopyResponse: response.SysAuthorityCopyResponse:
properties: properties:
authority: authority:
@ -924,6 +761,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysApi' $ref: '#/definitions/model.SysApi'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -947,6 +785,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysApi' $ref: '#/definitions/model.SysApi'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -959,6 +798,30 @@ paths:
summary: 删除api summary: 删除api
tags: tags:
- SysApi - SysApi
/api/deleteApisByIds:
delete:
consumes:
- application/json
parameters:
- description: ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.IdsReq'
type: object
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"删除成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 删除选中Api
tags:
- SysApi
/api/getAllApis: /api/getAllApis:
post: post:
consumes: consumes:
@ -986,6 +849,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.GetById' $ref: '#/definitions/request.GetById'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1009,6 +873,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.SearchApiParams' $ref: '#/definitions/request.SearchApiParams'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1032,6 +897,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysApi' $ref: '#/definitions/model.SysApi'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1055,6 +921,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/response.SysAuthorityCopyResponse' $ref: '#/definitions/response.SysAuthorityCopyResponse'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1078,6 +945,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysAuthority' $ref: '#/definitions/model.SysAuthority'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1101,6 +969,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysAuthority' $ref: '#/definitions/model.SysAuthority'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1124,6 +993,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.PageInfo' $ref: '#/definitions/request.PageInfo'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1147,6 +1017,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysAuthority' $ref: '#/definitions/model.SysAuthority'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1170,6 +1041,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysAuthority' $ref: '#/definitions/model.SysAuthority'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1193,6 +1065,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.AutoCodeStruct' $ref: '#/definitions/model.AutoCodeStruct'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1264,6 +1137,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.AutoCodeStruct' $ref: '#/definitions/model.AutoCodeStruct'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1301,6 +1175,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.Login' $ref: '#/definitions/request.Login'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1322,6 +1197,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.CasbinInReceive' $ref: '#/definitions/request.CasbinInReceive'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1345,6 +1221,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.CasbinInReceive' $ref: '#/definitions/request.CasbinInReceive'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1368,6 +1245,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.ExaCustomer' $ref: '#/definitions/model.ExaCustomer'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1390,6 +1268,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.ExaCustomer' $ref: '#/definitions/model.ExaCustomer'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1412,6 +1291,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.ExaCustomer' $ref: '#/definitions/model.ExaCustomer'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1434,6 +1314,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.ExaCustomer' $ref: '#/definitions/model.ExaCustomer'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1457,6 +1338,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.PageInfo' $ref: '#/definitions/request.PageInfo'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1496,8 +1378,7 @@ paths:
produces: produces:
- application/json - application/json
responses: responses:
"200":
description: ""
"200": {}
security: security:
- ApiKeyAuth: [] - ApiKeyAuth: []
summary: 下载模板 summary: 下载模板
@ -1514,11 +1395,11 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.ExcelInfo' $ref: '#/definitions/model.ExcelInfo'
type: object
produces: produces:
- application/octet-stream - application/octet-stream
responses: responses:
"200":
description: ""
"200": {}
security: security:
- ApiKeyAuth: [] - ApiKeyAuth: []
summary: 导出Excel summary: 导出Excel
@ -1591,6 +1472,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.ExaFileUploadAndDownload' $ref: '#/definitions/model.ExaFileUploadAndDownload'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1636,6 +1518,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.PageInfo' $ref: '#/definitions/request.PageInfo'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1713,6 +1596,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.InitDB' $ref: '#/definitions/request.InitDB'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1750,6 +1634,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.GetAuthorityId' $ref: '#/definitions/request.GetAuthorityId'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1773,6 +1658,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysBaseMenu' $ref: '#/definitions/model.SysBaseMenu'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1796,6 +1682,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.AddMenuAuthorityInfo' $ref: '#/definitions/request.AddMenuAuthorityInfo'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1819,6 +1706,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.GetById' $ref: '#/definitions/request.GetById'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1842,6 +1730,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.GetById' $ref: '#/definitions/request.GetById'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1863,6 +1752,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.Empty' $ref: '#/definitions/request.Empty'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1884,6 +1774,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.Empty' $ref: '#/definitions/request.Empty'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1907,6 +1798,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.PageInfo' $ref: '#/definitions/request.PageInfo'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -1930,6 +1822,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysBaseMenu' $ref: '#/definitions/model.SysBaseMenu'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2015,6 +1908,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysDictionary' $ref: '#/definitions/model.SysDictionary'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2038,6 +1932,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysDictionary' $ref: '#/definitions/model.SysDictionary'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2061,6 +1956,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysDictionary' $ref: '#/definitions/model.SysDictionary'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2084,6 +1980,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.SysDictionarySearch' $ref: '#/definitions/request.SysDictionarySearch'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2107,6 +2004,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysDictionary' $ref: '#/definitions/model.SysDictionary'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2130,6 +2028,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysDictionaryDetail' $ref: '#/definitions/model.SysDictionaryDetail'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2153,6 +2052,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysDictionaryDetail' $ref: '#/definitions/model.SysDictionaryDetail'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2176,6 +2076,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysDictionaryDetail' $ref: '#/definitions/model.SysDictionaryDetail'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2199,6 +2100,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.SysDictionaryDetailSearch' $ref: '#/definitions/request.SysDictionaryDetailSearch'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2222,6 +2124,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysDictionaryDetail' $ref: '#/definitions/model.SysDictionaryDetail'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2245,6 +2148,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysOperationRecord' $ref: '#/definitions/model.SysOperationRecord'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2268,6 +2172,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysOperationRecord' $ref: '#/definitions/model.SysOperationRecord'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2291,6 +2196,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.IdsReq' $ref: '#/definitions/request.IdsReq'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2314,6 +2220,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysOperationRecord' $ref: '#/definitions/model.SysOperationRecord'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2337,6 +2244,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.SysOperationRecordSearch' $ref: '#/definitions/request.SysOperationRecordSearch'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2400,6 +2308,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.System' $ref: '#/definitions/model.System'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2421,6 +2330,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.ChangePasswordStruct' $ref: '#/definitions/request.ChangePasswordStruct'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2444,6 +2354,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.GetById' $ref: '#/definitions/request.GetById'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2467,6 +2378,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.PageInfo' $ref: '#/definitions/request.PageInfo'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2488,6 +2400,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysUser' $ref: '#/definitions/model.SysUser'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2509,6 +2422,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/request.SetUserAuth' $ref: '#/definitions/request.SetUserAuth'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2532,6 +2446,7 @@ paths:
required: true required: true
schema: schema:
$ref: '#/definitions/model.SysUser' $ref: '#/definitions/model.SysUser'
type: object
produces: produces:
- application/json - application/json
responses: responses:
@ -2544,254 +2459,6 @@ paths:
summary: 设置用户信息 summary: 设置用户信息
tags: tags:
- SysUser - SysUser
/workflowProcess/completeWorkflowMove:
post:
consumes:
- application/json
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"获取成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 提交工作流
tags:
- WorkflowProcess
/workflowProcess/createWorkflowProcess:
post:
consumes:
- application/json
parameters:
- description: 创建WorkflowProcess
in: body
name: data
required: true
schema:
$ref: '#/definitions/model.WorkflowProcess'
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"获取成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 创建WorkflowProcess
tags:
- WorkflowProcess
/workflowProcess/deleteWorkflowProcess:
delete:
consumes:
- application/json
parameters:
- description: 删除WorkflowProcess
in: body
name: data
required: true
schema:
$ref: '#/definitions/model.WorkflowProcess'
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"删除成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 删除WorkflowProcess
tags:
- WorkflowProcess
/workflowProcess/deleteWorkflowProcessByIds:
delete:
consumes:
- application/json
parameters:
- description: 批量删除WorkflowProcess
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.IdsReq'
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"删除成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 批量删除WorkflowProcess
tags:
- WorkflowProcess
/workflowProcess/findWorkflowProcess:
get:
consumes:
- application/json
parameters:
- description: 用id查询WorkflowProcess
in: body
name: data
required: true
schema:
$ref: '#/definitions/model.WorkflowProcess'
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"查询成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 用id查询WorkflowProcess
tags:
- WorkflowProcess
/workflowProcess/findWorkflowStep:
get:
consumes:
- application/json
parameters:
- description: 用id查询WorkflowProcess
in: body
name: data
required: true
schema:
$ref: '#/definitions/model.WorkflowProcess'
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"查询成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 用id查询工作流步骤
tags:
- WorkflowProcess
/workflowProcess/getMyNeed:
get:
consumes:
- application/json
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"获取成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 我的待办
tags:
- WorkflowProcess
/workflowProcess/getMyStated:
get:
consumes:
- application/json
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"获取成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 我发起的工作流
tags:
- WorkflowProcess
/workflowProcess/getWorkflowMoveByID:
get:
consumes:
- application/json
parameters:
- description: 根据id获取当前节点详情和过往
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.GetById'
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"获取成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 根据id获取当前节点详情和历史
tags:
- WorkflowProcess
/workflowProcess/getWorkflowProcessList:
get:
consumes:
- application/json
parameters:
- description: 分页获取WorkflowProcess列表
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.WorkflowProcessSearch'
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"获取成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 分页获取WorkflowProcess列表
tags:
- WorkflowProcess
/workflowProcess/startWorkflow:
post:
consumes:
- application/json
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"获取成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 开启工作流
tags:
- WorkflowProcess
/workflowProcess/updateWorkflowProcess:
put:
consumes:
- application/json
parameters:
- description: 更新WorkflowProcess
in: body
name: data
required: true
schema:
$ref: '#/definitions/model.WorkflowProcess'
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"更新成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 更新WorkflowProcess
tags:
- WorkflowProcess
securityDefinitions: securityDefinitions:
ApiKeyAuth: ApiKeyAuth:
in: header in: header

Loading…
Cancel
Save