{ "swagger": "2.0", "info": { "description": "artificial intelligence message push service", "title": "AiXinGe API", "contact": {}, "version": "1.0.0" }, "paths": { "/v1/app/create": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Application" ], "summary": "创建应用", "parameters": [ { "description": "创建应用", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/message.Application" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"应用创建成功\"}", "schema": { "type": "string" } } } } }, "/v1/app/delete": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Application" ], "summary": "删除应用", "parameters": [ { "description": "ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/v1/app/get": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Application" ], "summary": "根据id获取应用", "parameters": [ { "description": "应用ID", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/app/update": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Application" ], "summary": "更新应用信息", "parameters": [ { "description": "应用信息", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/message.Application" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } } } } }, "/v1/channel-template/create": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ChannelTemplate" ], "summary": "创建渠道模板", "parameters": [ { "description": "创建渠道模板", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/message.ChannelTemplate" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"渠道模板创建成功\"}", "schema": { "type": "string" } } } } }, "/v1/channel-template/delete": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ChannelTemplate" ], "summary": "删除渠道模板", "parameters": [ { "description": "ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/v1/channel/create": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Channel" ], "summary": "创建消息渠道", "parameters": [ { "description": "创建消息渠道", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/message.Channel" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"消息渠道创建成功\"}", "schema": { "type": "string" } } } } }, "/v1/channel/delete": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Channel" ], "summary": "删除消息渠道", "parameters": [ { "description": "ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/v1/channel/get": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Channel" ], "summary": "根据id获取消息渠道", "parameters": [ { "description": "消息渠道ID", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/channel/page": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Channel" ], "summary": "分页获取消息渠道", "parameters": [ { "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.PageInfo" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/channel/update": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Channel" ], "summary": "更新消息渠道", "parameters": [ { "description": "消息渠道", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/message.Channel" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}", "schema": { "type": "string" } } } } }, "/v1/file/download": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/x-www-form-urlencoded" ], "produces": [ "application/octet-stream" ], "tags": [ "File" ], "summary": "文件下载", "parameters": [ { "type": "integer", "description": "主键", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK" } } } }, "/v1/file/upload": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ "File" ], "summary": "文件上传", "parameters": [ { "type": "file", "description": "上传文件", "name": "file", "in": "formData", "required": true } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}", "schema": { "type": "string" } } } } }, "/v1/login": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Base" ], "summary": "用户登录", "parameters": [ { "description": "用户名, 密码, 验证码", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.Login" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}", "schema": { "type": "string" } } } } }, "/v1/mail-log/delete": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "MailLog" ], "summary": "删除邮件日志", "parameters": [ { "description": "ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/v1/mail-log/page": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "MailLog" ], "summary": "分页获取邮件日志", "parameters": [ { "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.PageInfo" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/mail-template/create": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "MailTemplate" ], "summary": "创建邮件模板", "parameters": [ { "description": "创建邮件模板", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/message.MailTemplate" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"邮件模板创建成功\"}", "schema": { "type": "string" } } } } }, "/v1/mail-template/delete": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "MailTemplate" ], "summary": "删除邮件模板", "parameters": [ { "description": "ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/v1/mail-template/get": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "MailTemplate" ], "summary": "根据id获取邮件模板", "parameters": [ { "description": "邮件模板ID", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/mail-template/page": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "MailTemplate" ], "summary": "分页获取邮件模板", "parameters": [ { "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.PageInfo" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/mail-template/update": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "MailTemplate" ], "summary": "更新邮件模板", "parameters": [ { "description": "邮件模板", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/message.MailTemplate" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}", "schema": { "type": "string" } } } } }, "/v1/menu/auth": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Menu" ], "summary": "获取当前登录用户授权菜单", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/menu/create": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Menu" ], "summary": "创建菜单", "parameters": [ { "description": "创建菜单", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/system.Menu" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/menu/delete": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Menu" ], "summary": "删除菜单", "parameters": [ { "description": "ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/v1/menu/get": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Menu" ], "summary": "根据id获取菜单", "parameters": [ { "description": "菜单ID", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/menu/list": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Menu" ], "summary": "获取菜单列表", "parameters": [ { "description": "查询参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.MenuParams" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/menu/list-tree": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Menu" ], "summary": "获取菜单列表树", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/menu/page": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Menu" ], "summary": "分页获取菜单列表", "parameters": [ { "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.PageInfo" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/menu/update": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Menu" ], "summary": "更新菜单信息", "parameters": [ { "description": "菜单信息", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/system.Menu" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}", "schema": { "type": "string" } } } } }, "/v1/refresh-token": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Base" ], "summary": "刷新Token", "parameters": [ { "description": "刷新票据", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.RefreshToken" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"刷新Token成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/assign-menu": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "角色分配菜单", "parameters": [ { "description": "角色ID、菜单ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.RoleMenuParams" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/assign-user": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "角色分配用户", "parameters": [ { "description": "角色ID、用户ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.RoleUserParams" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/batch-get": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "批量根据id获取角色", "parameters": [ { "description": "角色ID列表", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/create": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "创建角色", "parameters": [ { "description": "创建角色", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/system.Role" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/delete": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "删除角色", "parameters": [ { "description": "ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/get": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "根据id获取角色", "parameters": [ { "description": "角色ID", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/list": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "获取角色列表", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/page": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "分页获取角色列表", "parameters": [ { "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.PageInfo" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/selected-menus": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "根据id获取角色已分配的菜单详细信息列表", "parameters": [ { "description": "角色ID", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/selected-users": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "根据id获取角色已分配的用户ID列表", "parameters": [ { "description": "角色ID", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/role/update": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "更新角色信息", "parameters": [ { "description": "角色信息", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/system.Role" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}", "schema": { "type": "string" } } } } }, "/v1/user/assign-role": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "用户分配角色", "parameters": [ { "description": "用户ID、角色ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UserRoleParams" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/user/change-password": { "post": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "用户修改密码", "parameters": [ { "description": "用户名, 原密码, 新密码", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.ChangePasswordStruct" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", "schema": { "type": "string" } } } } }, "/v1/user/create": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "创建用户", "parameters": [ { "description": "创建User", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UserCreate" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/user/delete": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "删除用户", "parameters": [ { "description": "ID集合", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/v1/user/get": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "根据id获取用户", "parameters": [ { "description": "用户ID", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/user/list": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "获取用户列表", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/user/page": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "分页获取用户列表", "parameters": [ { "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.PageInfo" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/user/selected-roles": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "根据id获取用户已分配的角色ID列表", "parameters": [ { "description": "用户ID", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/v1/user/update": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "更新用户信息", "parameters": [ { "description": "用户信息", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/system.User" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}", "schema": { "type": "string" } } } } } }, "definitions": { "common.Attachment": { "type": "object", "properties": { "fileId": { "description": "文件 ID", "type": "string" }, "fileName": { "description": "文件名称", "type": "string" } } }, "message.Application": { "type": "object", "properties": { "appKey": { "description": "应用 ID", "type": "string" }, "appSecret": { "description": "应用密钥", "type": "string" }, "createdAt": { "description": "创建时间", "type": "string" }, "id": { "description": "主键ID", "type": "string" }, "name": { "description": "应用名称", "type": "string" }, "remark": { "description": "备注", "type": "string" }, "status": { "description": "状态,1、正常 2、禁用", "type": "integer" }, "updatedAt": { "description": "更新时间", "type": "string" } } }, "message.Channel": { "type": "object", "properties": { "config": { "description": "消息渠道配置(JSON)", "$ref": "#/definitions/message.ChannelConfig" }, "createdAt": { "description": "创建时间", "type": "string" }, "id": { "description": "主键ID", "type": "string" }, "name": { "description": "消息渠道名称", "type": "string" }, "provider": { "description": "消息服务提供商", "type": "integer" }, "remark": { "description": "备注", "type": "string" }, "status": { "description": "状态 1、正常 2、禁用", "type": "integer" }, "type": { "description": "消息类型(枚举)", "type": "integer" }, "updatedAt": { "description": "更新时间", "type": "string" }, "weight": { "description": "权重", "type": "integer" } } }, "message.ChannelConfig": { "type": "object", "additionalProperties": true }, "message.ChannelTemplate": { "type": "object", "properties": { "channelId": { "description": "渠道ID", "type": "string" }, "default": { "description": "默认渠道 1、是 2、否", "type": "integer" }, "templateId": { "description": "模板ID", "type": "string" }, "type": { "description": "消息类型(枚举)", "type": "integer" } } }, "message.MailTemplate": { "type": "object", "properties": { "appId": { "description": "应用 ID", "type": "string" }, "attachments": { "description": "附件JSON", "type": "array", "items": { "$ref": "#/definitions/common.Attachment" } }, "content": { "description": "模板内容", "type": "string" }, "createdAt": { "description": "创建时间", "type": "string" }, "id": { "description": "主键ID", "type": "string" }, "name": { "description": "模板名称", "type": "string" }, "remark": { "description": "备注", "type": "string" }, "status": { "description": "状态 1、正常 2、禁用", "type": "integer" }, "type": { "description": "模板类型(1-文本、2-HTML)", "type": "integer" }, "updatedAt": { "description": "更新时间", "type": "string" } } }, "request.ChangePasswordStruct": { "type": "object", "properties": { "newPassword": { "description": "新密码", "type": "string" }, "password": { "description": "密码", "type": "string" }, "username": { "description": "用户名", "type": "string" } } }, "request.GetById": { "type": "object", "properties": { "id": { "description": "主键ID", "type": "string" } } }, "request.IdsReq": { "type": "object", "properties": { "ids": { "description": "ID数组", "type": "array", "items": { "type": "string" } } } }, "request.Login": { "type": "object", "properties": { "password": { "description": "密码", "type": "string" }, "username": { "description": "用户名", "type": "string" } } }, "request.MenuParams": { "type": "object", "properties": { "name": { "description": "菜单名称", "type": "string" } } }, "request.PageInfo": { "type": "object", "properties": { "page": { "description": "页码", "type": "integer" }, "pageSize": { "description": "每页大小", "type": "integer" } } }, "request.RefreshToken": { "type": "object", "properties": { "refreshToken": { "description": "刷新票据", "type": "string" } } }, "request.RoleMenuParams": { "type": "object", "properties": { "id": { "description": "角色ID", "type": "string" }, "menuIds": { "description": "菜单ID集合", "type": "array", "items": { "type": "string" } } } }, "request.RoleUserParams": { "type": "object", "properties": { "id": { "description": "角色ID", "type": "string" }, "userIds": { "description": "用户ID集合", "type": "array", "items": { "type": "string" } } } }, "request.UserCreate": { "type": "object", "properties": { "nickname": { "description": "用户昵称", "type": "string" }, "password": { "description": "用户登录密码", "type": "string" }, "username": { "description": "用户登录名", "type": "string" } } }, "request.UserRoleParams": { "type": "object", "properties": { "id": { "description": "用户ID", "type": "string" }, "roleIds": { "description": "角色ID集合", "type": "array", "items": { "type": "string" } } } }, "system.Menu": { "type": "object", "properties": { "component": { "description": "对应前端文件路径", "type": "string" }, "createdAt": { "description": "创建时间", "type": "string" }, "hidden": { "description": "是否在列表隐藏 1,是 2,否", "type": "integer" }, "icon": { "description": "菜单图标", "type": "string" }, "id": { "description": "主键ID", "type": "string" }, "isFrame": { "description": "Frame 1,是 2,否", "type": "integer" }, "name": { "description": "路由name", "type": "string" }, "noCache": { "description": "不缓存 1,是 2,否", "type": "integer" }, "parentId": { "description": "父菜单ID", "type": "string" }, "path": { "description": "路由path", "type": "string" }, "redirect": { "description": "重定向的路由path", "type": "string" }, "remark": { "description": "备注", "type": "string" }, "sort": { "description": "排序标记", "type": "integer" }, "status": { "description": "状态,1、正常 2、禁用", "type": "integer" }, "title": { "description": "菜单名", "type": "string" }, "updatedAt": { "description": "更新时间", "type": "string" } } }, "system.Role": { "type": "object", "properties": { "alias": { "description": "别名", "type": "string" }, "createdAt": { "description": "创建时间", "type": "string" }, "id": { "description": "主键ID", "type": "string" }, "name": { "description": "名称", "type": "string" }, "remark": { "description": "备注", "type": "string" }, "sort": { "description": "排序", "type": "integer" }, "status": { "description": "状态,1、正常 2、禁用", "type": "integer" }, "updatedAt": { "description": "更新时间", "type": "string" } } }, "system.User": { "type": "object", "properties": { "avatar": { "description": "用户头像˚", "type": "string" }, "createdAt": { "description": "创建时间", "type": "string" }, "id": { "description": "主键ID", "type": "string" }, "nickname": { "description": "用户昵称", "type": "string" }, "status": { "description": "状态,1、正常 2、禁用", "type": "integer" }, "updatedAt": { "description": "更新时间", "type": "string" }, "username": { "description": "用户登录名", "type": "string" }, "uuid": { "description": "用户UUID", "type": "string" } } } }, "securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "name": "x-token", "in": "header" } } }