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

+227 -9
View File
@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2020-08-23 22:49:09.111618 +0800 CST m=+0.142306844
// 2020-08-27 14:47:40.749512 +0800 CST m=+0.171410739
package docs
@@ -510,9 +510,9 @@ var doc = `{
"application/json"
],
"tags": [
"配置"
"字典数据"
],
"summary": "添加配置",
"summary": "添加字典数据",
"parameters": [
{
"description": "data",
@@ -521,7 +521,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/models.SysConfig"
"$ref": "#/definitions/models.DictType"
}
}
],
@@ -795,7 +795,7 @@ var doc = `{
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/app.Response"
"$ref": "#/definitions/app.PageResponse"
}
}
}
@@ -2222,6 +2222,70 @@ var doc = `{
}
}
},
"/api/v1/syscategory": {
"post": {
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"分类"
],
"summary": "添加分类",
"parameters": [
{
"description": "data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/models.SysCategory"
}
}
],
"responses": {
"200": {
"description": "{\"code\": -1, \"message\": \"添加失败\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/syscontent": {
"post": {
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"内容管理"
],
"summary": "添加内容管理",
"parameters": [
{
"description": "data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/models.SysContent"
}
}
],
"responses": {
"200": {
"description": "{\"code\": -1, \"message\": \"添加失败\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/sysfiledir": {
"post": {
"description": "获取JSON",
@@ -2555,6 +2619,42 @@ var doc = `{
}
},
"definitions": {
"app.Page": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"list": {
"type": "object"
},
"pageIndex": {
"type": "integer"
},
"pageSize": {
"type": "integer"
}
}
},
"app.PageResponse": {
"type": "object",
"properties": {
"code": {
"description": "代码",
"type": "integer",
"example": 200
},
"data": {
"description": "数据集",
"type": "object",
"$ref": "#/definitions/app.Page"
},
"msg": {
"description": "消息",
"type": "string"
}
}
},
"app.Response": {
"type": "object",
"properties": {
@@ -2851,6 +2951,58 @@ var doc = `{
}
}
},
"models.SysCategory": {
"type": "object",
"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"
}
}
},
"models.SysConfig": {
"type": "object",
"properties": {
@@ -2901,6 +3053,66 @@ var doc = `{
}
}
},
"models.SysContent": {
"type": "object",
"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"
}
}
},
"models.SysDept": {
"type": "object",
"properties": {
@@ -3322,14 +3534,20 @@ var doc = `{
"$ref": "#/definitions/tools.SysColumns"
}
},
"fkLableId": {
"type": "integer"
"fkLabelId": {
"type": "string"
},
"fkLableName": {
"fkLabelName": {
"type": "string"
},
"fkTableName": {
"type": "integer"
"type": "string"
},
"fkTableNameClass": {
"type": "string"
},
"fkTableNamePackage": {
"type": "string"
},
"goField": {
"type": "string"
+226 -8
View File
@@ -492,9 +492,9 @@
"application/json"
],
"tags": [
"配置"
"字典数据"
],
"summary": "添加配置",
"summary": "添加字典数据",
"parameters": [
{
"description": "data",
@@ -503,7 +503,7 @@
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/models.SysConfig"
"$ref": "#/definitions/models.DictType"
}
}
],
@@ -777,7 +777,7 @@
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/app.Response"
"$ref": "#/definitions/app.PageResponse"
}
}
}
@@ -2204,6 +2204,70 @@
}
}
},
"/api/v1/syscategory": {
"post": {
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"分类"
],
"summary": "添加分类",
"parameters": [
{
"description": "data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/models.SysCategory"
}
}
],
"responses": {
"200": {
"description": "{\"code\": -1, \"message\": \"添加失败\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/syscontent": {
"post": {
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"内容管理"
],
"summary": "添加内容管理",
"parameters": [
{
"description": "data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/models.SysContent"
}
}
],
"responses": {
"200": {
"description": "{\"code\": -1, \"message\": \"添加失败\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/sysfiledir": {
"post": {
"description": "获取JSON",
@@ -2537,6 +2601,42 @@
}
},
"definitions": {
"app.Page": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"list": {
"type": "object"
},
"pageIndex": {
"type": "integer"
},
"pageSize": {
"type": "integer"
}
}
},
"app.PageResponse": {
"type": "object",
"properties": {
"code": {
"description": "代码",
"type": "integer",
"example": 200
},
"data": {
"description": "数据集",
"type": "object",
"$ref": "#/definitions/app.Page"
},
"msg": {
"description": "消息",
"type": "string"
}
}
},
"app.Response": {
"type": "object",
"properties": {
@@ -2833,6 +2933,58 @@
}
}
},
"models.SysCategory": {
"type": "object",
"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"
}
}
},
"models.SysConfig": {
"type": "object",
"properties": {
@@ -2883,6 +3035,66 @@
}
}
},
"models.SysContent": {
"type": "object",
"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"
}
}
},
"models.SysDept": {
"type": "object",
"properties": {
@@ -3304,14 +3516,20 @@
"$ref": "#/definitions/tools.SysColumns"
}
},
"fkLableId": {
"type": "integer"
"fkLabelId": {
"type": "string"
},
"fkLableName": {
"fkLabelName": {
"type": "string"
},
"fkTableName": {
"type": "integer"
"type": "string"
},
"fkTableNameClass": {
"type": "string"
},
"fkTableNamePackage": {
"type": "string"
},
"goField": {
"type": "string"
+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: