doc: upgrade doc
This commit is contained in:
1 parent
7a48cd0084
commit
22dc5f3407
3 files changed
+916
-260
No files matched your search
+337
-94
@@ -1,6 +1,6 @@
|
|||||||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||||
// This file was generated by swaggo/swag at
|
// 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
|
package docs
|
||||||
|
|
||||||
@@ -310,7 +310,7 @@ var doc = `{
|
|||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"$ref": "#/definitions/models.Dept"
|
"$ref": "#/definitions/models.SysDept"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -345,7 +345,7 @@ var doc = `{
|
|||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"$ref": "#/definitions/models.Dept"
|
"$ref": "#/definitions/models.SysDept"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -1475,26 +1475,32 @@ var doc = `{
|
|||||||
],
|
],
|
||||||
"description": "获取JSON",
|
"description": "获取JSON",
|
||||||
"tags": [
|
"tags": [
|
||||||
"职位"
|
"岗位"
|
||||||
],
|
],
|
||||||
"summary": "职位列表数据",
|
"summary": "岗位列表数据",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "name",
|
"description": "postName",
|
||||||
"name": "name",
|
"name": "postName",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "id",
|
"description": "postCode",
|
||||||
"name": "id",
|
"name": "postCode",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "position",
|
"description": "postId",
|
||||||
"name": "position",
|
"name": "postId",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "status",
|
||||||
|
"name": "status",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -1518,9 +1524,9 @@ var doc = `{
|
|||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"职位"
|
"岗位"
|
||||||
],
|
],
|
||||||
"summary": "添加职位",
|
"summary": "添加岗位",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"description": "data",
|
"description": "data",
|
||||||
@@ -1555,9 +1561,9 @@ var doc = `{
|
|||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"职位"
|
"岗位"
|
||||||
],
|
],
|
||||||
"summary": "修改职位",
|
"summary": "修改岗位",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"description": "body",
|
"description": "body",
|
||||||
@@ -1566,7 +1572,7 @@ var doc = `{
|
|||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"$ref": "#/definitions/models.Dept"
|
"$ref": "#/definitions/models.Post"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -1589,9 +1595,9 @@ var doc = `{
|
|||||||
],
|
],
|
||||||
"description": "获取JSON",
|
"description": "获取JSON",
|
||||||
"tags": [
|
"tags": [
|
||||||
"字典数据"
|
"岗位"
|
||||||
],
|
],
|
||||||
"summary": "获取字典数据",
|
"summary": "获取岗位信息",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@@ -1613,9 +1619,9 @@ var doc = `{
|
|||||||
"delete": {
|
"delete": {
|
||||||
"description": "删除数据",
|
"description": "删除数据",
|
||||||
"tags": [
|
"tags": [
|
||||||
"职位"
|
"岗位"
|
||||||
],
|
],
|
||||||
"summary": "删除职位",
|
"summary": "删除岗位",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@@ -1627,7 +1633,13 @@ var doc = `{
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "{\"code\": -1, \"message\": \"删除失败\"}",
|
"description": "{\"code\": 200, \"message\": \"删除成功\"}",
|
||||||
|
"schema": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"description": "{\"code\": 500, \"message\": \"删除失败\"}",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
@@ -1890,7 +1902,7 @@ var doc = `{
|
|||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"$ref": "#/definitions/models.Dept"
|
"$ref": "#/definitions/tools.SysTables"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2121,7 +2133,7 @@ var doc = `{
|
|||||||
"tags": [
|
"tags": [
|
||||||
"用户"
|
"用户"
|
||||||
],
|
],
|
||||||
"summary": "列表数据",
|
"summary": "列表用户信息数据",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -2207,7 +2219,7 @@ var doc = `{
|
|||||||
"tags": [
|
"tags": [
|
||||||
"个人中心"
|
"个人中心"
|
||||||
],
|
],
|
||||||
"summary": "获取当前登录用户",
|
"summary": "获取个人中心用户",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "{\"code\": 200, \"data\": [...]}",
|
"description": "{\"code\": 200, \"data\": [...]}",
|
||||||
@@ -2249,15 +2261,15 @@ var doc = `{
|
|||||||
},
|
},
|
||||||
"/login": {
|
"/login": {
|
||||||
"post": {
|
"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": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"summary": "登陆",
|
"summary": "登陆",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"description": "Add account",
|
"description": "account",
|
||||||
"name": "username",
|
"name": "account",
|
||||||
"in": "body",
|
"in": "body",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"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": {
|
"models.DictType": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"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": {
|
"models.SysOperLog": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -3076,6 +3088,237 @@ var doc = `{
|
|||||||
"type": "string"
|
"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": {
|
"securityDefinitions": {
|
||||||
|
|||||||
+336
-93
@@ -292,7 +292,7 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"$ref": "#/definitions/models.Dept"
|
"$ref": "#/definitions/models.SysDept"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -327,7 +327,7 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"$ref": "#/definitions/models.Dept"
|
"$ref": "#/definitions/models.SysDept"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -1457,26 +1457,32 @@
|
|||||||
],
|
],
|
||||||
"description": "获取JSON",
|
"description": "获取JSON",
|
||||||
"tags": [
|
"tags": [
|
||||||
"职位"
|
"岗位"
|
||||||
],
|
],
|
||||||
"summary": "职位列表数据",
|
"summary": "岗位列表数据",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "name",
|
"description": "postName",
|
||||||
"name": "name",
|
"name": "postName",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "id",
|
"description": "postCode",
|
||||||
"name": "id",
|
"name": "postCode",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "position",
|
"description": "postId",
|
||||||
"name": "position",
|
"name": "postId",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "status",
|
||||||
|
"name": "status",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -1500,9 +1506,9 @@
|
|||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"职位"
|
"岗位"
|
||||||
],
|
],
|
||||||
"summary": "添加职位",
|
"summary": "添加岗位",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"description": "data",
|
"description": "data",
|
||||||
@@ -1537,9 +1543,9 @@
|
|||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"职位"
|
"岗位"
|
||||||
],
|
],
|
||||||
"summary": "修改职位",
|
"summary": "修改岗位",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"description": "body",
|
"description": "body",
|
||||||
@@ -1548,7 +1554,7 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"$ref": "#/definitions/models.Dept"
|
"$ref": "#/definitions/models.Post"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -1571,9 +1577,9 @@
|
|||||||
],
|
],
|
||||||
"description": "获取JSON",
|
"description": "获取JSON",
|
||||||
"tags": [
|
"tags": [
|
||||||
"字典数据"
|
"岗位"
|
||||||
],
|
],
|
||||||
"summary": "获取字典数据",
|
"summary": "获取岗位信息",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@@ -1595,9 +1601,9 @@
|
|||||||
"delete": {
|
"delete": {
|
||||||
"description": "删除数据",
|
"description": "删除数据",
|
||||||
"tags": [
|
"tags": [
|
||||||
"职位"
|
"岗位"
|
||||||
],
|
],
|
||||||
"summary": "删除职位",
|
"summary": "删除岗位",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@@ -1609,7 +1615,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "{\"code\": -1, \"message\": \"删除失败\"}",
|
"description": "{\"code\": 200, \"message\": \"删除成功\"}",
|
||||||
|
"schema": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"description": "{\"code\": 500, \"message\": \"删除失败\"}",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
@@ -1872,7 +1884,7 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"$ref": "#/definitions/models.Dept"
|
"$ref": "#/definitions/tools.SysTables"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2103,7 +2115,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"用户"
|
"用户"
|
||||||
],
|
],
|
||||||
"summary": "列表数据",
|
"summary": "列表用户信息数据",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -2189,7 +2201,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"个人中心"
|
"个人中心"
|
||||||
],
|
],
|
||||||
"summary": "获取当前登录用户",
|
"summary": "获取个人中心用户",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "{\"code\": 200, \"data\": [...]}",
|
"description": "{\"code\": 200, \"data\": [...]}",
|
||||||
@@ -2231,15 +2243,15 @@
|
|||||||
},
|
},
|
||||||
"/login": {
|
"/login": {
|
||||||
"post": {
|
"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": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"summary": "登陆",
|
"summary": "登陆",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"description": "Add account",
|
"description": "account",
|
||||||
"name": "username",
|
"name": "account",
|
||||||
"in": "body",
|
"in": "body",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
@@ -2412,73 +2424,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"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": {
|
"models.DictType": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -2807,6 +2752,73 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"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": {
|
"models.SysOperLog": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -3058,6 +3070,237 @@
|
|||||||
"type": "string"
|
"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": {
|
"securityDefinitions": {
|
||||||
|
|||||||
+243
-73
@@ -12,53 +12,6 @@ definitions:
|
|||||||
description: 消息
|
description: 消息
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
models.Dept:
|
|
||||||
properties:
|
|
||||||
children:
|
|
||||||
items:
|
|
||||||
$ref: '#/definitions/models.Dept'
|
|
||||||
type: array
|
|
||||||
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
|
|
||||||
type: object
|
|
||||||
models.DictType:
|
models.DictType:
|
||||||
properties:
|
properties:
|
||||||
createBy:
|
createBy:
|
||||||
@@ -287,6 +240,53 @@ definitions:
|
|||||||
updatedAt:
|
updatedAt:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
models.SysDept:
|
||||||
|
properties:
|
||||||
|
children:
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/models.SysDept'
|
||||||
|
type: array
|
||||||
|
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
|
||||||
|
type: object
|
||||||
models.SysOperLog:
|
models.SysOperLog:
|
||||||
properties:
|
properties:
|
||||||
businessType:
|
businessType:
|
||||||
@@ -467,6 +467,162 @@ definitions:
|
|||||||
username:
|
username:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
tools.Params:
|
||||||
|
properties:
|
||||||
|
treeCode:
|
||||||
|
type: string
|
||||||
|
treeName:
|
||||||
|
type: string
|
||||||
|
treeParentCode:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
tools.SysColumns:
|
||||||
|
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
|
||||||
|
type: object
|
||||||
|
tools.SysTables:
|
||||||
|
properties:
|
||||||
|
businessName:
|
||||||
|
type: string
|
||||||
|
className:
|
||||||
|
description: 类名
|
||||||
|
type: string
|
||||||
|
columns:
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/tools.SysColumns'
|
||||||
|
type: array
|
||||||
|
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:
|
||||||
|
$ref: '#/definitions/tools.Params'
|
||||||
|
type: object
|
||||||
|
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
|
||||||
|
type: object
|
||||||
info:
|
info:
|
||||||
contact: {}
|
contact: {}
|
||||||
description: |-
|
description: |-
|
||||||
@@ -648,7 +804,7 @@ paths:
|
|||||||
name: data
|
name: data
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/models.Dept'
|
$ref: '#/definitions/models.SysDept'
|
||||||
type: object
|
type: object
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
@@ -675,7 +831,7 @@ paths:
|
|||||||
name: data
|
name: data
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/models.Dept'
|
$ref: '#/definitions/models.SysDept'
|
||||||
type: object
|
type: object
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
@@ -1387,17 +1543,21 @@ paths:
|
|||||||
get:
|
get:
|
||||||
description: 获取JSON
|
description: 获取JSON
|
||||||
parameters:
|
parameters:
|
||||||
- description: name
|
- description: postName
|
||||||
in: query
|
in: query
|
||||||
name: name
|
name: postName
|
||||||
type: string
|
type: string
|
||||||
- description: id
|
- description: postCode
|
||||||
in: query
|
in: query
|
||||||
name: id
|
name: postCode
|
||||||
type: string
|
type: string
|
||||||
- description: position
|
- description: postId
|
||||||
in: query
|
in: query
|
||||||
name: position
|
name: postId
|
||||||
|
type: string
|
||||||
|
- description: status
|
||||||
|
in: query
|
||||||
|
name: status
|
||||||
type: string
|
type: string
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
@@ -1406,9 +1566,9 @@ paths:
|
|||||||
$ref: '#/definitions/app.Response'
|
$ref: '#/definitions/app.Response'
|
||||||
security:
|
security:
|
||||||
- "": []
|
- "": []
|
||||||
summary: 职位列表数据
|
summary: 岗位列表数据
|
||||||
tags:
|
tags:
|
||||||
- 职位
|
- 岗位
|
||||||
post:
|
post:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
@@ -1428,9 +1588,9 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
security:
|
security:
|
||||||
- Bearer: []
|
- Bearer: []
|
||||||
summary: 添加职位
|
summary: 添加岗位
|
||||||
tags:
|
tags:
|
||||||
- 职位
|
- 岗位
|
||||||
/api/v1/post/:
|
/api/v1/post/:
|
||||||
put:
|
put:
|
||||||
consumes:
|
consumes:
|
||||||
@@ -1442,7 +1602,7 @@ paths:
|
|||||||
name: data
|
name: data
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/models.Dept'
|
$ref: '#/definitions/models.Post'
|
||||||
type: object
|
type: object
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
@@ -1451,9 +1611,9 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
security:
|
security:
|
||||||
- Bearer: []
|
- Bearer: []
|
||||||
summary: 修改职位
|
summary: 修改岗位
|
||||||
tags:
|
tags:
|
||||||
- 职位
|
- 岗位
|
||||||
/api/v1/post/{postId}:
|
/api/v1/post/{postId}:
|
||||||
delete:
|
delete:
|
||||||
description: 删除数据
|
description: 删除数据
|
||||||
@@ -1465,12 +1625,16 @@ paths:
|
|||||||
type: integer
|
type: integer
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: '{"code": -1, "message": "删除失败"}'
|
description: '{"code": 200, "message": "删除成功"}'
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
summary: 删除职位
|
"500":
|
||||||
|
description: '{"code": 500, "message": "删除失败"}'
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
summary: 删除岗位
|
||||||
tags:
|
tags:
|
||||||
- 职位
|
- 岗位
|
||||||
get:
|
get:
|
||||||
description: 获取JSON
|
description: 获取JSON
|
||||||
parameters:
|
parameters:
|
||||||
@@ -1486,9 +1650,9 @@ paths:
|
|||||||
$ref: '#/definitions/app.Response'
|
$ref: '#/definitions/app.Response'
|
||||||
security:
|
security:
|
||||||
- "": []
|
- "": []
|
||||||
summary: 获取字典数据
|
summary: 获取岗位信息
|
||||||
tags:
|
tags:
|
||||||
- 字典数据
|
- 岗位
|
||||||
/api/v1/role:
|
/api/v1/role:
|
||||||
get:
|
get:
|
||||||
description: 获取JSON
|
description: 获取JSON
|
||||||
@@ -1667,7 +1831,7 @@ paths:
|
|||||||
name: data
|
name: data
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/models.Dept'
|
$ref: '#/definitions/tools.SysTables'
|
||||||
type: object
|
type: object
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
@@ -1805,7 +1969,7 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
security:
|
security:
|
||||||
- Bearer: []
|
- Bearer: []
|
||||||
summary: 列表数据
|
summary: 列表用户信息数据
|
||||||
tags:
|
tags:
|
||||||
- 用户
|
- 用户
|
||||||
/api/v1/sysuser/{userId}:
|
/api/v1/sysuser/{userId}:
|
||||||
@@ -1855,7 +2019,7 @@ paths:
|
|||||||
$ref: '#/definitions/app.Response'
|
$ref: '#/definitions/app.Response'
|
||||||
security:
|
security:
|
||||||
- "": []
|
- "": []
|
||||||
summary: 获取当前登录用户
|
summary: 获取个人中心用户
|
||||||
tags:
|
tags:
|
||||||
- 个人中心
|
- 个人中心
|
||||||
/api/v1/user/profileAvatar:
|
/api/v1/user/profileAvatar:
|
||||||
@@ -1881,11 +2045,17 @@ paths:
|
|||||||
post:
|
post:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
description: 获取token
|
description: |-
|
||||||
|
获取token
|
||||||
|
LoginHandler can be used by clients to get a jwt token.
|
||||||
|
Payload needs to be json in the form of {"username": "USERNAME", "password": "PASSWORD"}.
|
||||||
|
Reply will be of the form {"token": "TOKEN"}.
|
||||||
|
dev 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
|
||||||
|
开发模式:需要注意全部字段不能为空,账号密码外可以传入0值
|
||||||
parameters:
|
parameters:
|
||||||
- description: Add account
|
- description: account
|
||||||
in: body
|
in: body
|
||||||
name: username
|
name: account
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/models.Login'
|
$ref: '#/definitions/models.Login'
|
||||||
|
|||||||
Reference in new issue
Block a user