feat: format reference

This commit is contained in:
zhangwenjian committed 2020-08-28 00:02:53 +08:00
1 parent 6877e1324c
commit c69a7d9fd9
87 files changed
+1124 -287

No files matched your search

+159 -8
View File
@@ -1,4 +1,29 @@
definitions:
app.Page:
properties:
count:
type: integer
list:
type: object
pageIndex:
type: integer
pageSize:
type: integer
type: object
app.PageResponse:
properties:
code:
description: 代码
example: 200
type: integer
data:
$ref: '#/definitions/app.Page'
description: 数据集
type: object
msg:
description: 消息
type: string
type: object
app.Response:
properties:
code:
@@ -205,6 +230,43 @@ definitions:
updatedAt:
type: string
type: object
models.SysCategory:
properties:
createBy:
description: 创建者
type: string
createdAt:
type: string
dataScope:
type: string
deletedAt:
type: string
id:
description: 分类Id
type: integer
img:
description: 图片
type: string
name:
description: 名称
type: string
params:
type: string
remark:
description: 备注
type: string
sort:
description: 排序
type: string
status:
description: 状态
type: string
updateBy:
description: 更新者
type: string
updatedAt:
type: string
type: object
models.SysConfig:
properties:
configId:
@@ -240,6 +302,49 @@ definitions:
updatedAt:
type: string
type: object
models.SysContent:
properties:
cateId:
description: 分类id
type: string
content:
description: 内容
type: string
createBy:
description: 创建者
type: string
createdAt:
type: string
dataScope:
type: string
deletedAt:
type: string
id:
description: id
type: integer
img:
description: 图片
type: string
name:
description: 名称
type: string
params:
type: string
remark:
description: 备注
type: string
sort:
description: 排序
type: string
status:
description: 状态
type: string
updateBy:
description: 更新者
type: string
updatedAt:
type: string
type: object
models.SysDept:
properties:
children:
@@ -536,12 +641,16 @@ definitions:
items:
$ref: '#/definitions/tools.SysColumns'
type: array
fkLableId:
type: integer
fkLableName:
fkLabelId:
type: string
fkLabelName:
type: string
fkTableName:
type: integer
type: string
fkTableNameClass:
type: string
fkTableNamePackage:
type: string
goField:
type: string
goType:
@@ -965,7 +1074,7 @@ paths:
name: data
required: true
schema:
$ref: '#/definitions/models.SysConfig'
$ref: '#/definitions/models.DictType'
type: object
responses:
"200":
@@ -974,9 +1083,9 @@ paths:
type: string
security:
- Bearer: []
summary: 添加配置
summary: 添加字典数据
tags:
- 配置
- 字典数据
put:
consumes:
- application/json
@@ -1195,7 +1304,7 @@ paths:
"200":
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/app.Response'
$ref: '#/definitions/app.PageResponse'
security:
- Bearer: []
summary: 字典类型列表数据
@@ -2064,6 +2173,48 @@ paths:
summary: 列表用户信息数据
tags:
- 用户
/api/v1/syscategory:
post:
consumes:
- application/json
description: 获取JSON
parameters:
- description: data
in: body
name: data
required: true
schema:
$ref: '#/definitions/models.SysCategory'
type: object
responses:
"200":
description: '{"code": -1, "message": "添加失败"}'
schema:
type: string
summary: 添加分类
tags:
- 分类
/api/v1/syscontent:
post:
consumes:
- application/json
description: 获取JSON
parameters:
- description: data
in: body
name: data
required: true
schema:
$ref: '#/definitions/models.SysContent'
type: object
responses:
"200":
description: '{"code": -1, "message": "添加失败"}'
schema:
type: string
summary: 添加内容管理
tags:
- 内容管理
/api/v1/sysfiledir:
post:
consumes: