diff --git a/docs/docs.go b/docs/docs.go index 173055a8..31f2b0a3 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -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": { diff --git a/docs/swagger.json b/docs/swagger.json index 3f01026c..31680ace 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -292,7 +292,7 @@ "required": true, "schema": { "type": "object", - "$ref": "#/definitions/models.Dept" + "$ref": "#/definitions/models.SysDept" } } ], @@ -327,7 +327,7 @@ "required": true, "schema": { "type": "object", - "$ref": "#/definitions/models.Dept" + "$ref": "#/definitions/models.SysDept" } } ], @@ -1457,26 +1457,32 @@ ], "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" } ], @@ -1500,9 +1506,9 @@ "application/json" ], "tags": [ - "职位" + "岗位" ], - "summary": "添加职位", + "summary": "添加岗位", "parameters": [ { "description": "data", @@ -1537,9 +1543,9 @@ "application/json" ], "tags": [ - "职位" + "岗位" ], - "summary": "修改职位", + "summary": "修改岗位", "parameters": [ { "description": "body", @@ -1548,7 +1554,7 @@ "required": true, "schema": { "type": "object", - "$ref": "#/definitions/models.Dept" + "$ref": "#/definitions/models.Post" } } ], @@ -1571,9 +1577,9 @@ ], "description": "获取JSON", "tags": [ - "字典数据" + "岗位" ], - "summary": "获取字典数据", + "summary": "获取岗位信息", "parameters": [ { "type": "integer", @@ -1595,9 +1601,9 @@ "delete": { "description": "删除数据", "tags": [ - "职位" + "岗位" ], - "summary": "删除职位", + "summary": "删除岗位", "parameters": [ { "type": "integer", @@ -1609,7 +1615,13 @@ ], "responses": { "200": { - "description": "{\"code\": -1, \"message\": \"删除失败\"}", + "description": "{\"code\": 200, \"message\": \"删除成功\"}", + "schema": { + "type": "string" + } + }, + "500": { + "description": "{\"code\": 500, \"message\": \"删除失败\"}", "schema": { "type": "string" } @@ -1872,7 +1884,7 @@ "required": true, "schema": { "type": "object", - "$ref": "#/definitions/models.Dept" + "$ref": "#/definitions/tools.SysTables" } } ], @@ -2103,7 +2115,7 @@ "tags": [ "用户" ], - "summary": "列表数据", + "summary": "列表用户信息数据", "parameters": [ { "type": "string", @@ -2189,7 +2201,7 @@ "tags": [ "个人中心" ], - "summary": "获取当前登录用户", + "summary": "获取个人中心用户", "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", @@ -2231,15 +2243,15 @@ }, "/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": { @@ -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": { "type": "object", "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": { "type": "object", "properties": { @@ -3058,6 +3070,237 @@ "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": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 43eb7303..94377e47 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -12,53 +12,6 @@ definitions: description: 消息 type: string 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: properties: createBy: @@ -287,6 +240,53 @@ definitions: updatedAt: type: string 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: properties: businessType: @@ -467,6 +467,162 @@ definitions: username: type: string 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: contact: {} description: |- @@ -648,7 +804,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/models.Dept' + $ref: '#/definitions/models.SysDept' type: object responses: "200": @@ -675,7 +831,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/models.Dept' + $ref: '#/definitions/models.SysDept' type: object responses: "200": @@ -1387,17 +1543,21 @@ paths: get: description: 获取JSON parameters: - - description: name + - description: postName in: query - name: name + name: postName type: string - - description: id + - description: postCode in: query - name: id + name: postCode type: string - - description: position + - description: postId in: query - name: position + name: postId + type: string + - description: status + in: query + name: status type: string responses: "200": @@ -1406,9 +1566,9 @@ paths: $ref: '#/definitions/app.Response' security: - "": [] - summary: 职位列表数据 + summary: 岗位列表数据 tags: - - 职位 + - 岗位 post: consumes: - application/json @@ -1428,9 +1588,9 @@ paths: type: string security: - Bearer: [] - summary: 添加职位 + summary: 添加岗位 tags: - - 职位 + - 岗位 /api/v1/post/: put: consumes: @@ -1442,7 +1602,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/models.Dept' + $ref: '#/definitions/models.Post' type: object responses: "200": @@ -1451,9 +1611,9 @@ paths: type: string security: - Bearer: [] - summary: 修改职位 + summary: 修改岗位 tags: - - 职位 + - 岗位 /api/v1/post/{postId}: delete: description: 删除数据 @@ -1465,12 +1625,16 @@ paths: type: integer responses: "200": - description: '{"code": -1, "message": "删除失败"}' + description: '{"code": 200, "message": "删除成功"}' schema: type: string - summary: 删除职位 + "500": + description: '{"code": 500, "message": "删除失败"}' + schema: + type: string + summary: 删除岗位 tags: - - 职位 + - 岗位 get: description: 获取JSON parameters: @@ -1486,9 +1650,9 @@ paths: $ref: '#/definitions/app.Response' security: - "": [] - summary: 获取字典数据 + summary: 获取岗位信息 tags: - - 字典数据 + - 岗位 /api/v1/role: get: description: 获取JSON @@ -1667,7 +1831,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/models.Dept' + $ref: '#/definitions/tools.SysTables' type: object responses: "200": @@ -1805,7 +1969,7 @@ paths: type: string security: - Bearer: [] - summary: 列表数据 + summary: 列表用户信息数据 tags: - 用户 /api/v1/sysuser/{userId}: @@ -1855,7 +2019,7 @@ paths: $ref: '#/definitions/app.Response' security: - "": [] - summary: 获取当前登录用户 + summary: 获取个人中心用户 tags: - 个人中心 /api/v1/user/profileAvatar: @@ -1881,11 +2045,17 @@ paths: post: consumes: - 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: - - description: Add account + - description: account in: body - name: username + name: account required: true schema: $ref: '#/definitions/models.Login'