doc: upgrade doc

This commit is contained in:
zhangwenjian committed 2020-07-15 22:07:23 +08:00
1 parent 7a48cd0084
commit 22dc5f3407
3 files changed
+916 -260

No files matched your search

+337 -94
View File
@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2020-06-24 20:47:39.824367 +0800 CST m=+0.095957169
// 2020-07-15 20:40:18.457047 +0800 CST m=+0.111190243
package docs
@@ -310,7 +310,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/models.Dept"
"$ref": "#/definitions/models.SysDept"
}
}
],
@@ -345,7 +345,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/models.Dept"
"$ref": "#/definitions/models.SysDept"
}
}
],
@@ -1475,26 +1475,32 @@ var doc = `{
],
"description": "获取JSON",
"tags": [
"职位"
"岗位"
],
"summary": "职位列表数据",
"summary": "岗位列表数据",
"parameters": [
{
"type": "string",
"description": "name",
"name": "name",
"description": "postName",
"name": "postName",
"in": "query"
},
{
"type": "string",
"description": "id",
"name": "id",
"description": "postCode",
"name": "postCode",
"in": "query"
},
{
"type": "string",
"description": "position",
"name": "position",
"description": "postId",
"name": "postId",
"in": "query"
},
{
"type": "string",
"description": "status",
"name": "status",
"in": "query"
}
],
@@ -1518,9 +1524,9 @@ var doc = `{
"application/json"
],
"tags": [
"职位"
"岗位"
],
"summary": "添加职位",
"summary": "添加岗位",
"parameters": [
{
"description": "data",
@@ -1555,9 +1561,9 @@ var doc = `{
"application/json"
],
"tags": [
"职位"
"岗位"
],
"summary": "修改职位",
"summary": "修改岗位",
"parameters": [
{
"description": "body",
@@ -1566,7 +1572,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/models.Dept"
"$ref": "#/definitions/models.Post"
}
}
],
@@ -1589,9 +1595,9 @@ var doc = `{
],
"description": "获取JSON",
"tags": [
"字典数据"
"岗位"
],
"summary": "获取字典数据",
"summary": "获取岗位信息",
"parameters": [
{
"type": "integer",
@@ -1613,9 +1619,9 @@ var doc = `{
"delete": {
"description": "删除数据",
"tags": [
"职位"
"岗位"
],
"summary": "删除职位",
"summary": "删除岗位",
"parameters": [
{
"type": "integer",
@@ -1627,7 +1633,13 @@ var doc = `{
],
"responses": {
"200": {
"description": "{\"code\": -1, \"message\": \"删除失败\"}",
"description": "{\"code\": 200, \"message\": \"删除成功\"}",
"schema": {
"type": "string"
}
},
"500": {
"description": "{\"code\": 500, \"message\": \"删除失败\"}",
"schema": {
"type": "string"
}
@@ -1890,7 +1902,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/models.Dept"
"$ref": "#/definitions/tools.SysTables"
}
}
],
@@ -2121,7 +2133,7 @@ var doc = `{
"tags": [
"用户"
],
"summary": "列表数据",
"summary": "列表用户信息数据",
"parameters": [
{
"type": "string",
@@ -2207,7 +2219,7 @@ var doc = `{
"tags": [
"个人中心"
],
"summary": "获取当前登录用户",
"summary": "获取个人中心用户",
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
@@ -2249,15 +2261,15 @@ var doc = `{
},
"/login": {
"post": {
"description": "获取token",
"description": "获取token\nLoginHandler can be used by clients to get a jwt token.\nPayload needs to be json in the form of {\"username\": \"USERNAME\", \"password\": \"PASSWORD\"}.\nReply will be of the form {\"token\": \"TOKEN\"}.\ndev mode:It should be noted that all fields cannot be empty, and a value of 0 can be passed in addition to the account password\n开发模式:需要注意全部字段不能为空,账号密码外可以传入0值",
"consumes": [
"application/json"
],
"summary": "登陆",
"parameters": [
{
"description": "Add account",
"name": "username",
"description": "account",
"name": "account",
"in": "body",
"required": true,
"schema": {
@@ -2430,73 +2442,6 @@ var doc = `{
}
}
},
"models.Dept": {
"type": "object",
"properties": {
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/models.Dept"
}
},
"createBy": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"dataScope": {
"type": "string"
},
"deletedAt": {
"type": "string"
},
"deptId": {
"description": "部门编码",
"type": "integer"
},
"deptName": {
"description": "部门名称",
"type": "string"
},
"deptPath": {
"type": "string"
},
"email": {
"description": "邮箱",
"type": "string"
},
"leader": {
"description": "负责人",
"type": "string"
},
"params": {
"type": "string"
},
"parentId": {
"description": "上级部门",
"type": "integer"
},
"phone": {
"description": "手机",
"type": "string"
},
"sort": {
"description": "排序",
"type": "integer"
},
"status": {
"description": "状态",
"type": "string"
},
"updateBy": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
},
"models.DictType": {
"type": "object",
"properties": {
@@ -2825,6 +2770,73 @@ var doc = `{
}
}
},
"models.SysDept": {
"type": "object",
"properties": {
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/models.SysDept"
}
},
"createBy": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"dataScope": {
"type": "string"
},
"deletedAt": {
"type": "string"
},
"deptId": {
"description": "部门编码",
"type": "integer"
},
"deptName": {
"description": "部门名称",
"type": "string"
},
"deptPath": {
"type": "string"
},
"email": {
"description": "邮箱",
"type": "string"
},
"leader": {
"description": "负责人",
"type": "string"
},
"params": {
"type": "string"
},
"parentId": {
"description": "上级部门",
"type": "integer"
},
"phone": {
"description": "手机",
"type": "string"
},
"sort": {
"description": "排序",
"type": "integer"
},
"status": {
"description": "状态",
"type": "string"
},
"updateBy": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
},
"models.SysOperLog": {
"type": "object",
"properties": {
@@ -3076,6 +3088,237 @@ var doc = `{
"type": "string"
}
}
},
"tools.Params": {
"type": "object",
"properties": {
"treeCode": {
"type": "string"
},
"treeName": {
"type": "string"
},
"treeParentCode": {
"type": "string"
}
}
},
"tools.SysColumns": {
"type": "object",
"properties": {
"columnComment": {
"type": "string"
},
"columnId": {
"type": "integer"
},
"columnName": {
"type": "string"
},
"columnType": {
"type": "string"
},
"createBy": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"deletedAt": {
"type": "string"
},
"dictType": {
"type": "string"
},
"edit": {
"type": "boolean"
},
"goField": {
"type": "string"
},
"goType": {
"type": "string"
},
"htmlType": {
"type": "string"
},
"increment": {
"type": "boolean"
},
"insert": {
"type": "boolean"
},
"isEdit": {
"type": "string"
},
"isIncrement": {
"type": "string"
},
"isInsert": {
"type": "string"
},
"isList": {
"type": "string"
},
"isPk": {
"type": "string"
},
"isQuery": {
"type": "string"
},
"isRequired": {
"type": "string"
},
"jsonField": {
"type": "string"
},
"list": {
"type": "string"
},
"pk": {
"type": "boolean"
},
"query": {
"type": "boolean"
},
"queryType": {
"type": "string"
},
"remark": {
"type": "string"
},
"required": {
"type": "boolean"
},
"sort": {
"type": "integer"
},
"superColumn": {
"type": "boolean"
},
"tableId": {
"type": "integer"
},
"updateBy": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"usableColumn": {
"type": "boolean"
}
}
},
"tools.SysTables": {
"type": "object",
"properties": {
"businessName": {
"type": "string"
},
"className": {
"description": "类名",
"type": "string"
},
"columns": {
"type": "array",
"items": {
"$ref": "#/definitions/tools.SysColumns"
}
},
"createBy": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"crud": {
"type": "boolean"
},
"dataScope": {
"type": "string"
},
"deletedAt": {
"type": "string"
},
"functionAuthor": {
"description": "功能作者",
"type": "string"
},
"functionName": {
"description": "功能名称",
"type": "string"
},
"isLogicalDelete": {
"type": "string"
},
"logicalDelete": {
"type": "boolean"
},
"logicalDeleteColumn": {
"type": "string"
},
"moduleName": {
"description": "模块名",
"type": "string"
},
"options": {
"type": "string"
},
"packageName": {
"description": "包名",
"type": "string"
},
"params": {
"type": "object",
"$ref": "#/definitions/tools.Params"
},
"pkColumn": {
"type": "string"
},
"pkGoField": {
"type": "string"
},
"pkJsonField": {
"type": "string"
},
"remark": {
"type": "string"
},
"tableComment": {
"description": "表备注",
"type": "string"
},
"tableId": {
"description": "表编码",
"type": "integer"
},
"tableName": {
"description": "表名称",
"type": "string"
},
"tplCategory": {
"type": "string"
},
"tree": {
"type": "boolean"
},
"treeCode": {
"type": "string"
},
"treeName": {
"type": "string"
},
"treeParentCode": {
"type": "string"
},
"updateBy": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
}
},
"securityDefinitions": {