feat: format reference

This commit is contained in:
zhangwenjian
2020-08-28 00:02:53 +08:00
parent 6877e1324c
commit c69a7d9fd9
87 changed files with 1124 additions and 287 deletions
+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"