4346 lines
95 KiB
JSON
4346 lines
95 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"description": "EGO 系统 API 文档",
|
|
"title": "EGO API",
|
|
"termsOfService": "http://swagger.io/terms/",
|
|
"contact": {
|
|
"name": "API Support",
|
|
"url": "http://www.swagger.io/support",
|
|
"email": "support@swagger.io"
|
|
},
|
|
"license": {
|
|
"name": "Apache 2.0",
|
|
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
},
|
|
"version": "1.0"
|
|
},
|
|
"host": "127.0.0.1:3000",
|
|
"basePath": "/",
|
|
"paths": {
|
|
"/api/v1/sysConfig": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "创建新的系统配置信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"配置管理"
|
|
],
|
|
"summary": "创建配置",
|
|
"parameters": [
|
|
{
|
|
"description": "配置信息",
|
|
"name": "config",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysConfig"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysConfig/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"配置管理"
|
|
],
|
|
"summary": "批量删除配置",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysConfig/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询系统配置列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"配置管理"
|
|
],
|
|
"summary": "条件查询配置",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "query",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysConfig/list/ids": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量查询系统配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"配置管理"
|
|
],
|
|
"summary": "批量查询配置",
|
|
"parameters": [
|
|
{
|
|
"description": "配置ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysConfig/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取系统配置详细信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"配置管理"
|
|
],
|
|
"summary": "获取配置",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "配置ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新系统配置信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"配置管理"
|
|
],
|
|
"summary": "更新配置",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "配置ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "配置信息",
|
|
"name": "config",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysConfig"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除系统配置信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"配置管理"
|
|
],
|
|
"summary": "删除配置",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "配置ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDept": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "创建新的部门信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"部门管理"
|
|
],
|
|
"summary": "创建部门",
|
|
"parameters": [
|
|
{
|
|
"description": "部门信息",
|
|
"name": "dept",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysDept"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDept/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除部门",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"部门管理"
|
|
],
|
|
"summary": "批量删除部门",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDept/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询部门列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"部门管理"
|
|
],
|
|
"summary": "条件查询部门",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "query",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDept/list/ids": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量查询部门",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"部门管理"
|
|
],
|
|
"summary": "批量查询部门",
|
|
"parameters": [
|
|
{
|
|
"description": "部门ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDept/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取部门详细信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"部门管理"
|
|
],
|
|
"summary": "获取部门",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "部门ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新部门信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"部门管理"
|
|
],
|
|
"summary": "更新部门",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "部门ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "部门信息",
|
|
"name": "dept",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysDept"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除部门信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"部门管理"
|
|
],
|
|
"summary": "删除部门",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "部门ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDictData": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "创建新的字典数据信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典数据"
|
|
],
|
|
"summary": "创建字典数据",
|
|
"parameters": [
|
|
{
|
|
"description": "字典数据信息",
|
|
"name": "dictData",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysDictData"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDictData/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除字典数据",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典数据"
|
|
],
|
|
"summary": "批量删除字典数据",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDictData/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询字典数据列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典数据"
|
|
],
|
|
"summary": "条件查询字典数据",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "query",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDictData/list/ids": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量查询字典数据",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典数据"
|
|
],
|
|
"summary": "批量查询字典数据",
|
|
"parameters": [
|
|
{
|
|
"description": "字典数据ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDictData/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取字典数据详细信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典数据"
|
|
],
|
|
"summary": "获取字典数据",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "字典数据ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新字典数据信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典数据"
|
|
],
|
|
"summary": "更新字典数据",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "字典数据ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "字典数据信息",
|
|
"name": "dictData",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysDictData"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除字典数据信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典数据"
|
|
],
|
|
"summary": "删除字典数据",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "字典数据ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDictType": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "创建新的字典类型信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典类型"
|
|
],
|
|
"summary": "创建字典类型",
|
|
"parameters": [
|
|
{
|
|
"description": "字典类型信息",
|
|
"name": "dictType",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysDictType"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDictType/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除字典类型",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典类型"
|
|
],
|
|
"summary": "批量删除字典类型",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDictType/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询字典类型列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典类型"
|
|
],
|
|
"summary": "条件查询字典类型",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "query",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDictType/list/ids": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量查询字典类型",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典类型"
|
|
],
|
|
"summary": "批量查询字典类型",
|
|
"parameters": [
|
|
{
|
|
"description": "字典类型ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysDictType/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取字典类型详细信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典类型"
|
|
],
|
|
"summary": "获取字典类型",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "字典类型ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新字典类型信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典类型"
|
|
],
|
|
"summary": "更新字典类型",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "字典类型ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "字典类型信息",
|
|
"name": "dictType",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysDictType"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除字典类型信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"字典类型"
|
|
],
|
|
"summary": "删除字典类型",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "字典类型ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysFile": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建文件记录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"文件管理"
|
|
],
|
|
"summary": "创建文件记录",
|
|
"parameters": [
|
|
{
|
|
"description": "文件信息",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysFile"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysFile/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除文件记录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"文件管理"
|
|
],
|
|
"summary": "批量删除文件记录",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysFile/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询文件记录列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"文件管理"
|
|
],
|
|
"summary": "条件查询文件记录",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysFile/list": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表获取文件记录列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"文件管理"
|
|
],
|
|
"summary": "批量获取文件记录",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysFile/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取文件记录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"文件管理"
|
|
],
|
|
"summary": "获取文件记录",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "文件ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新文件记录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"文件管理"
|
|
],
|
|
"summary": "更新文件记录",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "文件ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "文件信息",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysFile"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除文件记录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"文件管理"
|
|
],
|
|
"summary": "删除文件记录",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "文件ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysJob": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "创建新的定时任务信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"定时任务"
|
|
],
|
|
"summary": "创建定时任务",
|
|
"parameters": [
|
|
{
|
|
"description": "定时任务信息",
|
|
"name": "job",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysJob"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysJob/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除任务",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"定时任务"
|
|
],
|
|
"summary": "批量删除任务",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysJob/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询定时任务列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"定时任务"
|
|
],
|
|
"summary": "条件查询定时任务",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "query",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysJob/list/ids": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量查询定时任务",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"定时任务"
|
|
],
|
|
"summary": "批量查询定时任务",
|
|
"parameters": [
|
|
{
|
|
"description": "定时任务ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysJob/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取定时任务详细信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"定时任务"
|
|
],
|
|
"summary": "获取定时任务",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "定时任务ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新定时任务信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"定时任务"
|
|
],
|
|
"summary": "更新定时任务",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "定时任务ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "定时任务信息",
|
|
"name": "job",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysJob"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除定时任务信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"定时任务"
|
|
],
|
|
"summary": "删除定时任务",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "定时任务ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysMenu": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "创建新菜单",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"菜单管理"
|
|
],
|
|
"summary": "创建菜单",
|
|
"parameters": [
|
|
{
|
|
"description": "菜单信息",
|
|
"name": "menu",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysMenu"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysMenu/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询菜单列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"菜单管理"
|
|
],
|
|
"summary": "条件查询菜单",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "query",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysMenu/ids": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除菜单",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"菜单管理"
|
|
],
|
|
"summary": "批量删除菜单",
|
|
"parameters": [
|
|
{
|
|
"description": "菜单ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysMenu/list/ids": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量查询菜单",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"菜单管理"
|
|
],
|
|
"summary": "批量查询菜单",
|
|
"parameters": [
|
|
{
|
|
"description": "菜单ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysMenu/user": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "获取当前用户的菜单列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"菜单管理"
|
|
],
|
|
"summary": "获取用户菜单",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysMenu/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取菜单信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"菜单管理"
|
|
],
|
|
"summary": "获取菜单",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "菜单ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新菜单信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"菜单管理"
|
|
],
|
|
"summary": "更新菜单",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "菜单ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "菜单信息",
|
|
"name": "menu",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysMenu"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除菜单",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"菜单管理"
|
|
],
|
|
"summary": "删除菜单",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "菜单ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysNotice": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "创建新的通知公告信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"通知管理"
|
|
],
|
|
"summary": "创建通知公告",
|
|
"parameters": [
|
|
{
|
|
"description": "通知公告信息",
|
|
"name": "notice",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysNotice"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysNotice/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除通知",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"通知管理"
|
|
],
|
|
"summary": "批量删除通知",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysNotice/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询通知公告列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"通知管理"
|
|
],
|
|
"summary": "条件查询通知公告",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "query",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysNotice/list/ids": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量查询通知公告",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"通知管理"
|
|
],
|
|
"summary": "批量查询通知公告",
|
|
"parameters": [
|
|
{
|
|
"description": "通知公告ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysNotice/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取通知公告详细信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"通知管理"
|
|
],
|
|
"summary": "获取通知公告",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "通知公告ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新通知公告信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"通知管理"
|
|
],
|
|
"summary": "更新通知公告",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "通知公告ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "通知公告信息",
|
|
"name": "notice",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysNotice"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除通知公告信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"通知管理"
|
|
],
|
|
"summary": "删除通知公告",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "通知公告ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysOperLog": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "创建新的操作日志信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"操作日志"
|
|
],
|
|
"summary": "创建操作日志",
|
|
"parameters": [
|
|
{
|
|
"description": "操作日志信息",
|
|
"name": "operLog",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysOperLog"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysOperLog/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除操作日志",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"操作日志"
|
|
],
|
|
"summary": "批量删除操作日志",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysOperLog/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询操作日志列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"操作日志"
|
|
],
|
|
"summary": "条件查询操作日志",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "query",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysOperLog/list/ids": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量查询操作日志",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"操作日志"
|
|
],
|
|
"summary": "批量查询操作日志",
|
|
"parameters": [
|
|
{
|
|
"description": "操作日志ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysOperLog/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取操作日志详细信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"操作日志"
|
|
],
|
|
"summary": "获取操作日志",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "操作日志ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新操作日志信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"操作日志"
|
|
],
|
|
"summary": "更新操作日志",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "操作日志ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "操作日志信息",
|
|
"name": "operLog",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysOperLog"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除操作日志信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"操作日志"
|
|
],
|
|
"summary": "删除操作日志",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "操作日志ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysPost": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建岗位",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"岗位管理"
|
|
],
|
|
"summary": "创建岗位",
|
|
"parameters": [
|
|
{
|
|
"description": "岗位信息",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysPost"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysPost/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除岗位",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"岗位管理"
|
|
],
|
|
"summary": "批量删除岗位",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysPost/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询岗位列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"岗位管理"
|
|
],
|
|
"summary": "条件查询岗位",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysPost/list": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表获取岗位列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"岗位管理"
|
|
],
|
|
"summary": "批量获取岗位",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysPost/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取岗位信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"岗位管理"
|
|
],
|
|
"summary": "获取岗位信息",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "岗位ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新岗位信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"岗位管理"
|
|
],
|
|
"summary": "更新岗位",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "岗位ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "岗位信息",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysPost"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除岗位",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"岗位管理"
|
|
],
|
|
"summary": "删除岗位",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "岗位ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysRole": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "创建新角色",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "创建角色",
|
|
"parameters": [
|
|
{
|
|
"description": "角色信息",
|
|
"name": "role",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysRole"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysRole/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除角色",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "批量删除角色",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysRole/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询角色列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "条件查询角色",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "query",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysRole/list/ids": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量查询角色",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "批量查询角色",
|
|
"parameters": [
|
|
{
|
|
"description": "角色ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysRole/user": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "获取指定用户的角色列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "获取用户角色",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysRole/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取角色信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "获取角色",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "角色ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新角色信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "更新角色",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "角色ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "角色信息",
|
|
"name": "role",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysRole"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除角色",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "删除角色",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "角色ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysRole/{id}/menus": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "获取指定角色的菜单列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "获取角色菜单",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "角色ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "为角色分配菜单权限",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"角色管理"
|
|
],
|
|
"summary": "分配菜单权限",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "角色ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "菜单ID列表",
|
|
"name": "menuIds",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysUser": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "创建新用户",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "创建用户",
|
|
"parameters": [
|
|
{
|
|
"description": "用户信息",
|
|
"name": "user",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysUser"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysUser/batch": {
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量删除用户",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "批量删除用户",
|
|
"parameters": [
|
|
{
|
|
"description": "ID列表",
|
|
"name": "data",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Payload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysUser/condition": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据条件查询用户列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "条件查询用户",
|
|
"parameters": [
|
|
{
|
|
"description": "查询条件",
|
|
"name": "query",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/types.Params"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysUser/list/ids": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID列表批量查询用户",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "批量查询用户",
|
|
"parameters": [
|
|
{
|
|
"description": "用户ID列表",
|
|
"name": "ids",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysUser/logout": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "用户退出登录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "用户登出",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysUser/me": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "获取当前登录用户的详细信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "获取当前用户信息",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/sysUser/{id}": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID获取用户信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "获取用户",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "用户ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID更新用户信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "更新用户",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "用户ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "用户信息",
|
|
"name": "user",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/model.SysUser"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"security": [
|
|
{
|
|
"BearerAuth": []
|
|
}
|
|
],
|
|
"description": "根据ID删除用户",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "删除用户",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "用户ID",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/user/login": {
|
|
"post": {
|
|
"description": "用户登录接口",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "用户登录",
|
|
"parameters": [
|
|
{
|
|
"description": "用户登录信息",
|
|
"name": "user",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/service.UserLoginRequest"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v1/user/register": {
|
|
"post": {
|
|
"description": "新用户注册接口",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"用户管理"
|
|
],
|
|
"summary": "用户注册",
|
|
"parameters": [
|
|
{
|
|
"description": "用户注册信息",
|
|
"name": "user",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/service.UserRegisterRequest"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/serializer.Response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/ping": {
|
|
"get": {
|
|
"description": "Get a message from the server",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"summary": "Get a message",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"model.MenuMeta": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"$ref": "#/definitions/model.Title"
|
|
}
|
|
}
|
|
},
|
|
"model.SysConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"configID": {
|
|
"type": "string"
|
|
},
|
|
"configKey": {
|
|
"type": "string"
|
|
},
|
|
"configName": {
|
|
"type": "string"
|
|
},
|
|
"configType": {
|
|
"type": "string"
|
|
},
|
|
"configValue": {
|
|
"type": "string"
|
|
},
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysDept": {
|
|
"type": "object",
|
|
"properties": {
|
|
"ancestors": {
|
|
"type": "string"
|
|
},
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"delFlag": {
|
|
"type": "string"
|
|
},
|
|
"deptId": {
|
|
"type": "string"
|
|
},
|
|
"deptName": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"leader": {
|
|
"type": "string"
|
|
},
|
|
"orderNum": {
|
|
"type": "integer"
|
|
},
|
|
"parentId": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysDictData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"cssClass": {
|
|
"type": "string"
|
|
},
|
|
"dictCode": {
|
|
"type": "string"
|
|
},
|
|
"dictLabel": {
|
|
"type": "string"
|
|
},
|
|
"dictSort": {
|
|
"type": "integer"
|
|
},
|
|
"dictType": {
|
|
"type": "string"
|
|
},
|
|
"dictValue": {
|
|
"type": "string"
|
|
},
|
|
"isDefault": {
|
|
"type": "string"
|
|
},
|
|
"listClass": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysDictType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"dictId": {
|
|
"type": "string"
|
|
},
|
|
"dictName": {
|
|
"type": "string"
|
|
},
|
|
"dictType": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysFile": {
|
|
"type": "object",
|
|
"properties": {
|
|
"businessId": {
|
|
"type": "string"
|
|
},
|
|
"businessType": {
|
|
"type": "string"
|
|
},
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"delFlag": {
|
|
"type": "string"
|
|
},
|
|
"fileKey": {
|
|
"type": "string"
|
|
},
|
|
"fileName": {
|
|
"type": "string"
|
|
},
|
|
"fileSize": {
|
|
"type": "integer"
|
|
},
|
|
"fileType": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"revision": {
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysJob": {
|
|
"type": "object",
|
|
"properties": {
|
|
"concurrent": {
|
|
"type": "string"
|
|
},
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"cronExpression": {
|
|
"type": "string"
|
|
},
|
|
"invokeTarget": {
|
|
"type": "string"
|
|
},
|
|
"jobGroup": {
|
|
"type": "string"
|
|
},
|
|
"jobId": {
|
|
"type": "string"
|
|
},
|
|
"jobName": {
|
|
"type": "string"
|
|
},
|
|
"misfirePolicy": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysMenu": {
|
|
"type": "object",
|
|
"properties": {
|
|
"children": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/model.SysMenu"
|
|
}
|
|
},
|
|
"component": {
|
|
"type": "string"
|
|
},
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"en_US": {
|
|
"type": "string"
|
|
},
|
|
"frameBlank": {
|
|
"type": "boolean"
|
|
},
|
|
"frameSrc": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"isCache": {
|
|
"type": "string"
|
|
},
|
|
"isFrame": {
|
|
"type": "string"
|
|
},
|
|
"menuID": {
|
|
"type": "string"
|
|
},
|
|
"menuType": {
|
|
"type": "string"
|
|
},
|
|
"meta": {
|
|
"$ref": "#/definitions/model.MenuMeta"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"orderNum": {
|
|
"type": "integer"
|
|
},
|
|
"parentID": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"perms": {
|
|
"type": "string"
|
|
},
|
|
"query": {
|
|
"type": "string"
|
|
},
|
|
"redirect": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
},
|
|
"visible": {
|
|
"type": "string"
|
|
},
|
|
"zh_CN": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysNotice": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"noticeContent": {
|
|
"type": "string"
|
|
},
|
|
"noticeId": {
|
|
"type": "string"
|
|
},
|
|
"noticeTitle": {
|
|
"type": "string"
|
|
},
|
|
"noticeType": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysOperLog": {
|
|
"type": "object",
|
|
"properties": {
|
|
"businessType": {
|
|
"type": "integer"
|
|
},
|
|
"deptName": {
|
|
"type": "string"
|
|
},
|
|
"errorMsg": {
|
|
"type": "string"
|
|
},
|
|
"jsonResult": {
|
|
"type": "string"
|
|
},
|
|
"method": {
|
|
"type": "string"
|
|
},
|
|
"operIP": {
|
|
"type": "string"
|
|
},
|
|
"operId": {
|
|
"type": "string"
|
|
},
|
|
"operLocation": {
|
|
"type": "string"
|
|
},
|
|
"operName": {
|
|
"type": "string"
|
|
},
|
|
"operParam": {
|
|
"type": "string"
|
|
},
|
|
"operTime": {
|
|
"type": "string"
|
|
},
|
|
"operUrl": {
|
|
"type": "string"
|
|
},
|
|
"operatorType": {
|
|
"type": "integer"
|
|
},
|
|
"requestMethod": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "integer"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"trackId": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysPost": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"postCode": {
|
|
"type": "string"
|
|
},
|
|
"postId": {
|
|
"type": "string"
|
|
},
|
|
"postName": {
|
|
"type": "string"
|
|
},
|
|
"postSort": {
|
|
"type": "integer"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysRole": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"dataScope": {
|
|
"type": "string"
|
|
},
|
|
"delFlag": {
|
|
"type": "string"
|
|
},
|
|
"deptCheckStrictly": {
|
|
"type": "boolean"
|
|
},
|
|
"menuCheckStrictly": {
|
|
"type": "boolean"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"roleId": {
|
|
"type": "string"
|
|
},
|
|
"roleKey": {
|
|
"type": "string"
|
|
},
|
|
"roleName": {
|
|
"type": "string"
|
|
},
|
|
"roleSort": {
|
|
"type": "integer"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.SysUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"createBy": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string"
|
|
},
|
|
"delFlag": {
|
|
"type": "string"
|
|
},
|
|
"deptId": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"gender": {
|
|
"type": "string"
|
|
},
|
|
"loginDate": {
|
|
"type": "string"
|
|
},
|
|
"loginIP": {
|
|
"type": "string"
|
|
},
|
|
"nickName": {
|
|
"type": "string"
|
|
},
|
|
"passWord": {
|
|
"type": "string"
|
|
},
|
|
"phoneNumber": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"resourceInvoke": {
|
|
"type": "string"
|
|
},
|
|
"selectKey": {
|
|
"type": "string"
|
|
},
|
|
"solt": {
|
|
"type": "integer"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updateBy": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
},
|
|
"userId": {
|
|
"type": "string"
|
|
},
|
|
"userName": {
|
|
"type": "string"
|
|
},
|
|
"userType": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.Title": {
|
|
"type": "object",
|
|
"properties": {
|
|
"en_US": {
|
|
"type": "string"
|
|
},
|
|
"zh_CN": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"serializer.Response": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "integer"
|
|
},
|
|
"data": {},
|
|
"error": {
|
|
"type": "string"
|
|
},
|
|
"msg": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"service.UserLoginRequest": {
|
|
"type": "object",
|
|
"required": [
|
|
"account",
|
|
"checked",
|
|
"password"
|
|
],
|
|
"properties": {
|
|
"account": {
|
|
"type": "string",
|
|
"maxLength": 30,
|
|
"minLength": 5
|
|
},
|
|
"checked": {
|
|
"type": "boolean"
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"maxLength": 40,
|
|
"minLength": 8
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"verifyCode": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"service.UserRegisterRequest": {
|
|
"type": "object",
|
|
"required": [
|
|
"nickName",
|
|
"passWord",
|
|
"passWordConfirm",
|
|
"userName"
|
|
],
|
|
"properties": {
|
|
"nickName": {
|
|
"type": "string",
|
|
"maxLength": 30,
|
|
"minLength": 2
|
|
},
|
|
"passWord": {
|
|
"type": "string",
|
|
"maxLength": 40,
|
|
"minLength": 8
|
|
},
|
|
"passWordConfirm": {
|
|
"type": "string",
|
|
"maxLength": 40,
|
|
"minLength": 8
|
|
},
|
|
"userName": {
|
|
"type": "string",
|
|
"maxLength": 30,
|
|
"minLength": 5
|
|
}
|
|
}
|
|
},
|
|
"types.Column": {
|
|
"type": "object",
|
|
"properties": {
|
|
"exp": {
|
|
"description": "expressions, which default to = when the value is null, have =, !=, \u003e, \u003e=, \u003c, \u003c=, like, in",
|
|
"type": "string"
|
|
},
|
|
"logic": {
|
|
"description": "logical type, defaults to and when the value is null, with \u0026(and), ||(or)",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "column name",
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"description": "column value"
|
|
}
|
|
}
|
|
},
|
|
"types.Params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"columns": {
|
|
"description": "not required",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/types.Column"
|
|
}
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 10
|
|
},
|
|
"page": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"sort": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"types.Payload": {
|
|
"type": "object",
|
|
"properties": {
|
|
"ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"securityDefinitions": {
|
|
"BearerAuth": {
|
|
"type": "apiKey",
|
|
"name": "Authorization",
|
|
"in": "header"
|
|
}
|
|
}
|
|
}
|