docs📝: 修改接口文档

This commit is contained in:
zhangwenjian committed 2021-06-29 16:30:47 +08:00
1 parent 0607d462d0
commit 3fd34db3c1
16 files changed
+541 -289

No files matched your search

+191 -87
View File
@@ -30,16 +30,11 @@ var doc = `{
"paths": {
"/api/v1/app-config": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取系统配置信息,主要注意这里不在验证数据权限",
"description": "获取系统配置信息,主要注意这里不在验证权限",
"tags": [
"配置管理"
],
"summary": "获取系统前台配置信息,主要注意这里不在验证数据权限",
"summary": "获取系统前台配置信息,主要注意这里不在验证权限",
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
@@ -67,11 +62,6 @@ var doc = `{
},
"/api/v1/captcha": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取验证码",
"tags": [
"登陆"
@@ -109,7 +99,7 @@ var doc = `{
"get": {
"description": "数据库表列分页列表 / database table column page list",
"tags": [
"工具 / Tools"
"工具 / 生成工具"
],
"summary": "分页列表数据 / page list data",
"parameters": [
@@ -146,7 +136,7 @@ var doc = `{
"get": {
"description": "数据库表分页列表 / database table page list",
"tags": [
"工具 / Tools"
"工具 / 生成工具"
],
"summary": "分页列表数据 / page list data",
"parameters": [
@@ -255,6 +245,11 @@ var doc = `{
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"部门"
@@ -661,6 +656,11 @@ var doc = `{
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"字典类型"
@@ -915,6 +915,11 @@ var doc = `{
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"菜单"
@@ -1136,7 +1141,7 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysPostControl"
"$ref": "#/definitions/dto.SysPostInsertReq"
}
}
],
@@ -1150,6 +1155,11 @@ var doc = `{
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"岗位"
@@ -1157,11 +1167,13 @@ var doc = `{
"summary": "删除岗位",
"parameters": [
{
"type": "integer",
"description": "id",
"description": "请求参数",
"name": "id",
"in": "path",
"required": true
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysPostDeleteReq"
}
}
],
"responses": {
@@ -1180,7 +1192,7 @@ var doc = `{
}
}
},
"/api/v1/post/": {
"/api/v1/post/{id}": {
"put": {
"security": [
{
@@ -1202,7 +1214,7 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysPostControl"
"$ref": "#/definitions/dto.SysPostUpdateReq"
}
}
],
@@ -1231,8 +1243,8 @@ var doc = `{
"parameters": [
{
"type": "integer",
"description": "postId",
"name": "postId",
"description": "编码",
"name": "id",
"in": "path",
"required": true
}
@@ -1249,6 +1261,11 @@ var doc = `{
},
"/api/v1/public/uploadFile": {
"post": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"multipart/form-data"
@@ -1504,6 +1521,11 @@ var doc = `{
},
"/api/v1/server-monitor": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"tags": [
"系统信息"
@@ -2080,6 +2102,11 @@ var doc = `{
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "登录日志删除",
"tags": [
"登录日志"
@@ -2208,6 +2235,11 @@ var doc = `{
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"操作日志"
@@ -2292,10 +2324,78 @@ var doc = `{
}
}
}
},
"post": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"用户"
],
"summary": "创建用户",
"parameters": [
{
"description": "用户数据",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysUserControl"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/api/v1/sys-user/{userId}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"tags": [
"用户"
],
"summary": "获取用户",
"parameters": [
{
"type": "integer",
"description": "用户编码",
"name": "userId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
},
"put": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"application/json"
@@ -2325,6 +2425,11 @@ var doc = `{
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"用户"
@@ -2361,7 +2466,7 @@ var doc = `{
"application/json"
],
"tags": [
"工具 - 生成表"
"工具 / 生成工具"
],
"summary": "修改表结构",
"parameters": [
@@ -2395,7 +2500,7 @@ var doc = `{
"application/json"
],
"tags": [
"工具 - 生成表"
"工具 / 生成工具"
],
"summary": "添加表结构",
"parameters": [
@@ -2425,7 +2530,7 @@ var doc = `{
],
"description": "获取JSON",
"tags": [
"工具 - 生成表"
"工具 / 生成工具"
],
"summary": "获取配置",
"parameters": [
@@ -2449,7 +2554,7 @@ var doc = `{
"delete": {
"description": "删除表结构",
"tags": [
"工具 - 生成表"
"工具 / 生成工具"
],
"summary": "删除表结构",
"parameters": [
@@ -2475,7 +2580,7 @@ var doc = `{
"get": {
"description": "生成表分页列表",
"tags": [
"工具 - 生成表"
"工具 / 生成工具"
],
"summary": "分页列表数据",
"parameters": [
@@ -2508,70 +2613,13 @@ var doc = `{
}
}
},
"/api/v1/sysUser": {
"/api/v1/user/avatar": {
"post": {
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"用户"
],
"summary": "创建用户",
"parameters": [
{
"description": "用户数据",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysUserControl"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/api/v1/sysUser/{userId}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"tags": [
"用户"
],
"summary": "获取用户",
"parameters": [
{
"type": "integer",
"description": "用户编码",
"name": "userId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/api/v1/user/avatar": {
"post": {
"description": "获取JSON",
"consumes": [
"multipart/form-data"
@@ -2623,6 +2671,11 @@ var doc = `{
},
"/api/v1/user/pwd/reset": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"application/json"
@@ -2690,6 +2743,11 @@ var doc = `{
},
"/api/v1/user/status": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"application/json"
@@ -3175,7 +3233,53 @@ var doc = `{
}
}
},
"dto.SysPostControl": {
"dto.SysPostDeleteReq": {
"type": "object",
"properties": {
"createBy": {
"type": "integer"
},
"ids": {
"type": "array",
"items": {
"type": "integer"
}
},
"updateBy": {
"type": "integer"
}
}
},
"dto.SysPostInsertReq": {
"type": "object",
"properties": {
"createBy": {
"type": "integer"
},
"postCode": {
"type": "string"
},
"postId": {
"type": "integer"
},
"postName": {
"type": "string"
},
"remark": {
"type": "string"
},
"sort": {
"type": "integer"
},
"status": {
"type": "integer"
},
"updateBy": {
"type": "integer"
}
}
},
"dto.SysPostUpdateReq": {
"type": "object",
"properties": {
"createBy": {
+191 -87
View File
@@ -13,16 +13,11 @@
"paths": {
"/api/v1/app-config": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取系统配置信息,主要注意这里不在验证数据权限",
"description": "获取系统配置信息,主要注意这里不在验证权限",
"tags": [
"配置管理"
],
"summary": "获取系统前台配置信息,主要注意这里不在验证数据权限",
"summary": "获取系统前台配置信息,主要注意这里不在验证权限",
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
@@ -50,11 +45,6 @@
},
"/api/v1/captcha": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取验证码",
"tags": [
"登陆"
@@ -92,7 +82,7 @@
"get": {
"description": "数据库表列分页列表 / database table column page list",
"tags": [
"工具 / Tools"
"工具 / 生成工具"
],
"summary": "分页列表数据 / page list data",
"parameters": [
@@ -129,7 +119,7 @@
"get": {
"description": "数据库表分页列表 / database table page list",
"tags": [
"工具 / Tools"
"工具 / 生成工具"
],
"summary": "分页列表数据 / page list data",
"parameters": [
@@ -238,6 +228,11 @@
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"部门"
@@ -644,6 +639,11 @@
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"字典类型"
@@ -898,6 +898,11 @@
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"菜单"
@@ -1119,7 +1124,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysPostControl"
"$ref": "#/definitions/dto.SysPostInsertReq"
}
}
],
@@ -1133,6 +1138,11 @@
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"岗位"
@@ -1140,11 +1150,13 @@
"summary": "删除岗位",
"parameters": [
{
"type": "integer",
"description": "id",
"description": "请求参数",
"name": "id",
"in": "path",
"required": true
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysPostDeleteReq"
}
}
],
"responses": {
@@ -1163,7 +1175,7 @@
}
}
},
"/api/v1/post/": {
"/api/v1/post/{id}": {
"put": {
"security": [
{
@@ -1185,7 +1197,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysPostControl"
"$ref": "#/definitions/dto.SysPostUpdateReq"
}
}
],
@@ -1214,8 +1226,8 @@
"parameters": [
{
"type": "integer",
"description": "postId",
"name": "postId",
"description": "编码",
"name": "id",
"in": "path",
"required": true
}
@@ -1232,6 +1244,11 @@
},
"/api/v1/public/uploadFile": {
"post": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"multipart/form-data"
@@ -1487,6 +1504,11 @@
},
"/api/v1/server-monitor": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"tags": [
"系统信息"
@@ -2063,6 +2085,11 @@
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "登录日志删除",
"tags": [
"登录日志"
@@ -2191,6 +2218,11 @@
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"操作日志"
@@ -2275,10 +2307,78 @@
}
}
}
},
"post": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"用户"
],
"summary": "创建用户",
"parameters": [
{
"description": "用户数据",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysUserControl"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/api/v1/sys-user/{userId}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"tags": [
"用户"
],
"summary": "获取用户",
"parameters": [
{
"type": "integer",
"description": "用户编码",
"name": "userId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
},
"put": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"application/json"
@@ -2308,6 +2408,11 @@
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "删除数据",
"tags": [
"用户"
@@ -2344,7 +2449,7 @@
"application/json"
],
"tags": [
"工具 - 生成表"
"工具 / 生成工具"
],
"summary": "修改表结构",
"parameters": [
@@ -2378,7 +2483,7 @@
"application/json"
],
"tags": [
"工具 - 生成表"
"工具 / 生成工具"
],
"summary": "添加表结构",
"parameters": [
@@ -2408,7 +2513,7 @@
],
"description": "获取JSON",
"tags": [
"工具 - 生成表"
"工具 / 生成工具"
],
"summary": "获取配置",
"parameters": [
@@ -2432,7 +2537,7 @@
"delete": {
"description": "删除表结构",
"tags": [
"工具 - 生成表"
"工具 / 生成工具"
],
"summary": "删除表结构",
"parameters": [
@@ -2458,7 +2563,7 @@
"get": {
"description": "生成表分页列表",
"tags": [
"工具 - 生成表"
"工具 / 生成工具"
],
"summary": "分页列表数据",
"parameters": [
@@ -2491,70 +2596,13 @@
}
}
},
"/api/v1/sysUser": {
"/api/v1/user/avatar": {
"post": {
"description": "获取JSON",
"consumes": [
"application/json"
],
"tags": [
"用户"
],
"summary": "创建用户",
"parameters": [
{
"description": "用户数据",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SysUserControl"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/api/v1/sysUser/{userId}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"tags": [
"用户"
],
"summary": "获取用户",
"parameters": [
{
"type": "integer",
"description": "用户编码",
"name": "userId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/api/v1/user/avatar": {
"post": {
"description": "获取JSON",
"consumes": [
"multipart/form-data"
@@ -2606,6 +2654,11 @@
},
"/api/v1/user/pwd/reset": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"application/json"
@@ -2673,6 +2726,11 @@
},
"/api/v1/user/status": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "获取JSON",
"consumes": [
"application/json"
@@ -3158,7 +3216,53 @@
}
}
},
"dto.SysPostControl": {
"dto.SysPostDeleteReq": {
"type": "object",
"properties": {
"createBy": {
"type": "integer"
},
"ids": {
"type": "array",
"items": {
"type": "integer"
}
},
"updateBy": {
"type": "integer"
}
}
},
"dto.SysPostInsertReq": {
"type": "object",
"properties": {
"createBy": {
"type": "integer"
},
"postCode": {
"type": "string"
},
"postId": {
"type": "integer"
},
"postName": {
"type": "string"
},
"remark": {
"type": "string"
},
"sort": {
"type": "integer"
},
"status": {
"type": "integer"
},
"updateBy": {
"type": "integer"
}
}
},
"dto.SysPostUpdateReq": {
"type": "object",
"properties": {
"createBy": {
+114 -61
View File
@@ -292,7 +292,37 @@ definitions:
type: integer
type: array
type: object
dto.SysPostControl:
dto.SysPostDeleteReq:
properties:
createBy:
type: integer
ids:
items:
type: integer
type: array
updateBy:
type: integer
type: object
dto.SysPostInsertReq:
properties:
createBy:
type: integer
postCode:
type: string
postId:
type: integer
postName:
type: string
remark:
type: string
sort:
type: integer
status:
type: integer
updateBy:
type: integer
type: object
dto.SysPostUpdateReq:
properties:
createBy:
type: integer
@@ -822,7 +852,7 @@ info:
paths:
/api/v1/app-config:
get:
description: 获取系统配置信息,主要注意这里不在验证数据权限
description: 获取系统配置信息,主要注意这里不在验证权限
responses:
"200":
description: '{"code": 200, "data": [...]}'
@@ -835,9 +865,7 @@ paths:
type: string
type: object
type: object
security:
- Bearer: []
summary: 获取系统前台配置信息,主要注意这里不在验证数据权限
summary: 获取系统前台配置信息,主要注意这里不在验证权限
tags:
- 配置管理
/api/v1/captcha:
@@ -857,8 +885,6 @@ paths:
msg:
type: string
type: object
security:
- Bearer: []
summary: 获取验证码
tags:
- 登陆
@@ -885,7 +911,7 @@ paths:
$ref: '#/definitions/response.Response'
summary: 分页列表数据 / page list data
tags:
- 工具 / Tools
- 工具 / 生成工具
/api/v1/db/tables/page:
get:
description: 数据库表分页列表 / database table page list
@@ -909,7 +935,7 @@ paths:
$ref: '#/definitions/response.Response'
summary: 分页列表数据 / page list data
tags:
- 工具 / Tools
- 工具 / 生成工具
/api/v1/dept:
delete:
description: 删除数据
@@ -925,6 +951,8 @@ paths:
description: '{"code": -1, "message": "删除失败"}'
schema:
type: string
security:
- Bearer: []
summary: 删除部门
tags:
- 部门
@@ -1169,6 +1197,8 @@ paths:
description: '{"code": -1, "message": "删除失败"}'
schema:
type: string
security:
- Bearer: []
summary: 删除字典类型
tags:
- 字典类型
@@ -1348,6 +1378,8 @@ paths:
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 删除菜单
tags:
- 菜单
@@ -1475,11 +1507,12 @@ paths:
delete:
description: 删除数据
parameters:
- description: id
in: path
- description: 请求参数
in: body
name: id
required: true
type: integer
schema:
$ref: '#/definitions/dto.SysPostDeleteReq'
responses:
"200":
description: '{"code": 200, "message": "删除成功"}'
@@ -1489,6 +1522,8 @@ paths:
description: '{"code": 500, "message": "删除失败"}'
schema:
type: string
security:
- Bearer: []
summary: 删除岗位
tags:
- 岗位
@@ -1531,7 +1566,7 @@ paths:
name: data
required: true
schema:
$ref: '#/definitions/dto.SysPostControl'
$ref: '#/definitions/dto.SysPostInsertReq'
responses:
"200":
description: '{"code": -1, "message": "添加失败"}'
@@ -1542,7 +1577,7 @@ paths:
summary: 添加岗位
tags:
- 岗位
/api/v1/post/:
/api/v1/post/{id}:
put:
consumes:
- application/json
@@ -1553,7 +1588,7 @@ paths:
name: data
required: true
schema:
$ref: '#/definitions/dto.SysPostControl'
$ref: '#/definitions/dto.SysPostUpdateReq'
responses:
"200":
description: '{"code": -1, "message": "添加失败"}'
@@ -1568,9 +1603,9 @@ paths:
get:
description: 获取JSON
parameters:
- description: postId
- description: 编码
in: path
name: postId
name: id
required: true
type: integer
responses:
@@ -1604,6 +1639,8 @@ paths:
description: '{"code": -1, "message": "添加失败"}'
schema:
type: string
security:
- Bearer: []
summary: 上传图片
tags:
- 公共接口
@@ -1750,6 +1787,8 @@ paths:
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 系统信息
tags:
- 系统信息
@@ -2061,6 +2100,8 @@ paths:
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 登录日志删除
tags:
- 登录日志
@@ -2134,6 +2175,8 @@ paths:
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 删除操作日志
tags:
- 操作日志
@@ -2218,6 +2261,27 @@ paths:
summary: 列表用户信息数据
tags:
- 用户
post:
consumes:
- application/json
description: 获取JSON
parameters:
- description: 用户数据
in: body
name: data
required: true
schema:
$ref: '#/definitions/dto.SysUserControl'
responses:
"200":
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 创建用户
tags:
- 用户
/api/v1/sys-user/{userId}:
delete:
description: 删除数据
@@ -2232,9 +2296,29 @@ paths:
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 删除用户数据
tags:
- 用户
get:
description: 获取JSON
parameters:
- description: 用户编码
in: path
name: userId
required: true
type: integer
responses:
"200":
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 获取用户
tags:
- 用户
put:
consumes:
- application/json
@@ -2251,6 +2335,8 @@ paths:
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 修改用户数据
tags:
- 用户
@@ -2273,7 +2359,7 @@ paths:
- Bearer: []
summary: 添加表结构
tags:
- 工具 - 生成表
- 工具 / 生成工具
put:
consumes:
- application/json
@@ -2294,7 +2380,7 @@ paths:
- Bearer: []
summary: 修改表结构
tags:
- 工具 - 生成表
- 工具 / 生成工具
/api/v1/sys/tables/info/{tableId}:
delete:
description: 删除表结构
@@ -2311,7 +2397,7 @@ paths:
type: string
summary: 删除表结构
tags:
- 工具 - 生成表
- 工具 / 生成工具
get:
description: 获取JSON
parameters:
@@ -2329,7 +2415,7 @@ paths:
- Bearer: []
summary: 获取配置
tags:
- 工具 - 生成表
- 工具 / 生成工具
/api/v1/sys/tables/page:
get:
description: 生成表分页列表
@@ -2353,46 +2439,7 @@ paths:
$ref: '#/definitions/response.Response'
summary: 分页列表数据
tags:
- 工具 - 生成表
/api/v1/sysUser:
post:
consumes:
- application/json
description: 获取JSON
parameters:
- description: 用户数据
in: body
name: data
required: true
schema:
$ref: '#/definitions/dto.SysUserControl'
responses:
"200":
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
summary: 创建用户
tags:
- 用户
/api/v1/sysUser/{userId}:
get:
description: 获取JSON
parameters:
- description: 用户编码
in: path
name: userId
required: true
type: integer
responses:
"200":
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 获取用户
tags:
- 用户
- 工具 / 生成工具
/api/v1/user/avatar:
post:
consumes:
@@ -2409,6 +2456,8 @@ paths:
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 修改头像
tags:
- 个人中心
@@ -2442,6 +2491,8 @@ paths:
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 重置用户密码
tags:
- 用户
@@ -2484,6 +2535,8 @@ paths:
description: '{"code": 200, "data": [...]}'
schema:
$ref: '#/definitions/response.Response'
security:
- Bearer: []
summary: 修改用户状态
tags:
- 用户