You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3738 lines
153 KiB
3738 lines
153 KiB
{
|
|
"openapi": "3.0.0",
|
|
"info": {
|
|
"title": "这是我的swagger文档第一个Api",
|
|
"description": "用户Api接口",
|
|
"termsOfService": "http://swagger.io/terms/",
|
|
"contact": {
|
|
"name": "安徽云掌技术支持",
|
|
"url": "http://www.ahbmz.com",
|
|
"email": "txg@huamill.com"
|
|
},
|
|
"license": {
|
|
"name": "BMZMIT"
|
|
},
|
|
"version": "1.0.0"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "base.ahbmz.com",
|
|
"description": "API server"
|
|
}
|
|
],
|
|
"paths": {
|
|
"config/index": {
|
|
"get": {
|
|
"tags": [
|
|
"系统配置"
|
|
],
|
|
"summary": "获取系统配置",
|
|
"description": "获取系统配置",
|
|
"operationId": "318bb054d5c78946534cd27a70bf2e19",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"in": "query",
|
|
"description": "配置名称",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "type",
|
|
"in": "query",
|
|
"description": "配置标识",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "value",
|
|
"in": "query",
|
|
"description": "配置值",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回所有配置信息"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"config/save": {
|
|
"post": {
|
|
"tags": [
|
|
"系统配置"
|
|
],
|
|
"summary": "系统配置",
|
|
"description": "系统配置",
|
|
"operationId": "91b9e70a9bc831f86ec2f312bb3b1a84",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"name": {
|
|
"description": "此那么可自行定义 比如 seo_title",
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"description": "此那么可自行定义 比如 合肥网站优化",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "添加成功",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录总数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "添加成功的的数据ID",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"demo/index": {
|
|
"get": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "获取DEMO列表",
|
|
"description": "根据相关参数获取DEMO列表",
|
|
"operationId": "3821ee044ba1221e3de1e58ce7fa3283",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"in": "query",
|
|
"description": "用户名称",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "sex",
|
|
"in": "query",
|
|
"description": "用户年龄",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"description": "当前页码",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"description": "分页数量",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回DEMo用户数据信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DemoMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"demo/read/{id}": {
|
|
"get": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "获取DEMO详情",
|
|
"description": "根据ID查询DEMO信息",
|
|
"operationId": "bc4192b86801298eb1a5dff9da3ccf54",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"description": "ID",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回DEMO单条用户数据信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DemoMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"demo/add": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "添加DEMO数据",
|
|
"description": "添加后台DEMO管理数据",
|
|
"operationId": "705135f3cdd044f61acf716558c1f273",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DemoField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "添加成功",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "添加成功的的数据ID",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"demo/edit/id/{id}": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "修改DEMO数据",
|
|
"description": "修改后台DEMO管理数据",
|
|
"operationId": "7eda1f7cee4b22e05892ca95b0067207",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DemoField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "修改数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"demo/delete": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例3333"
|
|
],
|
|
"summary": "删除DEMO数据",
|
|
"description": "根据ID删除DEMO信息",
|
|
"operationId": "cad5e01e841f62af87728adcd8fa75a6",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"demo/status": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "更新DEMO状态",
|
|
"description": "根据ID及status更新DEMO状态",
|
|
"operationId": "fb2ab3a11928e35d7be41cc0984bca10",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id",
|
|
"status"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "数据状态 0禁用 1启用",
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dictionary/add": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "添加DEMO数据",
|
|
"description": "添加后台DEMO管理数据",
|
|
"operationId": "6946bc94d5690a28eeff9d9a302547dc",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DemoField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "添加成功",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "添加成功的的数据ID",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dictionary/edit/id/{id}": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "修改DEMO数据",
|
|
"description": "修改后台DEMO管理数据",
|
|
"operationId": "42d9bfbcba2101deed513baf69dce5b2",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DemoField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "修改数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dictionary/delete": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "删除DEMO数据",
|
|
"description": "根据ID删除DEMO信息",
|
|
"operationId": "2d57c9c55d82ed8ebeebcaf519d9a405",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dictionary/status": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "更新DEMO状态",
|
|
"description": "根据ID及status更新DEMO状态",
|
|
"operationId": "2c658b27c41cb1bd84ad221973a799be",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id",
|
|
"status"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "数据状态 0禁用 1启用",
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dictionary_type/add": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "添加dictionary_type数据",
|
|
"description": "添加后台dictionary_type管理数据",
|
|
"operationId": "6a282f7a8fe54c0a8f57048caf638bb2",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DemoField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "添加成功",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "添加成功的的数据ID",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dictionary_type/edit/id/{id}": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "修改dictionary_type数据",
|
|
"description": "修改后台dictionary_type管理数据",
|
|
"operationId": "e48b16b1e00dbf0999b43bb6708a075b",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DemoField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "修改数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dictionary_type/delete": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "删除DEMO数据",
|
|
"description": "根据ID删除DEMO信息",
|
|
"operationId": "74f869a0de78ca66e386e4fef3e79858",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dictionary_type/status": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "更新DEMO状态",
|
|
"description": "根据ID及status更新DEMO状态",
|
|
"operationId": "e93be31b1544b02564d407d8d196a994",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id",
|
|
"status"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "数据状态 0禁用 1启用",
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group/index": {
|
|
"get": {
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "获取角色管理",
|
|
"description": "根据相关参数获取角色管理",
|
|
"operationId": "2ef6ea2bf239ea90bd908e92b89da00b",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"in": "query",
|
|
"description": "角色名称",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "role_code",
|
|
"in": "query",
|
|
"description": "角色标识",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"description": "当前页码",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"description": "分页数量",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回管理员用户数据信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GroupMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group/getGroupRule": {
|
|
"get": {
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "查询角色权限",
|
|
"description": "查询角色所有的权限菜单,并进行标记checked",
|
|
"operationId": "e5e4613bf731f310b9b0f4b35acf51e1",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "role_id",
|
|
"in": "path",
|
|
"description": "角色ID",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回管理员用户数据信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/MenuMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group/add": {
|
|
"post": {
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "添加角色数据",
|
|
"description": "添加后台角色数据",
|
|
"operationId": "945786fdf4da92aedadb5f81a1d10336",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GroupField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "添加成功",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录总数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "添加成功的的数据ID",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group/addGroupRule/role_id/{role_id}": {
|
|
"post": {
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "添加角色权限",
|
|
"description": "添加后台角色权限",
|
|
"operationId": "a01ee69e06334c94d2292a0d46a698c0",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"menu_id"
|
|
],
|
|
"properties": {
|
|
"menu_id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "添加成功",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录总数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "添加成功的的数据ID",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group/edit/id/{id}": {
|
|
"post": {
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "修改角色数据",
|
|
"description": "修改角色数据",
|
|
"operationId": "7b77235e8461f44f65890cdad130ec3c",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GroupField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "修改数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group/status": {
|
|
"post": {
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "更新角色状态",
|
|
"description": "根据ID及status更新角色状态",
|
|
"operationId": "66bcbe4a88f80c1bf464f2c71c118935",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id",
|
|
"status"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "数据状态 0禁用 1启用",
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group/delete": {
|
|
"post": {
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "删除角色数据",
|
|
"description": "根据ID删除角色数据",
|
|
"operationId": "2a8b861bfae21554fc371a6252252e27",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"log/index": {
|
|
"get": {
|
|
"tags": [
|
|
"日志管理"
|
|
],
|
|
"summary": "获取日志列表",
|
|
"description": "根据相关参数获取日志列表",
|
|
"operationId": "96ca56a7a4d14428de24129ef1da72b0",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"in": "query",
|
|
"description": "管理员名称",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "model",
|
|
"in": "query",
|
|
"description": "操作模块",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"description": "当前页码",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"description": "分页数量",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回管理员用户数据信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/LogMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"login/login": {
|
|
"post": {
|
|
"tags": [
|
|
"公共分类"
|
|
],
|
|
"summary": "用户登录",
|
|
"description": "用户登录",
|
|
"operationId": "f217bf5966dcac036da1ae0fa1928a71",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"username",
|
|
"password",
|
|
"key",
|
|
"code"
|
|
],
|
|
"properties": {
|
|
"username": {
|
|
"description": "登录账号",
|
|
"type": "string",
|
|
"maxLength": 20,
|
|
"minLength": 2
|
|
},
|
|
"password": {
|
|
"description": "登录密码",
|
|
"type": "string",
|
|
"maxLength": 20,
|
|
"minLength": 6
|
|
},
|
|
"key": {
|
|
"description": "验证码安全标识 验证码接口返回",
|
|
"type": "string",
|
|
"maxLength": 100,
|
|
"minLength": 1
|
|
},
|
|
"code": {
|
|
"description": "验证码",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"maxLength": 6,
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回管理员用户数据信息,token信息、管理员信息"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"login/captcha": {
|
|
"get": {
|
|
"tags": [
|
|
"公共分类"
|
|
],
|
|
"summary": "获取验证码",
|
|
"description": "获取验证码",
|
|
"operationId": "c3ff68af4e7c6d6444865475c6cac652",
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回验证码信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/index": {
|
|
"get": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "获取用户列表",
|
|
"description": "根据相关参数获取用户列表",
|
|
"operationId": "48c4130bb04784491efd891f40dacf79",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"in": "query",
|
|
"description": "管理员名称",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "truename",
|
|
"in": "query",
|
|
"description": "真实姓名",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "phone",
|
|
"in": "query",
|
|
"description": "手机号",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
{
|
|
"name": "sex",
|
|
"in": "query",
|
|
"description": "性别",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"description": "当前页码",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"description": "分页数量",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回管理员用户数据信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ManagerMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/read/id/{id}": {
|
|
"get": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "获取用户详情",
|
|
"description": "根据ID查询用户信息",
|
|
"operationId": "53984b6aed246c23f0575db9523d8027",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"description": "ID",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回管理员用户数据信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ManagerMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/readPersional": {
|
|
"get": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "获取个人详情",
|
|
"description": "获取当前登录用户的个人资料",
|
|
"operationId": "35498b796c23750dddf6df0d5419f18a",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回当前登录用户的数据信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ManagerMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/permissMenu": {
|
|
"get": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "获取用户权限",
|
|
"description": "根据当前登录用户UID获取当前用户权限菜单",
|
|
"operationId": "6f5b9320c40835990026b3900c8c37c2",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回管理员权限菜单数据",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/MenuMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/add": {
|
|
"post": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "添加管理员数据",
|
|
"description": "添加后台管理员数据",
|
|
"operationId": "cb1a845fbc97ceac6e1f1624378595c0",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ManagerField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "添加成功",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录总数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "添加成功的的数据ID",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/edit/id/{id}": {
|
|
"post": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "修改用户数据",
|
|
"description": "修改管理员数据",
|
|
"operationId": "a211dd98950a33ae2917d25099b72efd",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ManagerField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "修改数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/editPersional": {
|
|
"post": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "修改个人数据",
|
|
"description": "修改自己的个人资料",
|
|
"operationId": "152febbfddd2ab76fe49cdf2bf928fee",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ManagerField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "修改数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/passwordEdit": {
|
|
"post": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "重置用户密码",
|
|
"description": "根据ID重置用户密码",
|
|
"operationId": "8fb2bcc0cddd135d6f2157061c4846f7",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id",
|
|
"password",
|
|
"old_password",
|
|
"username"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "用户ID",
|
|
"type": "integer",
|
|
"format": "int15"
|
|
},
|
|
"password": {
|
|
"description": "新密码",
|
|
"type": "string",
|
|
"maxLength": 20,
|
|
"minLength": 6
|
|
},
|
|
"old_password": {
|
|
"description": "原始密码",
|
|
"type": "string",
|
|
"maxLength": 20,
|
|
"minLength": 6
|
|
},
|
|
"username": {
|
|
"description": "管理员账号",
|
|
"type": "string",
|
|
"maxLength": 20,
|
|
"minLength": 2
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/passwordReset": {
|
|
"post": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "重置用户密码",
|
|
"description": "根据ID重置用户密码",
|
|
"operationId": "a40a095e006f10490189d362ecd6bb3b",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id",
|
|
"password",
|
|
"username"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "用户ID",
|
|
"type": "integer",
|
|
"format": "int15"
|
|
},
|
|
"password": {
|
|
"description": "管理员密码",
|
|
"type": "string",
|
|
"maxLength": 20,
|
|
"minLength": 6
|
|
},
|
|
"username": {
|
|
"description": "管理员账号",
|
|
"type": "string",
|
|
"maxLength": 20,
|
|
"minLength": 2
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/delete": {
|
|
"post": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "删除用户数据",
|
|
"description": "根据ID删除用户数据",
|
|
"operationId": "9794029a4fce27ecd83dcd58d2ab8111",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"manager/status": {
|
|
"post": {
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "更新用户状态",
|
|
"description": "根据ID及status更新用户状态",
|
|
"operationId": "8636449e58b375690e0dcb62cbca646a",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id",
|
|
"status"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "数据状态 0禁用 1启用",
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"menu/index": {
|
|
"get": {
|
|
"tags": [
|
|
"权限菜单"
|
|
],
|
|
"summary": "获取菜单列表",
|
|
"description": "根据相关参数获取菜单列表",
|
|
"operationId": "45fd7c26f4ab954b7721b185569fb251",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "path",
|
|
"in": "query",
|
|
"description": "前端权限路由",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "name",
|
|
"in": "query",
|
|
"description": "权限菜单名称",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"description": "当前页码",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"description": "分页数量",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回权限菜单菜单数据信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/MenuMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"menu/add": {
|
|
"post": {
|
|
"tags": [
|
|
"权限菜单"
|
|
],
|
|
"summary": "添加权限菜单数据",
|
|
"description": "添加后台权限菜单数据",
|
|
"operationId": "e69d06da84039471d53965bb3cf2a5c6",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/MenuField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "添加成功",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录总数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "添加成功的的数据ID",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"menu/read/id/{id}": {
|
|
"get": {
|
|
"tags": [
|
|
"权限菜单"
|
|
],
|
|
"summary": "获取菜单详情",
|
|
"description": "根据ID查询菜单信息",
|
|
"operationId": "74e2c1983e057043fff056d04713c943",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"description": "ID",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回权限菜单菜单数据信息",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/MenuMsgExport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"menu/edit/id/{id}": {
|
|
"post": {
|
|
"tags": [
|
|
"权限菜单"
|
|
],
|
|
"summary": "修改菜单数据",
|
|
"description": "修改权限菜单数据",
|
|
"operationId": "e3999d3ad05ab8c8e806d4f3d3fe4c7c",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/MenuField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "修改数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"menu/delete": {
|
|
"post": {
|
|
"tags": [
|
|
"权限菜单"
|
|
],
|
|
"summary": "删除菜单数据",
|
|
"description": "根据ID删除菜单数据",
|
|
"operationId": "d845fa36cd423930297d855778bfc8f8",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"menu/status": {
|
|
"post": {
|
|
"tags": [
|
|
"权限菜单"
|
|
],
|
|
"summary": "更新菜单状态",
|
|
"description": "根据ID及status更新菜单状态",
|
|
"operationId": "13d4640ece58f4fd7f2ec7532c8dd7c9",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id",
|
|
"status"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "数据状态 0禁用 1启用",
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message/add": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "添加message数据",
|
|
"description": "添加后台message管理数据",
|
|
"operationId": "337119b99a8da09798c48bae15a4c21f",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DemoField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "添加成功",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "添加成功的的数据ID",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message/edit/id/{id}": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "修改message数据",
|
|
"description": "修改后台message管理数据",
|
|
"operationId": "e2cd8d41fcfdc0383c1991a921fda62a",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DemoField"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "修改数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message/delete": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "删除message数据",
|
|
"description": "根据ID删除message信息",
|
|
"operationId": "aafaa21f52a0fd2286e665d5ccc3d684",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message/status": {
|
|
"post": {
|
|
"tags": [
|
|
"测试案例"
|
|
],
|
|
"summary": "更新message状态",
|
|
"description": "根据ID及status更新message状态",
|
|
"operationId": "b802154b614acb329c7a89a0f6696af3",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id",
|
|
"status"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "数据ID或数据ID集合 id=1或 id=1,2,8",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "数据状态 0禁用 1启用",
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "删除数据状态",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示信息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "不返回",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"uploadLog/index": {
|
|
"get": {
|
|
"tags": [
|
|
"上传日志管理"
|
|
],
|
|
"summary": "获取上传日志列表",
|
|
"description": "根据相关参数获取日志列表",
|
|
"operationId": "986ec004d7a7b882db41794b686d13b5",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/components/parameters/token"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"in": "query",
|
|
"description": "管理员名称",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "model",
|
|
"in": "query",
|
|
"description": "操作模块",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"description": "当前页码",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"description": "分页数量",
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int15"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "返回管理员用户数据信息"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"DemoField": {
|
|
"description": "Demo类添加、修改等公共请求参数",
|
|
"required": [
|
|
"id",
|
|
"username",
|
|
"password",
|
|
"sex",
|
|
"phone"
|
|
],
|
|
"properties": {
|
|
"username": {
|
|
"description": "管理员名称",
|
|
"type": "string",
|
|
"default": "Jessica Smitch",
|
|
"maxLength": 20,
|
|
"minLength": 2,
|
|
"mock": {
|
|
"mock": "@uname"
|
|
}
|
|
},
|
|
"truename": {
|
|
"description": "管理员真实姓名",
|
|
"type": "string",
|
|
"default": "jack ",
|
|
"maxLength": 20,
|
|
"minLength": 2,
|
|
"mock": {
|
|
"mock": "@uname"
|
|
}
|
|
},
|
|
"password": {
|
|
"description": "管理员密码",
|
|
"type": "string",
|
|
"default": "",
|
|
"maxLength": 20,
|
|
"minLength": 6,
|
|
"mock": {
|
|
"mock": "@string"
|
|
}
|
|
},
|
|
"phone": {
|
|
"description": "手机号",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "",
|
|
"maxLength": 11,
|
|
"minLength": 11
|
|
},
|
|
"email": {
|
|
"description": "管理员邮箱",
|
|
"type": "string",
|
|
"default": "",
|
|
"maxLength": 50,
|
|
"minLength": 5,
|
|
"mock": {
|
|
"mock": "@email"
|
|
}
|
|
},
|
|
"birthday": {
|
|
"description": "管理员生日",
|
|
"type": "string",
|
|
"format": "datetime",
|
|
"default": "2017-02-02 18:31:45"
|
|
},
|
|
"age": {
|
|
"description": "年龄",
|
|
"type": "integer",
|
|
"format": "int32",
|
|
"default": "1",
|
|
"maximum": 150,
|
|
"exclusiveMaximum": true,
|
|
"minimum": 1,
|
|
"exclusiveMinimum": true,
|
|
"maxLength": 3,
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"GroupField": {
|
|
"description": "Manager类添加、修改等公共请求参数",
|
|
"required": [
|
|
"id",
|
|
"username",
|
|
"password",
|
|
"sex",
|
|
"phone"
|
|
],
|
|
"properties": {
|
|
"title": {
|
|
"description": "用户组中文名称",
|
|
"type": "string",
|
|
"default": "商务部",
|
|
"maxLength": 100,
|
|
"minLength": 1,
|
|
"mock": {
|
|
"mock": "@cname"
|
|
}
|
|
},
|
|
"role_code": {
|
|
"description": "角色标识",
|
|
"type": "string",
|
|
"default": "bussiness ",
|
|
"maxLength": 100,
|
|
"minLength": 1,
|
|
"mock": {
|
|
"mock": "@name"
|
|
}
|
|
},
|
|
"remark": {
|
|
"description": "备注",
|
|
"type": "string",
|
|
"default": "",
|
|
"maxLength": 100,
|
|
"minLength": 1,
|
|
"mock": {
|
|
"mock": "@string"
|
|
}
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"GroupMsgExport": {
|
|
"description": "swagger response返回数据引用",
|
|
"required": [
|
|
"code",
|
|
"msg",
|
|
"count",
|
|
"data"
|
|
],
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示消息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录总数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "请求结果",
|
|
"type": "array",
|
|
"items": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "ID",
|
|
"type": "integer"
|
|
},
|
|
"site_id": {
|
|
"description": "站点ID",
|
|
"type": "integer"
|
|
},
|
|
"remark": {
|
|
"description": "备注",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"description": "用户组中文名称",
|
|
"type": "string"
|
|
},
|
|
"role_code": {
|
|
"description": "角色标识",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "状态:为1正常,为0禁用",
|
|
"type": "integer"
|
|
},
|
|
"rules": {
|
|
"description": "用户组拥有的规则id, 多个规则,隔开",
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"description": "组的类型 1:共用 2:个人",
|
|
"type": "integer"
|
|
},
|
|
"delete_time": {
|
|
"description": "是否删除 null:未删除",
|
|
"type": "integer"
|
|
},
|
|
"update_time": {
|
|
"description": "更新时间",
|
|
"type": "integer"
|
|
},
|
|
"create_time": {
|
|
"description": "创建时间",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ManagerField": {
|
|
"description": "Manager类添加、修改等公共请求参数",
|
|
"required": [
|
|
"username",
|
|
"password",
|
|
"sex",
|
|
"phone"
|
|
],
|
|
"properties": {
|
|
"username": {
|
|
"description": "管理员名称",
|
|
"type": "string",
|
|
"default": "Jessica Smitch",
|
|
"maxLength": 20,
|
|
"minLength": 2,
|
|
"mock": {
|
|
"mock": "@word"
|
|
}
|
|
},
|
|
"truename": {
|
|
"description": "管理员真实姓名",
|
|
"type": "string",
|
|
"default": "jack ",
|
|
"maxLength": 20,
|
|
"minLength": 2,
|
|
"mock": {
|
|
"mock": "@cname"
|
|
}
|
|
},
|
|
"password": {
|
|
"description": "管理员密码",
|
|
"type": "string",
|
|
"default": "",
|
|
"maxLength": 20,
|
|
"minLength": 6,
|
|
"mock": {
|
|
"mock": "@string"
|
|
}
|
|
},
|
|
"sex": {
|
|
"description": "性别",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "0",
|
|
"maxLength": 1,
|
|
"minLength": 1
|
|
},
|
|
"phone": {
|
|
"description": "手机号",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "",
|
|
"maxLength": 11,
|
|
"minLength": 11
|
|
},
|
|
"email": {
|
|
"description": "管理员邮箱",
|
|
"type": "string",
|
|
"default": "",
|
|
"maxLength": 50,
|
|
"minLength": 5,
|
|
"mock": {
|
|
"mock": "@email"
|
|
}
|
|
},
|
|
"status": {
|
|
"description": "状态",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "1",
|
|
"maxLength": 1,
|
|
"minLength": 1
|
|
},
|
|
"introduction": {
|
|
"description": "管理员简介",
|
|
"type": "string",
|
|
"default": " ",
|
|
"maxLength": 200,
|
|
"minLength": 1,
|
|
"mock": {
|
|
"mock": "@cparagraph"
|
|
}
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"MenuField": {
|
|
"description": "Menu类添加、修改等公共请求参数",
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"model_name"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"description": "权限菜单名称",
|
|
"type": "string",
|
|
"default": "栏目菜单",
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"mock": {
|
|
"mock": "@cname"
|
|
}
|
|
},
|
|
"parent_id": {
|
|
"description": "父级ID",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "0",
|
|
"maxLength": 100,
|
|
"minLength": 1
|
|
},
|
|
"model_name": {
|
|
"description": "模块名/控制器/方法",
|
|
"type": "string",
|
|
"default": "/api/menu/index ",
|
|
"maxLength": 20,
|
|
"minLength": 2,
|
|
"mock": {
|
|
"mock": "@word"
|
|
}
|
|
},
|
|
"path": {
|
|
"description": "权限菜单前端路由",
|
|
"type": "string",
|
|
"default": "/system/menu"
|
|
},
|
|
"component": {
|
|
"description": "对应前台的模板的路由地址",
|
|
"type": "string",
|
|
"default": "/system/menu"
|
|
},
|
|
"authority": {
|
|
"description": "按钮权限标识",
|
|
"type": "string",
|
|
"default": "sys:menu:add"
|
|
},
|
|
"icon": {
|
|
"description": "菜单图标",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"color": {
|
|
"description": "icon颜色",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"target": {
|
|
"description": "是否新窗口 _target",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"iframe": {
|
|
"description": "是否为 iframe模式 0:不是 1:是",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "0"
|
|
},
|
|
"hide": {
|
|
"description": "是否显示 0:显示 1:隐藏",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "0",
|
|
"maxLength": 1,
|
|
"minLength": 1
|
|
},
|
|
"sort": {
|
|
"description": "排序",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "0",
|
|
"maxLength": 100,
|
|
"minLength": 1
|
|
},
|
|
"menu_type": {
|
|
"description": "菜单类型 0:菜单 1:按钮",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "0",
|
|
"maxLength": 1,
|
|
"minLength": 1
|
|
},
|
|
"open_type": {
|
|
"description": "打开方式 0:组件 1:内链 2:外链",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "0",
|
|
"maxLength": 1,
|
|
"minLength": 1
|
|
},
|
|
"is_dev": {
|
|
"description": "1:开发者模式(即tp调试模式开启)",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "0",
|
|
"maxLength": 1,
|
|
"minLength": 1
|
|
},
|
|
"status": {
|
|
"description": "状态:为1正常,为0禁用",
|
|
"type": "integer",
|
|
"format": "int15",
|
|
"default": "1",
|
|
"maxLength": 1,
|
|
"minLength": 1
|
|
},
|
|
"condition": {
|
|
"description": "规则表达式,为空表示存在就验证,不为空表示按照条件验证",
|
|
"type": "string",
|
|
"default": " ",
|
|
"maxLength": 100,
|
|
"minLength": 1
|
|
},
|
|
"remarks": {
|
|
"description": "备注",
|
|
"type": "string",
|
|
"default": " ",
|
|
"maxLength": 200,
|
|
"minLength": 1
|
|
},
|
|
"child_list": {
|
|
"description": "100100 子集菜单集合",
|
|
"type": "string",
|
|
"default": " ",
|
|
"maxLength": 200,
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ConfigMsgExport": {
|
|
"description": "// swagger response返回数据引用",
|
|
"required": [
|
|
"code",
|
|
"msg",
|
|
"count",
|
|
"data"
|
|
],
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示消息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "数量",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "请求结果",
|
|
"type": "array",
|
|
"items": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "ID",
|
|
"type": "integer"
|
|
},
|
|
"username": {
|
|
"description": "管理员名称",
|
|
"type": "string"
|
|
},
|
|
"truename": {
|
|
"description": "管理员真实姓名",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"DemoMsgExport": {
|
|
"description": "swagger response返回数据引用",
|
|
"required": [
|
|
"code",
|
|
"msg",
|
|
"count",
|
|
"data"
|
|
],
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示消息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录总数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "请求结果",
|
|
"type": "array",
|
|
"items": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "ID",
|
|
"type": "integer"
|
|
},
|
|
"site_id": {
|
|
"description": "站点ID",
|
|
"type": "integer"
|
|
},
|
|
"username": {
|
|
"description": "管理员名称",
|
|
"type": "string"
|
|
},
|
|
"sex": {
|
|
"description": "性别",
|
|
"type": "integer"
|
|
},
|
|
"delete_time": {
|
|
"description": "是否删除 null:未删除",
|
|
"type": "integer"
|
|
},
|
|
"update_time": {
|
|
"description": "更新时间",
|
|
"type": "integer"
|
|
},
|
|
"create_time": {
|
|
"description": "创建时间",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"LogMsgExport": {
|
|
"description": "swagger response返回数据引用",
|
|
"required": [
|
|
"code",
|
|
"msg",
|
|
"count",
|
|
"data"
|
|
],
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示消息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录总数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "请求结果",
|
|
"type": "array",
|
|
"items": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "ID",
|
|
"type": "integer"
|
|
},
|
|
"site_id": {
|
|
"description": "站点ID",
|
|
"type": "integer"
|
|
},
|
|
"user_id": {
|
|
"description": "管理员ID",
|
|
"type": "integer"
|
|
},
|
|
"username": {
|
|
"description": "管理员用户名",
|
|
"type": "string"
|
|
},
|
|
"action_ip": {
|
|
"description": "执行行为者ip",
|
|
"type": "string"
|
|
},
|
|
"model": {
|
|
"description": "操作模块",
|
|
"type": "string"
|
|
},
|
|
"request_param": {
|
|
"description": "请求参数",
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"description": "触发行为完整的url",
|
|
"type": "string"
|
|
},
|
|
"request_method": {
|
|
"description": "请求方式",
|
|
"type": "string"
|
|
},
|
|
"spend_time": {
|
|
"description": "耗时几秒",
|
|
"type": "float"
|
|
},
|
|
"record_id": {
|
|
"description": "触发行为的数据id",
|
|
"type": "integer"
|
|
},
|
|
"remark": {
|
|
"description": "日志备注",
|
|
"type": "string"
|
|
},
|
|
"data": {
|
|
"description": "修改后数据集合",
|
|
"type": "string"
|
|
},
|
|
"origin": {
|
|
"description": "修改前源数据",
|
|
"type": "string"
|
|
},
|
|
"sql": {
|
|
"description": "执行的sql记录",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "状态 0:禁用 1:启用",
|
|
"type": "integer"
|
|
},
|
|
"client_os": {
|
|
"description": "客户端系统类型",
|
|
"type": "string"
|
|
},
|
|
"client_browser": {
|
|
"description": "客户端浏览器类型",
|
|
"type": "string"
|
|
},
|
|
"client_device": {
|
|
"description": "客户端设备型号,如 phone x 由api传过来",
|
|
"type": "string"
|
|
},
|
|
"delete_time": {
|
|
"description": "是否删除 null:未删除",
|
|
"type": "integer"
|
|
},
|
|
"update_time": {
|
|
"description": "更新时间",
|
|
"type": "integer"
|
|
},
|
|
"create_time": {
|
|
"description": "创建时间",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ManagerMsgExport": {
|
|
"description": "swagger response返回数据引用",
|
|
"required": [
|
|
"code",
|
|
"msg",
|
|
"count",
|
|
"data"
|
|
],
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示消息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录总数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "请求结果",
|
|
"type": "array",
|
|
"items": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "ID",
|
|
"type": "integer"
|
|
},
|
|
"site_id": {
|
|
"description": "站点ID",
|
|
"type": "integer"
|
|
},
|
|
"username": {
|
|
"description": "管理员名称",
|
|
"type": "string"
|
|
},
|
|
"truename": {
|
|
"description": "管理员真实姓名",
|
|
"type": "string"
|
|
},
|
|
"sex": {
|
|
"description": "性别",
|
|
"type": "integer"
|
|
},
|
|
"phone": {
|
|
"description": "手机号",
|
|
"type": "integer"
|
|
},
|
|
"email": {
|
|
"description": "邮箱",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "状态",
|
|
"type": "integer"
|
|
},
|
|
"ip": {
|
|
"description": "ip",
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"description": "头像地址",
|
|
"type": "string"
|
|
},
|
|
"introduction": {
|
|
"description": "用户简介",
|
|
"type": "string"
|
|
},
|
|
"delete_time": {
|
|
"description": "是否删除 null:未删除",
|
|
"type": "integer"
|
|
},
|
|
"login_time": {
|
|
"description": "最后登录时间",
|
|
"type": "integer"
|
|
},
|
|
"update_time": {
|
|
"description": "更新时间",
|
|
"type": "integer"
|
|
},
|
|
"create_time": {
|
|
"description": "创建时间",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"MenuMsgExport": {
|
|
"description": "swagger response返回数据引用",
|
|
"required": [
|
|
"code",
|
|
"msg",
|
|
"count",
|
|
"data"
|
|
],
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"msg": {
|
|
"description": "提示消息",
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"description": "记录总数",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"description": "请求结果",
|
|
"type": "array",
|
|
"items": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "菜单ID",
|
|
"type": "integer"
|
|
},
|
|
"site_id": {
|
|
"description": "站点ID",
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"description": "菜单名称",
|
|
"type": "string"
|
|
},
|
|
"parent_id": {
|
|
"description": "父级ID",
|
|
"type": "integer"
|
|
},
|
|
"model_name": {
|
|
"description": "模块名/控制器/方法",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "对应前台的模板的路由地址",
|
|
"type": "string"
|
|
},
|
|
"component": {
|
|
"description": "前台对应的组件路径",
|
|
"type": "string"
|
|
},
|
|
"authority": {
|
|
"description": "按钮权限标识",
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"description": "菜单图标",
|
|
"type": "string"
|
|
},
|
|
"color": {
|
|
"description": "icon颜色",
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"description": "是否新窗口 _target/_self",
|
|
"type": "string"
|
|
},
|
|
"iframe": {
|
|
"description": "是否为 iframe模式 0:不是 1:是",
|
|
"type": "integer"
|
|
},
|
|
"hide": {
|
|
"description": "是否显示 0:显示 1:隐藏",
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"description": "在think_auth_rule 表中定义一条规则时,如果type为1, condition字段就可以定义规则表达式。 如定义{score}>5 and {score}<100 表示用户的分数在5-100之间时这条规则才会通过。",
|
|
"type": "integer"
|
|
},
|
|
"sort": {
|
|
"description": "排序",
|
|
"type": "integer"
|
|
},
|
|
"menu_type": {
|
|
"description": "菜单类型 0:菜单 1:按钮",
|
|
"type": "integer"
|
|
},
|
|
"open_type": {
|
|
"description": "打开方式 0:组件 1:内链 2:外链",
|
|
"type": "integer"
|
|
},
|
|
"is_dev": {
|
|
"description": "1:开发者模式(即tp调试模式开启)",
|
|
"type": "integer"
|
|
},
|
|
"status": {
|
|
"description": "状态:为1正常,为0禁用",
|
|
"type": "integer"
|
|
},
|
|
"condition": {
|
|
"description": "规则表达式,为空表示存在就验证,不为空表示按照条件验证",
|
|
"type": "string"
|
|
},
|
|
"remarks": {
|
|
"description": "备注",
|
|
"type": "string"
|
|
},
|
|
"child_list": {
|
|
"description": "100100 子集菜单集合",
|
|
"type": "string"
|
|
},
|
|
"children": {
|
|
"description": "子集菜单对象",
|
|
"type": "object"
|
|
},
|
|
"delete_time": {
|
|
"description": "是否删除 null:未删除",
|
|
"type": "integer"
|
|
},
|
|
"update_time": {
|
|
"description": "更新时间",
|
|
"type": "integer"
|
|
},
|
|
"create_time": {
|
|
"description": "创建时间",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"parameters": {
|
|
"token": {
|
|
"name": "token",
|
|
"in": "header",
|
|
"description": "用户登录返回的jwt-token值",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|