// Package docs Code generated by swaggo/swag. DO NOT EDIT package docs import "github.com/swaggo/swag" const docTemplate = `{ "schemes": {{ marshal .Schemes }}, "swagger": "2.0", "info": { "description": "{{escape .Description}}", "title": "{{.Title}}", "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": "{{.Version}}" }, "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { "/cron/hand": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "新增/更新任务", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "任务管理" ], "summary": "新增/更新任务", "parameters": [ { "description": "新增/更新任务", "name": "req", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.CronJobUpdateRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "type": "string" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/cron/list": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "定时任务列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "任务管理" ], "summary": "定时任务列表", "parameters": [ { "description": "定时任务", "name": "req", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.CronListRequest" } } ], "responses": { "200": { "description": "定时任务", "schema": { "$ref": "#/definitions/schemas.CronListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/cron/loglist": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "查看日志运行记录", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "任务管理" ], "summary": "查看日志运行记录", "parameters": [ { "description": "req", "name": "req", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.CronJobLogListRequest" } } ], "responses": { "200": { "description": "res", "schema": { "$ref": "#/definitions/schemas.CronJobLog" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/cron/restart": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "重启定时任务", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "任务管理" ], "summary": "重启定时任务", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "type": "string" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/cron/stop": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "停止所有任务", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "任务管理" ], "summary": "停止所有任务", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "type": "string" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/cron/{id}": { "put": { "security": [ { "ApiKeyAuth": [] } ], "description": "启用/停用任务", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "任务管理" ], "summary": "启用/停用任务", "parameters": [ { "type": "string", "description": "id", "name": "id", "in": "path", "required": true }, { "type": "integer", "description": "启用状态(1:启用,0:停用)", "name": "enabled", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "type": "string" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } }, "delete": { "security": [ { "ApiKeyAuth": [] } ], "description": "删除定时任务", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "任务管理" ], "summary": "删除定时任务", "parameters": [ { "type": "string", "description": "id(任务ID)", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "type": "string" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/pms/menus": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "获取管理后台菜单列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限模块" ], "summary": "获取菜单列表", "parameters": [ { "description": "req", "name": "role", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.MenuListRequest" } } ], "responses": { "200": { "description": "菜单信息", "schema": { "$ref": "#/definitions/schemas.MenuItems" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/pms/menus/{id}": { "put": { "security": [ { "ApiKeyAuth": [] } ], "description": "启用停用菜单", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限模块" ], "summary": "启用停用菜单", "parameters": [ { "type": "string", "description": "id", "name": "id", "in": "path", "required": true }, { "type": "integer", "description": "启用状态(1:启用,0:停用)", "name": "status", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "type": "string" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/pms/permission": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "根据用户Session和权限type获取权限列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限模块" ], "summary": "获取权限列表", "parameters": [ { "type": "string", "description": "all-全部 button-按钮,route-路由,menu-菜单,api-接口", "name": "type", "in": "query" } ], "responses": { "200": { "description": "权限列表", "schema": { "type": "array", "items": { "type": "string" } } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/pms/permission/all": { "get": { "security": [ { "ApiKeyAuth": [] }, { "ApiKeyAuth": [] } ], "description": "获取所有权限", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限模块" ], "summary": "获取所有权限", "responses": { "200": { "description": "权限列表", "schema": { "$ref": "#/definitions/schemas.PermissionItems" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/pms/permission/assign/{role_id}": { "put": { "security": [ { "ApiKeyAuth": [] } ], "description": "为指定角色分配权限", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限模块" ], "summary": "分配角色权限", "parameters": [ { "type": "integer", "description": "角色ID", "name": "role_id", "in": "path", "required": true }, { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "description": "权限ID数组", "name": "permission_ids", "in": "query", "required": true } ], "responses": { "200": { "description": "权限分配成功", "schema": { "$ref": "#/definitions/utils.Response" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/pms/permission/role": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "获取角色权限", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限模块" ], "summary": "获取角色权限", "parameters": [ { "type": "integer", "description": "角色ID", "name": "role_id", "in": "query", "required": true }, { "type": "string", "description": "all-全部 button-按钮,route-路由,menu-菜单,api-接口", "name": "type", "in": "query" } ], "responses": { "200": { "description": "权限列表", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "integer" } } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/pms/routes": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "根据用户Session获取侧边栏菜单权限", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限模块" ], "summary": "侧边菜单权限", "responses": { "200": { "description": "菜单信息", "schema": { "$ref": "#/definitions/schemas.MenuItems" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/system/log/download": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "下载指定的日志文件内容", "produces": [ "application/octet-stream" ], "tags": [ "系统管理" ], "summary": "下载日志文件", "parameters": [ { "type": "string", "description": "日志文件名", "name": "filename", "in": "query", "required": true } ], "responses": { "200": { "description": "日志文件内容", "schema": { "type": "file" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/system/log/login/list": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "系统登录日志", "produces": [ "application/json" ], "tags": [ "系统管理" ], "summary": "系统登录日志", "parameters": [ { "description": "req", "name": "role", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.LoginLogListRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/schemas.LoginLog" } } } ] } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/system/log/view": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "返回指定日志文件的内容", "produces": [ "application/json" ], "tags": [ "系统管理" ], "summary": "查看日志文件内容", "parameters": [ { "type": "string", "description": "日志文件名", "name": "filename", "in": "query", "required": true }, { "type": "integer", "description": "返回行数,默认100行", "name": "lines", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "type": "string" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/user/assign": { "put": { "security": [ { "ApiKeyAuth": [] } ], "description": "用户角色分配", "tags": [ "用户管理" ], "summary": "用户角色分配", "parameters": [ { "type": "string", "description": "用户ID", "name": "user_id", "in": "query", "required": true }, { "type": "integer", "description": "角色ID", "name": "role_id", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.Response" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/user/getinfo": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "获取用户信息", "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "获取用户信息", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/schemas.UserInfo" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/user/list": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "获取用户列表", "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "获取用户列表", "parameters": [ { "description": "请求体", "name": "user", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.UserListRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/schemas.UserListResponse" } } } ] } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/user/login": { "post": { "description": "用户登录验证", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "用户登录", "parameters": [ { "description": "req", "name": "login", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.LoginRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/schemas.UserResponse" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/utils.Response" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/user/register": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "创建用户", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "创建用户", "parameters": [ { "description": "用户信息", "name": "user", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.CreateUser" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/schemas.UserResponse" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/user/role": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "创建角色", "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "创建角色", "parameters": [ { "description": "req", "name": "role", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.CreateRole" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.Response" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/user/role/{id}": { "put": { "security": [ { "ApiKeyAuth": [] } ], "description": "禁用/启用角色", "tags": [ "用户管理" ], "summary": "禁用/启用角色", "parameters": [ { "type": "string", "description": "角色ID", "name": "id", "in": "path", "required": true }, { "type": "integer", "description": "启用状态(1:启用,0:停用)", "name": "status", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.Response" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/user/rolelist": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "获取角色列表", "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "获取角色列表", "parameters": [ { "description": "req", "name": "role", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.RoleListRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/schemas.RoleResponseList" } } } ] } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/user/update": { "put": { "security": [ { "ApiKeyAuth": [] } ], "description": "更新用户信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "更新用户信息", "parameters": [ { "description": "用户信息", "name": "user", "in": "body", "required": true, "schema": { "$ref": "#/definitions/schemas.UpdateUser" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.Response" }, { "type": "object", "properties": { "data": { "type": "string" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } }, "/user/{id}": { "put": { "security": [ { "ApiKeyAuth": [] } ], "description": "禁用/启用用户", "tags": [ "用户管理" ], "summary": "禁用/启用用户", "parameters": [ { "type": "string", "description": "用户ID", "name": "id", "in": "path", "required": true }, { "type": "integer", "description": "启用状态(1:启用,0:停用)", "name": "status", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.Response" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/utils.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/utils.Response" } } } } } }, "definitions": { "schemas.CreateRole": { "type": "object", "required": [ "name" ], "properties": { "description": { "type": "string" }, "id": { "type": "integer" }, "name": { "type": "string" } } }, "schemas.CreateUser": { "type": "object", "required": [ "email", "nickname", "password" ], "properties": { "avatar": { "description": "Avatar 头像URL", "type": "string" }, "email": { "description": "Email 邮箱地址,用于联系和找回密码", "type": "string" }, "id": { "description": "ID 用户ID,数据库自动生成, 不传", "type": "integer" }, "last_login_time": { "description": "LastLoginTime 最后登录时间,系统生成", "allOf": [ { "$ref": "#/definitions/schemas.CustomTime" } ] }, "nickname": { "description": "Nickname 用户昵称,显示名称", "type": "string" }, "password": { "description": "Password 密码,将被加密存储", "type": "string" }, "register_time": { "description": "RegisterTime 注册时间,系统生成", "allOf": [ { "$ref": "#/definitions/schemas.CustomTime" } ] }, "rolecode": { "description": "RoleCode 角色编码, 不传, 默认0", "type": "integer" }, "rolename": { "description": "RoleName 角色名称, 不传", "type": "string" }, "sessioncode": { "description": "SessionCode 用户编码 系统生成", "type": "string" }, "status": { "description": "Status 用户状态,不传", "type": "integer" }, "username": { "description": "Username 用户名,系统唯一标识,系统生成, 不传", "type": "string" } } }, "schemas.CronJob": { "type": "object", "properties": { "create_time": { "description": "创建时间", "allOf": [ { "$ref": "#/definitions/schemas.CustomTime" } ] }, "description": { "description": "任务描述", "type": "string" }, "enabled": { "description": "任务是否启用", "type": "integer" }, "handler": { "description": "任务处理程序", "type": "string" }, "id": { "description": "任务ID", "type": "integer" }, "name": { "description": "任务名称", "type": "string" }, "schedule": { "description": "任务计划", "type": "string" }, "update_time": { "description": "更新时间", "allOf": [ { "$ref": "#/definitions/schemas.CustomTime" } ] } } }, "schemas.CronJobLog": { "type": "object", "properties": { "end_time": { "$ref": "#/definitions/schemas.CustomTime" }, "handler": { "type": "string" }, "id": { "type": "integer" }, "job_id": { "type": "integer" }, "message": { "type": "string" }, "name": { "type": "string" }, "schedule": { "type": "string" }, "start_time": { "$ref": "#/definitions/schemas.CustomTime" }, "status": { "type": "string" } } }, "schemas.CronJobLogListRequest": { "type": "object", "required": [ "id", "page_index", "page_size" ], "properties": { "end_date": { "$ref": "#/definitions/schemas.CustomTime" }, "id": { "type": "integer" }, "page_index": { "type": "integer" }, "page_size": { "type": "integer" }, "start_date": { "$ref": "#/definitions/schemas.CustomTime" } } }, "schemas.CronJobUpdateRequest": { "type": "object", "properties": { "description": { "description": "任务是否启用\nEnabled int ` + "`" + `json:\"enabled\" db:\"enabled\"` + "`" + `\n任务描述", "type": "string" }, "handler": { "description": "任务处理程序", "type": "string" }, "id": { "description": "任务ID 传参代表修改 不传参代表新增", "type": "integer" }, "name": { "description": "任务名称", "type": "string" }, "schedule": { "description": "任务计划", "type": "string" } } }, "schemas.CronListRequest": { "type": "object", "required": [ "page_index", "page_size" ], "properties": { "end_date": { "$ref": "#/definitions/schemas.CustomTime" }, "name": { "type": "string" }, "page_index": { "type": "integer" }, "page_size": { "type": "integer" }, "start_date": { "$ref": "#/definitions/schemas.CustomTime" } } }, "schemas.CronListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/schemas.CronJob" } }, "page_index": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" } } }, "schemas.CustomTime": { "type": "object", "properties": { "time": { "type": "string" } } }, "schemas.LoginLog": { "type": "object", "properties": { "create_time": { "$ref": "#/definitions/schemas.CustomTime" }, "failure_reason": { "type": "string" }, "id": { "type": "integer" }, "ip_address": { "type": "string" }, "isdel": { "type": "integer" }, "location": { "type": "string" }, "login_time": { "$ref": "#/definitions/schemas.CustomTime" }, "status": { "type": "integer" }, "update_time": { "$ref": "#/definitions/schemas.CustomTime" }, "user_agent": { "type": "string" }, "user_id": { "type": "integer" }, "username": { "type": "string" } } }, "schemas.LoginLogListRequest": { "type": "object", "required": [ "page_index", "page_size" ], "properties": { "end_date": { "$ref": "#/definitions/schemas.CustomTime" }, "page_index": { "type": "integer" }, "page_size": { "type": "integer" }, "start_date": { "$ref": "#/definitions/schemas.CustomTime" } } }, "schemas.LoginRequest": { "type": "object", "required": [ "password", "username" ], "properties": { "password": { "description": "Password 密码,用于登录验证", "type": "string" }, "username": { "description": "Username 用户名,用于登录验证", "type": "string" } } }, "schemas.MenuItems": { "type": "object", "properties": { "component": { "description": "组件名称", "type": "string" }, "create_time": { "description": "创建时间", "allOf": [ { "$ref": "#/definitions/schemas.CustomTime" } ] }, "icon": { "description": "菜单项图标", "type": "string" }, "id": { "description": "ID 菜单项ID", "type": "integer" }, "parent_id": { "description": "父级菜单项ID", "type": "integer" }, "path": { "description": "菜单项路径", "type": "string" }, "sort": { "description": "排序", "type": "integer" }, "status": { "description": "状态", "type": "integer" }, "title": { "description": "菜单项标题", "type": "string" }, "visible": { "description": "是否可见", "type": "integer" } } }, "schemas.MenuListRequest": { "type": "object", "required": [ "page_index", "page_size" ], "properties": { "page_index": { "type": "integer" }, "page_size": { "type": "integer" } } }, "schemas.PermissionItems": { "type": "object", "properties": { "action": { "type": "string" }, "children": { "type": "array", "items": { "$ref": "#/definitions/schemas.PermissionItems" } }, "id": { "type": "integer" }, "module": { "type": "string" }, "name": { "type": "string" }, "parent_id": { "type": "integer" }, "path": { "type": "string" }, "sort": { "type": "integer" }, "status": { "type": "integer" }, "title": { "type": "string" }, "type": { "type": "string" } } }, "schemas.RoleListRequest": { "type": "object", "required": [ "page_index", "page_size" ], "properties": { "end_date": { "$ref": "#/definitions/schemas.CustomTime" }, "page_index": { "type": "integer" }, "page_size": { "type": "integer" }, "start_date": { "$ref": "#/definitions/schemas.CustomTime" } } }, "schemas.RoleResponseList": { "type": "object", "properties": { "code": { "description": "Code 角色编码", "type": "string" }, "create_time": { "description": "CreateTime 创建时间", "allOf": [ { "$ref": "#/definitions/schemas.CustomTime" } ] }, "description": { "description": "Desc 角色描述", "type": "string" }, "id": { "description": "ID 角色ID", "type": "integer" }, "name": { "description": "Name 角色名称", "type": "string" }, "status": { "description": "Status 角色状态", "type": "integer" } } }, "schemas.UpdateUser": { "type": "object", "required": [ "id" ], "properties": { "avatar": { "description": "Avatar 头像URL", "type": "string" }, "email": { "description": "Email 邮箱地址,用于联系和找回密码", "type": "string" }, "id": { "description": "ID 用户编码,用于定位用户", "type": "integer" }, "nickname": { "description": "Nickname 用户昵称,显示名称", "type": "string" }, "password": { "description": "Password 密码,将被加密存储", "type": "string" } } }, "schemas.UserInfo": { "type": "object", "required": [ "email", "nickname", "password" ], "properties": { "avatar": { "description": "头像URL", "type": "string" }, "email": { "description": "邮箱地址", "type": "string" }, "id": { "description": "用户ID", "type": "integer" }, "last_login_time": { "description": "最后登录时间", "allOf": [ { "$ref": "#/definitions/schemas.CustomTime" } ] }, "nickname": { "description": "昵称", "type": "string" }, "password": { "description": "密码", "type": "string" }, "register_time": { "description": "注册时间", "allOf": [ { "$ref": "#/definitions/schemas.CustomTime" } ] }, "rolecode": { "description": "角色编码", "type": "integer" }, "rolename": { "description": "角色名称", "type": "string" }, "sessioncode": { "description": "用户编码", "type": "string" }, "status": { "description": "用户状态", "type": "integer" }, "username": { "description": "用户名", "type": "string" } } }, "schemas.UserListRequest": { "type": "object", "required": [ "page_index", "page_size" ], "properties": { "end_time": { "$ref": "#/definitions/schemas.CustomTime" }, "nickname": { "description": "昵称(用户名)", "type": "string" }, "page_index": { "type": "integer" }, "page_size": { "type": "integer" }, "start_time": { "$ref": "#/definitions/schemas.CustomTime" } } }, "schemas.UserListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/schemas.UserInfo" } }, "page_index": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" } } }, "schemas.UserResponse": { "type": "object", "properties": { "authorization": { "type": "string" } } }, "utils.Response": { "type": "object", "properties": { "data": {}, "message": { "type": "string" }, "status": { "type": "integer" } } } }, "securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "name": "X-Access-Token", "in": "header" } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "1.0", Host: "localhost:8080", BasePath: "/quin", Schemes: []string{}, Title: "Quincy_admin", Description: "打造一款综合性接口平台.", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", RightDelim: "}}", } func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) }