From f323d7a250983526e640d8c718606c95c61c1af4 Mon Sep 17 00:00:00 2001 From: hreenshan112 Date: Sat, 4 Jan 2025 08:16:24 +0800 Subject: [PATCH] 1 --- .../1CA4D94B2F75FB6953156D0B1F118213.txt | 3 + src/assets/icons/openapi.json | 2282 +++++++++++++++++ src/views/formTable/page/flowAndLog.vue | 9 +- 3 files changed, 2291 insertions(+), 3 deletions(-) create mode 100644 src/assets/icons/1CA4D94B2F75FB6953156D0B1F118213.txt create mode 100644 src/assets/icons/openapi.json diff --git a/src/assets/icons/1CA4D94B2F75FB6953156D0B1F118213.txt b/src/assets/icons/1CA4D94B2F75FB6953156D0B1F118213.txt new file mode 100644 index 0000000..51ec13b --- /dev/null +++ b/src/assets/icons/1CA4D94B2F75FB6953156D0B1F118213.txt @@ -0,0 +1,3 @@ +8E16AB7621674F90812FF6168939BF7BBE60538081878BAF8708BE2FD088272B +trust-provider.com +cmcdt3dpqamj5l \ No newline at end of file diff --git a/src/assets/icons/openapi.json b/src/assets/icons/openapi.json new file mode 100644 index 0000000..c197bdd --- /dev/null +++ b/src/assets/icons/openapi.json @@ -0,0 +1,2282 @@ +{ + "openapi": "3.0.0", + "info": { + "description": "用户管理提供的服务接口:\n\n# Authentication\n\n", + "version": "2.7.0", + "title": "用户管理接口定义", + "contact": { + "name": "联系开发人员", + "email": "openapi@supos.com" + } + }, + "servers": [ + { + "url": "/open-api/" + } + ], + "tags": [ + { + "name": "users", + "description": "用户管理" + }, + { + "name": "V2.8.1", + "description": "supOS V2.8.1专用认证接口,即将废弃" + } + ], + "security": [ + { + "Sign": [] + }, + { + "Token": [] + } + ], + "components": { + "securitySchemes": { + "Sign": { + "type": "apiKey", + "name": "Authorization", + "in": "header" + }, + "Token": { + "type": "http", + "scheme": "bearer", + "bearerFormat": "JWT" + } + }, + "schemas": { + "AddUser": { + "type": "object", + "properties": { + "username": { + "type": "string", + "maxLength": 50, + "description": "* 用户名规则:仅支持字母、数字、特殊符号*()-_.及其组合,不能超过50个字符。\n* 用户名只支持*()-_.这6个特殊字符,其他特殊符号如+/?%#&=空格{} \"':,\\[]等,涉及兼容,暂不予以支持,请知悉!\n", + "example": "zhangsan" + }, + "password": { + "type": "string", + "description": "用户密码", + "example": "xxxxx" + }, + "userDesc": { + "type": "string", + "description": "用户描述", + "example": "普通用户" + }, + "timeZone": { + "type": "string", + "description": "时区", + "example": "GMT+0800", + "default": "GMT+0800" + }, + "personCode": { + "type": "string", + "description": "人员编码", + "example": "person01" + }, + "companyCode": { + "type": "string", + "description": "公司编码", + "example": "default", + "default": "默认公司" + }, + "accountType": { + "type": "integer", + "enum": [ + 0 + ], + "description": "0 普通用户", + "example": 0 + }, + "roleNameList": { + "type": "array", + "description": "角色编码集合", + "items": { + "type": "string", + "example": "role1" + } + }, + "recoveryDeleted": { + "type": "boolean", + "enum": [ + false, + true + ], + "description": "是否恢复已删除的用户 默认值为false,不恢复已删除的用户。", + "default": false + } + }, + "required": [ + "username", + "password", + "personCode", + "companyCode", + "accountType", + "timeZone" + ] + }, + "AddUserByStandard": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户名", + "example": "test" + }, + "password": { + "type": "string", + "description": "用户密码", + "example": "xxxxx" + }, + "userFullName": { + "type": "string", + "description": "用户全名", + "example": "普通用户" + }, + "userDesc": { + "type": "string", + "description": "用户描述", + "example": "普通用户" + }, + "timeZone": { + "type": "string", + "description": "时区", + "example": "GMT+0800", + "default": "GMT+0800" + }, + "roleNameList": { + "type": "array", + "description": "角色编码集合", + "items": { + "type": "string", + "example": "role1" + } + } + }, + "required": [ + "username", + "password", + "timeZone" + ] + }, + "UpdateUser": { + "type": "object", + "properties": { + "userDesc": { + "type": "string", + "description": "用户描述", + "example": "公司总监" + }, + "timeZone": { + "type": "string", + "description": "时区", + "example": "GMT+0000" + }, + "personCode": { + "type": "string", + "description": "人员编码", + "example": "person01" + }, + "lockStatus": { + "type": "integer", + "enum": [ + 0, + 1 + ], + "description": "锁定状态 0 没有锁定 1是锁定", + "example": 0 + } + } + }, + "UpdateUserByStandard": { + "type": "object", + "properties": { + "userDesc": { + "type": "string", + "description": "用户描述", + "example": "公司总监" + }, + "timeZone": { + "type": "string", + "description": "时区", + "example": "GMT+0000" + }, + "userFullName": { + "type": "string", + "description": "用户全名", + "example": "张大明" + }, + "lockStatus": { + "type": "integer", + "enum": [ + 0, + 1 + ], + "description": "锁定状态 0 没有锁定 1是锁定", + "example": 0 + } + } + }, + "UpdateRoles": { + "type": "object", + "properties": { + "roleCodes": { + "type": "array", + "description": "角色编码集合", + "items": { + "type": "string", + "example": "role1" + } + } + }, + "required": [ + "roleCodes" + ] + }, + "UserDatail": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户名", + "example": "admin", + "maxLength": 50 + }, + "userDesc": { + "type": "string", + "description": "用户描述", + "example": "超级系统管理员", + "maxLength": 255 + }, + "accountType": { + "type": "integer", + "description": "用户类型 0 普通用户 1系统管理员", + "example": 0 + }, + "lockStatus": { + "type": "integer", + "description": "锁定状态 0 没有锁定 1是锁定", + "example": 0 + }, + "valid": { + "type": "integer", + "description": "用户状态 0 已删除 1有效", + "example": 1 + }, + "personCode": { + "type": "string", + "description": "人员编码", + "example": "person01", + "maxLength": 50 + }, + "personName": { + "type": "string", + "description": "人员名称", + "example": "person01", + "maxLength": 200 + }, + "modifyTime": { + "type": "string", + "description": "yyyy-MM-dd'T'HH:mm:ss.SSSZ", + "example": "2020-09-22T07:38:13.893+0800", + "maxLength": 28 + }, + "createTime": { + "type": "string", + "description": "yyyy-MM-dd'T'HH:mm:ss.SSSZ", + "example": "2020-09-22T07:38:13.893+0800", + "maxLength": 28 + }, + "userRoleList": { + "type": "array", + "description": "用户所属角色集合", + "items": { + "$ref": "#/components/schemas/RoleInfo" + } + }, + "avatar": { + "type": "string", + "description": "用户头像", + "example": "/auth/v2/users/admin/avatar", + "maxLength": 256 + } + } + }, + "UserDatailByStandard": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户名", + "example": "admin" + }, + "userFullName": { + "type": "string", + "description": "用户全名", + "example": "超级系统管理员" + }, + "userDesc": { + "type": "string", + "description": "用户描述", + "example": "超级系统管理员" + }, + "accountType": { + "type": "integer", + "description": "用户类型 0 普通用户 1系统管理员", + "example": 0 + }, + "lockStatus": { + "type": "integer", + "description": "锁定状态 0 没有锁定 1是锁定", + "example": 0 + }, + "modifyTime": { + "type": "string", + "description": "yyyy-MM-dd'T'HH:mm:ss.SSSZ", + "example": "2020-09-22T07:38:13.893+0800" + }, + "createTime": { + "type": "string", + "description": "yyyy-MM-dd'T'HH:mm:ss.SSSZ", + "example": "2020-09-22T07:38:13.893+0800" + }, + "userRoleList": { + "type": "array", + "description": "用户所属角色集合", + "items": { + "$ref": "#/components/schemas/RoleInfo" + } + } + } + }, + "RoleInfo": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "角色编号", + "example": "systemRole", + "maxLength": 50 + }, + "showname": { + "type": "string", + "description": "角色名称", + "example": "管理员角色", + "maxLength": 50 + }, + "description": { + "type": "string", + "description": "角色描述,当前版本不支持", + "deprecated": true, + "maxLength": 255 + } + } + }, + "Pagination": { + "description": "分页信息", + "type": "object", + "properties": { + "total": { + "type": "integer", + "description": "总条数", + "example": 100 + }, + "pageSize": { + "type": "integer", + "description": "每页条数", + "example": 20, + "default": 20 + }, + "pageIndex": { + "type": "integer", + "description": "当前页数", + "example": 1 + } + } + }, + "Password": { + "type": "object", + "properties": { + "password": { + "type": "string", + "description": "admin用户密码,", + "example": "9Bo0JPnIfi0A9tptjB/pwisHnom1gSPm/OLyuPDXldM=" + } + } + }, + "2.8.1-AddUser": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户名", + "example": "test" + }, + "password": { + "type": "string", + "description": "用户密码", + "example": "xxxxx" + }, + "languageType": { + "type": "string", + "description": "语言类型, 当前版本不支持", + "deprecated": true + }, + "userDesc": { + "type": "string", + "description": "用户描述" + }, + "email": { + "type": "string", + "description": "邮箱" + }, + "timeZone": { + "type": "string", + "description": "时区" + }, + "accountType": { + "type": "integer", + "description": "账户类型 0:正常用户 1:APP用户,当前版本不支持accountType=1" + }, + "roleNameList": { + "type": "array", + "description": "用户所属角色集合", + "items": { + "type": "string" + } + }, + "noticeConfigList": { + "type": "array", + "description": "用户接收通知类型集合, 当前版本不支持", + "items": { + "type": "integer" + }, + "deprecated": true + } + }, + "required": [ + "username", + "password" + ] + }, + "2.8.1-resources": { + "type": "object", + "properties": { + "resourceOrder": { + "type": "string", + "description": "权限排序数" + }, + "name": { + "type": "string", + "description": "权限名" + }, + "description": { + "type": "string", + "description": "权限描述" + }, + "resourceType": { + "type": "string", + "description": "资源类型, 当前版本不支持", + "deprecated": true + }, + "resourceFunctionType": { + "type": "string", + "description": "资源功能类型(folder/page/button)" + }, + "resource": { + "type": "string", + "description": "资源值,当前版本不支持" + }, + "resourceCode": { + "type": "string", + "description": "资源业务编码" + }, + "parentId": { + "type": "string", + "description": "父级权限ID" + }, + "hide": { + "type": "integer", + "description": "是否隐藏 0 否 1 是" + }, + "platformType": { + "type": "string", + "description": "平台类型,当前版本不支持" + } + } + }, + "2.8.1-UpdateRole": { + "type": "object", + "properties": { + "showName": { + "type": "string", + "description": "角色名称" + }, + "description": { + "type": "string", + "description": "角色描述" + }, + "underControlled": { + "type": "boolean", + "description": "在数据权限方面,角色是否可控,当前版本不支持", + "deprecated": true + } + }, + "required": [ + "showName" + ] + }, + "2.8.1-RoleBaseInfo": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "角色编号" + }, + "showName": { + "type": "string", + "description": "角色名称" + }, + "description": { + "type": "string", + "description": "角色描述" + }, + "underControlled": { + "type": "boolean", + "description": "在数据权限方面,角色是否可控,当前版本不支持", + "deprecated": true + } + }, + "required": [ + "name", + "showName" + ] + }, + "2.8.1-UpdateUser": { + "type": "object", + "properties": { + "languageType": { + "type": "string", + "description": "语言类型,当前版本不支持", + "deprecated": true + }, + "userDesc": { + "type": "string", + "description": "用户描述" + }, + "email": { + "type": "string", + "description": "邮箱" + }, + "timeZone": { + "type": "string", + "description": "时区" + }, + "roleNameList": { + "type": "array", + "description": "用户所属角色集合", + "items": { + "type": "string" + } + } + } + }, + "2.8.1-QueryUser": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户名" + }, + "password": { + "type": "string", + "description": "密码,当前版本不支持" + }, + "languageType": { + "type": "string", + "description": "语言类型,当前版本不支持" + }, + "userDesc": { + "type": "string", + "description": "用户描述" + }, + "email": { + "type": "string", + "description": "邮箱" + }, + "uploadUrl": { + "type": "string", + "description": "头像路径, 当前版本不支持" + }, + "userRoleList": { + "type": "array", + "description": "用户所属角色集合", + "items": { + "$ref": "#/components/schemas/2.8.1-RoleInfo" + } + }, + "noticeConfig": { + "type": "array", + "description": "用户接收通知配置,当前版本不支持", + "items": { + "type": "integer" + }, + "deprecated": true + } + } + }, + "2.8.1-QueryUserByStandard": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户名" + }, + "userFullName": { + "type": "string", + "description": "用户全名" + }, + "userDesc": { + "type": "string", + "description": "用户描述" + }, + "userRoleList": { + "type": "array", + "description": "用户所属角色集合", + "items": { + "$ref": "#/components/schemas/2.8.1-RoleInfo" + } + }, + "noticeConfig": { + "type": "array", + "description": "用户接收通知配置,当前版本不支持", + "items": { + "type": "integer" + }, + "deprecated": true + } + } + }, + "2.8.1-RoleInfo": { + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/2.8.1-Role" + }, + { + "$ref": "#/components/schemas/2.8.1-TableCommonInfo" + } + ] + }, + "2.8.1-Role": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "角色编号" + }, + "showName": { + "type": "string", + "description": "角色名称" + }, + "description": { + "type": "string", + "description": "角色描述" + }, + "underControlled": { + "type": "boolean", + "description": "在数据权限方面,角色是否可控,当前版本不支持", + "deprecated": true + } + } + }, + "2.8.1-TableCommonInfo": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "createUsername": { + "type": "string", + "description": "创建人" + }, + "modifyTime": { + "type": "string", + "description": "修改时间" + }, + "modifyUsername": { + "type": "string", + "description": "修改人" + } + } + }, + "MenuTree": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "菜单唯一编号" + }, + "name": { + "type": "string", + "description": "菜单名称" + }, + "url": { + "type": "string", + "description": "菜单url" + }, + "sort": { + "type": "number", + "description": "菜单排序字段(顺序值由菜单创建时,创建方决定)" + }, + "scope": { + "type": "integer", + "description": "0代表是组态期菜单;1代表是运行期菜单" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MenuTree" + } + } + } + } + }, + "responses": { + "GeneralError": { + "description": "常规的错误 100000001 服务内部异常", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "integer", + "description": "错误编码,例:100000001", + "example": 100000001 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "服务内部异常" + } + } + } + } + } + }, + "Created": { + "description": "后台已成功接受命令,并处理成功" + }, + "Updated": { + "description": "后台已成功接受命令,并处理成功", + "headers": { + "Location": { + "description": "所访问资源的URL", + "schema": { + "type": "string" + } + } + } + }, + "Accepted": { + "description": "后台已成功接受命令,但还未处理完成", + "headers": { + "Location": { + "description": "查询处理结果的URL", + "schema": { + "type": "string" + } + } + } + } + } + }, + "paths": { + "/auth/v2/users": { + "post": { + "tags": [ + "users" + ], + "summary": "新增用户", + "description": "* 可选项:用户描述、角色,角色填写角色编码。\n* 必填项:用户名、密码、人员code、时区、用户类型userType、公司编码companyCode,accountType目前该值为0,普通用户。\n* 用户名规则:仅支持字母、数字、特殊符号*()-_.及其组合,不能超过50个字符。\n* 用户名只支持*()-_.这6个特殊字符,其他特殊符号如+/?%#&=空格{} \"':,\\[]等,涉及兼容,暂不予以支持,请知悉!\n* 用户描述最多255个字符。\n* 用户名唯一性规则:集团下唯一性,用户被删除之后,不可使用该名字重新创建用户。\n* 时区格式:GMT+0800。\n* 新增recoveryDeleted字段,当recoveryDeleted=true,支持添加已删除的用户,recoveryDeleted不传或者false,则无法添加已删除的用户\n", + "operationId": "addUser", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddUser" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "description": "错误提示\n* 100106500 参数校验错误,{\"code\":100106500,\"message\":\"用户名仅支持字母、数字、特殊符号*()-_.及其组合\"}\n* 100106004 用户名称重复,{\"code\":100106004,\"message\":\"用户名称重复\"}\n* 100106005 人员已绑定用户 {\"code\":100106005,\"message\":\"人员已绑定用户\"}\n* 100106012 人员不存在,{\"code\":100106012,\"message\":\"{personCode}对应人员不存在\"}\n* 100106013 角色不存在,{\"code\":100106013,\"message\":\"{roleCode},{roleCode}对应角色不存在\"}\n* 100106021 密码复杂度不符合系统要求,{\"code\":100106021,\"message\":\"根据当前系统密码复杂度返回具体要求\"}\n* 100106014 公司不存在 {\"code\":100106014,\"message\":\"{compangCode}对应公司不存在\"}\n* 100106020 人员不属于该公司,{\"code\":100106020,\"message\":\"{personCode}对应人员不属于{compangCode}对应公司\"}\n* 100106022 角色不属于该公司,{\"code\":100106022,\"message\":\"{roleCode},{roleCode}对应角色不属于{compangCode}对应公司\"}\n", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误编码\n* 100106500 参数校验错误\n* 100106004 用户名称重复\n* 100106005 人员已绑定用户\n* 100106012 人员不存在\n* 100106013 角色不存在\n* 100106021 密码复杂度不符合系统要求\n* 100106014 公司不存在\n* 100106020 人员不属于该公司\n* 100106022 角色不属于该公司\n", + "example": 100106021 + }, + "message": { + "type": "string", + "description": "错误提示", + "example": "密码规则:包含大小写 数字的6到8位长度密码" + } + } + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + }, + "get": { + "tags": [ + "users" + ], + "summary": "分页获取用户列表", + "description": "* 必填项:当前页码、每页记录数以及公司编码\n* 可选项:角色编码、修改时间、是否查询已删除;当传参角色编码时,仅查询绑定指定编码角色的用户\n* 排序规则:根据修改时间(modifyTime)降序排列\n* 典型场景:在用户同步场景中希望全量查询用户时,可以不传修改时间(modifyTime)参数,从而获取全部用户数据;当希望获取某个时间之后的增量用户时,可以传参修改时间(modifyTime)为某个时间,从而获得此时间之后被修改过的用户数据\n* 支持通过includeDeleted参数查询已删除用户数据\n", + "operationId": "getUsers", + "parameters": [ + { + "name": "keyword", + "in": "query", + "required": false, + "description": "模糊匹配关键字,支持模糊匹配参数包含:\n **用户名称(userName)**\n **用户描述(userDesc)**\n* 例如:输入\"user01\",匹配查询上述参数中包含有\"user01\"的全部数据;\n* 不支持查询时区分大小写;\n* 不支持多个查询条件,输入的数据会做为单个值匹配查询;\n* 如果匹配查询的相关数据不存在,则返回数据结构为空集合。\n", + "schema": { + "type": "string", + "maxLength": 50 + } + }, + { + "name": "pageIndex", + "in": "query", + "required": true, + "description": "当前页码", + "schema": { + "type": "integer", + "default": 1, + "minimum": 1 + } + }, + { + "name": "pageSize", + "in": "query", + "description": "每页记录数", + "required": true, + "schema": { + "type": "integer", + "default": 20, + "minimum": 1, + "maximum": 500 + } + }, + { + "name": "companyCode", + "in": "query", + "description": "公司编码", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "roleCode", + "in": "query", + "description": "角色编码", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "modifyTime", + "in": "query", + "description": "修改时间: \n* UTC时间,带时区,格式为:yyyy-MM-dd'T'HH:mm:ss.SSSZ\"\n", + "required": false, + "schema": { + "type": "string", + "example": "2020-12-07T18:07:44.000+0800" + } + }, + { + "name": "includeDeleted", + "in": "query", + "description": "是否过滤已删除用户\n* true:查询已删除用户\n* false:不查询已删除用户\n* 传参为空时,系统默认为false\n", + "schema": { + "type": "boolean", + "default": false + }, + "required": false, + "example": false + } + ], + "responses": { + "200": { + "description": "找到该对象返回的内容", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserDatail" + } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" + } + } + } + } + } + }, + "400": { + "description": "错误提示\n* 100106500 参数校验错误 {\"code\":100106500,\"message\":\"每页记录数(pageSize)必须大于等于10,且小于等于500\"}\n* 100106500 参数校验错误 {\"code\":100106500,\"message\":\"分页页码(pageIndex)不可以小于1!\"}\n* 100106014 公司不存在 {\"code\":100106014,\"message\":\"编码[{companyCode}]对应的公司不存在\"}\n* 100106014 对应角色不存在 {\"code\":100106014,\"message\":\"{roleCode}对应角色不存在\"}\n* 100106500 日期格式错误 ,{\"code\":100106500,\"message\":\"日期格式错误,请使用\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\"的日期格式\"}\n* 100101701 keyword参数长度不可以大于50! ,{\"code\":100101701,\"message\":\"模糊匹配关键字(keyword)长度不能大于50!\"}\n", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误提示\n* 100106500 参数格式错误\n* 100106014 公司不存在\"\n", + "example": 100106500 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "pageSize超过最大大小500" + } + } + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + }, + "delete": { + "tags": [ + "users" + ], + "summary": "批量删除用户", + "description": "* 删除最大个数:100\n* 删除最小个数:1\n* 删除系统不存在的用户名:默认不会提示用户该用户名不存在,系统当做删除成功\n* 事务行为:要么全部删除成功,要么全部没删除成功,不会出现部分删除成功\n* 不可删除有待办的用户\n* 系统管理员用户不可删除\n", + "operationId": "batchDeleteUsers", + "parameters": [ + { + "name": "usernames", + "in": "query", + "required": true, + "description": "用户名称集合", + "schema": { + "type": "string", + "example": "user1,user2" + } + } + ], + "responses": { + "200": { + "description": "已成功处理,但没有需要返回的内容" + }, + "400": { + "description": "错误提示\n* 100106500 参数校验错误 {\"code\":100106500,\"message\":\"删除个数超过最大值100\"}\n* 100106017 用户有待办不可删除 {\"code\":100106017,\"message\":\"{name},{name}有待办不可删除\"}\n* 100106018 系统管理员不可删除 {\"code\":100106018,\"message\":\"{name},{name}系统管理员用户不可删除\"}\n", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误提示\n* 100106500 参数校验错误\n", + "example": 100106017 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "{name},{name}有待办不可删除" + } + } + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/auth/v2/users/{username}": { + "get": { + "tags": [ + "users" + ], + "summary": "获取用户详情", + "description": "查询指定用户详细信息,username必填", + "operationId": "getUserInfo", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称,必填", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "查询指定用户详细信息", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDatail" + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + }, + "put": { + "tags": [ + "users" + ], + "summary": "修改用户", + "operationId": "updateUser", + "description": "* 时区格式:GMT+0800,\n* 可修改用户描述、时区、所绑定的人员、以及锁定用户\n* 用户描述最多255个字符。\n", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称,必填", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateUser" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "description": "错误提示\n* 100106500 参数校验错误 {\"code\":100106500,\"message\":\"时区格式错误\"}\n* 100106012 人员不存在,{\"code\":100106012,\"message\":\"{personCode}对应人员不存在\"}\n", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误编码,例:\"100106500 参数校验错误,100106012 人员不存在\"", + "example": 100106500 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "timeZone 时区格式错误" + } + } + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/auth/v2/users/{username}/role": { + "put": { + "tags": [ + "users" + ], + "summary": "解绑角色", + "description": "* 解绑角色最大10个\n* 系统管理员用户不可编辑角色\n", + "operationId": "unbindUserRole", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称,必填", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateRoles" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "description": "错误提示\n* 100106013 角色不存在,{\"code\":100106013,\"message\":\"{roleCode},{roleCode}对应角色不存在\"}\n* 100106019 系统管理员用户不可编辑角色,{\"code\":100106019,\"message\":\"系统管理员用户不可编辑角色\"}\n* 100106500 参数校验错误 {\"code\":100106500,\"message\":\"解绑角色最大10个\"}\n", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误编码,例:\"100106013 角色不存在\"", + "example": 100106013 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "role1,role2角色不存在" + } + } + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + }, + "post": { + "tags": [ + "users" + ], + "summary": "绑定角色", + "description": "* 绑定角色最大10个\n* 系统管理员用户不可编辑角色\n", + "operationId": "bindUserRole", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称,必填", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateRoles" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "description": "错误提示\n* 100106013 角色不存在,{\"code\":100106013,\"message\":\"{roleCode},{roleCode}对应角色不存在\"}\n* 100106019 系统管理员用户不可编辑角色,{\"code\":100106019,\"message\":\"系统管理员用户不可编辑角色\"}\n* 100106500 参数校验错误 {\"code\":100106500,\"message\":\"绑定角色最大10个\"}\n* 100106022 角色不属于该公司,{\"code\":100106022,\"message\":\"{roleCode},{roleCode}对应角色不属于{username}用户绑定人员所属公司\"}\n", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误编码,例:\"100106013 角色不存在\"", + "example": 100106013 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "role1,role2角色不存在" + } + } + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/auth/v2/users/admin/password": { + "put": { + "summary": "重置系统默认管理员密码", + "tags": [ + "users" + ], + "security": [], + "description": "* 本接口只重置admin用户密码\n* 使用该接口前,请联系管理员开通权限\n* 返回的password经过base64加密,解密之前需要base64反解,解密算法如下\n* 对称解密算法为AES-128-ECB,数据采用填充方式PKCS5Padding\n* 对称解密秘钥为aeskey=md5(sk),aeskey为16字节\n", + "operationId": "adminPasswordReset", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Password" + } + } + } + } + } + } + }, + "/auth/v2/users/{username}/third/identity": { + "delete": { + "tags": [ + "users" + ], + "summary": "解绑第三方身份绑定", + "description": "* 解绑第三方身份标识\n* 解绑最大个数:10\n* 解绑最小个数:1\n* 解绑系统不存在的身份绑定:默认不会提示该绑定不存在,系统当做解绑成功\n", + "operationId": "unbindThirdIdentity", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称,必填", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "identityIds", + "in": "query", + "required": true, + "description": "身份唯一标识集合", + "schema": { + "type": "string", + "example": "12131231,123123123" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "description": "错误提示\n* 100106500 参数校验错误 {\"code\":100106500,\"message\":\"删除个数超过最大值10\"}\n" + } + } + } + }, + "/supos/auth/v2/user": { + "post": { + "tags": [ + "V2.8.1" + ], + "summary": "新增用户,即将废弃", + "description": "* username必填,password必填。\n* 用户名规则:字母、数字或下划线及其组合,不能超过50个字符。\n* 邮箱格式例如:user001@163.com。\n* 时区格式例如:GMT+0800。\n", + "deprecated": true, + "operationId": "addOldUse", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/2.8.1-AddUser" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/supos/auth/v2/users": { + "get": { + "tags": [ + "V2.8.1" + ], + "summary": "获取用户列表,即将废弃", + "description": "* 模糊匹配关键字,通过username,userDesc模糊匹配查询\n", + "deprecated": true, + "operationId": "getOldUsers", + "parameters": [ + { + "name": "keyword", + "in": "query", + "required": false, + "description": "关键字搜索", + "schema": { + "type": "string" + } + }, + { + "name": "pageIndex", + "in": "query", + "required": false, + "description": "翻页的页数,从1开始", + "schema": { + "type": "integer", + "default": 1 + } + }, + { + "name": "pageSize", + "in": "query", + "description": "每页返回的元素数量", + "required": false, + "schema": { + "type": "integer", + "default": 20 + } + } + ], + "responses": { + "200": { + "description": "找到该对象返回的内容", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/2.8.1-QueryUser" + } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/supos/auth/v2/users/{username}": { + "get": { + "tags": [ + "V2.8.1" + ], + "summary": "获取用户详情,即将废弃", + "deprecated": true, + "description": "查询指定用户详细信息", + "operationId": "getOldUserInfo", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "查询指定用户详细信息", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/2.8.1-QueryUser" + } + } + } + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/supos/auth/v2/user/{username}": { + "put": { + "tags": [ + "V2.8.1" + ], + "summary": "修改用户,即将废弃", + "deprecated": true, + "operationId": "updateOldUser", + "description": "* 邮箱格式例如:user@163.com;\n* 时区格式例如:GMT+0800;\n", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/2.8.1-UpdateUser" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/supos/auth/v2/delete/users": { + "post": { + "tags": [ + "V2.8.1" + ], + "summary": "批量删除用户,即将废弃", + "deprecated": true, + "description": "批量删除用户", + "operationId": "batchOldDeleteUser", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "description": "用户名称集合,格式为: list:[\"user01\",\"user02\"]", + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "responses": { + "204": { + "description": "已成功处理,但没有需要返回的内容" + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/supos/auth/v2/users/queryUsersByName/{name}": { + "get": { + "tags": [ + "V2.8.1" + ], + "summary": "获取角色关联用户列表,即将废弃", + "deprecated": true, + "operationId": "getOldUserByRoleCode", + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "description": "角色编号", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "找到并返回的结果", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/2.8.1-QueryUser" + } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/supos/auth/v2/roles": { + "post": { + "tags": [ + "V2.8.1" + ], + "summary": "新增角色,即将废弃", + "deprecated": true, + "description": "* name必填,showName必填。\n* 角色编号规则:字母、数字或下划线及其组合,不能超过50个字符。\n* 角色名称不能超过50个字符。\n* 角色描述不能超过255个字符。\n", + "operationId": "addOldRole", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/2.8.1-RoleBaseInfo" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + }, + "get": { + "tags": [ + "V2.8.1" + ], + "summary": "获取角色列表,即将废弃", + "description": "* 通过角色编号name,角色名称showName,描述description关键字模糊匹配查询\n", + "deprecated": true, + "operationId": "getOldRoles", + "parameters": [ + { + "name": "keyword", + "in": "query", + "required": false, + "description": "关键字搜索", + "schema": { + "type": "string" + } + }, + { + "name": "pageIndex", + "in": "query", + "required": false, + "description": "翻页的页数,从1开始", + "schema": { + "type": "integer", + "default": 1 + } + }, + { + "name": "pageSize", + "in": "query", + "description": "每页返回的元素数量(最大值为100)", + "required": false, + "schema": { + "type": "integer", + "default": 20, + "maximum": 100 + } + } + ], + "responses": { + "200": { + "description": "找到该对象返回的内容", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/2.8.1-RoleInfo" + } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/supos/auth/v2/roles/{name}": { + "put": { + "tags": [ + "V2.8.1" + ], + "summary": "更新角色信息,即将废弃", + "deprecated": true, + "description": "* 角色名称不能超过50个字符;\n* 角色描述不能超过255个字符\n", + "operationId": "updateOldRoles", + "parameters": [ + { + "name": "name", + "in": "path", + "description": "角色编号", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/2.8.1-UpdateRole" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + }, + "get": { + "tags": [ + "V2.8.1" + ], + "summary": "获取角色详情,即将废弃", + "description": "查询指定角色详细信息", + "operationId": "getOldRoleInfo", + "deprecated": true, + "parameters": [ + { + "name": "name", + "in": "path", + "description": "角色编号", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "找到该对象返回的内容", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "type": "object", + "properties": { + "resources": { + "type": "array", + "items": { + "$ref": "#/components/schemas/2.8.1-resources" + } + } + } + }, + { + "$ref": "#/components/schemas/2.8.1-RoleInfo" + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/supos/auth/v2/delete/roles": { + "post": { + "tags": [ + "V2.8.1" + ], + "summary": "批量删除角色,即将废弃", + "description": "批量删除角色,如果角色被用户或者岗位绑定,则不可删除,提示删除失败信息;", + "operationId": "batchOldDeleteRole", + "deprecated": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "description": "角色编号集合,格式为: list:[\"role01\",\"role02\"]", + "properties": { + "list": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "responses": { + "200": { + "description": "已成功处理,但没有需要返回的内容" + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/auth/v2/users/standard": { + "post": { + "tags": [ + "users" + ], + "summary": "新增用户,即将废弃,迁移至 /auth/v2/users", + "description": "* 可选项:用户描述、角色,角色填写角色编码。\n* 必填项:用户名、密码、用户姓名、时区,只能新增普通用户。\n* 用户名规则:字母、数字或下划线及其组合,不能超过50个字符。\n* 用户描述最多255个字符。\n* 用户名唯一性规则:集团下唯一性,用户被删除之后,不可使用该名字重新创建用户。\n* 时区格式:GMT+0800。\n", + "operationId": "addUserByStandard", + "deprecated": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddUserByStandard" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "description": "错误提示\n* 100106500 参数校验错误,{\"code\":100106500,\"message\":\"用户名支持字母、数字或下划线及其组合\"}\n* 100106004 用户名称重复,{\"code\":100106004,\"message\":\"用户名称重复\"}\n* 100106013 角色不存在,{\"code\":100106013,\"message\":\"{roleCode},{roleCode}对应角色不存在\"}\n* 100106021 密码复杂度不符合系统要求,{\"code\":100106021,\"message\":\"根据当前系统密码复杂度返回具体要求\"}\n", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误编码\n* 100106500 参数校验错误\n* 100106004 用户名称重复\n* 100106013 角色不存在\n* 100106021 密码复杂度不符合系统要求\n", + "example": 100106021 + }, + "message": { + "type": "string", + "description": "错误提示", + "example": "密码规则:包含大小写 数字的6到8位长度密码" + } + } + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + }, + "get": { + "tags": [ + "users" + ], + "summary": "分页获取用户列表,即将废弃 ,迁移至 /auth/v2/users", + "description": "* 必填项:当前页数、每一页大小\n* 可选项:角色编码,当需要根据角色编码获取用户列表时,角色编码必填\n* 排序规则:根据用户modifyTime时间降序\n* 同步用户:第一次modifyTime不填,全量获取数据,填写则获取大于modifyTime时间被修改过的用户\n* 用户列表为有效用户(删除过用户不返回)\n", + "operationId": "getUsersByStandard", + "deprecated": true, + "parameters": [ + { + "name": "keyword", + "in": "query", + "required": false, + "description": "模糊匹配关键字,通过username,userDesc模糊匹配查询", + "schema": { + "type": "string" + } + }, + { + "name": "pageIndex", + "in": "query", + "required": true, + "description": "翻页的页数,从1开始", + "schema": { + "type": "integer" + } + }, + { + "name": "pageSize", + "in": "query", + "description": "每页返回的元素数量", + "required": false, + "schema": { + "type": "integer", + "default": 20, + "minimum": 10, + "maximum": 500 + } + }, + { + "name": "roleCode", + "in": "query", + "description": "角色编码", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "modifyTime", + "in": "query", + "description": "修改时间", + "required": false, + "schema": { + "type": "string", + "description": "yyyy-MM-dd'T'HH:mm:ss.SSSZ", + "example": "2020-12-07T18:07:44.000+0800" + } + } + ], + "responses": { + "200": { + "description": "找到该对象返回的内容", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserDatailByStandard" + } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" + } + } + } + } + } + }, + "400": { + "description": "错误提示\n* 100106500 参数校验错误 {\"code\":100106500,\"message\":\"pageSize超过最大值500\"}\n", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误提示\n* 100106500 参数格式错误\n", + "example": 100106500 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "pageSize超过最大大小500" + } + } + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + }, + "delete": { + "tags": [ + "users" + ], + "summary": "批量删除用户,即将废弃,迁移至 /auth/v2/users", + "description": "* 删除最大个数:100\n* 删除最小个数:1\n* 删除系统不存在的用户名:默认不会提示用户该用户名不存在,系统当做删除成功\n* 事务行为:要么全部删除成功,要么全部没删除成功,不会出现部分删除成功\n* 系统管理员用户不可删除\n", + "operationId": "batchDeleteUsersByStandard", + "deprecated": true, + "parameters": [ + { + "name": "usernames", + "in": "query", + "required": true, + "description": "用户名称集合", + "schema": { + "type": "string", + "example": "user1,user2" + } + } + ], + "responses": { + "200": { + "description": "已成功处理,但没有需要返回的内容" + }, + "400": { + "description": "错误提示\n* 100106500 参数校验错误 {\"code\":100106500,\"message\":\"删除个数超过最大值100\"}\n* 100106018 系统管理员不可删除 {\"code\":100106018,\"message\":\"{name},{name}系统管理员用户不可删除\"}\n", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误提示\n* 100106500 参数校验错误\n* 100106018 系统管理员不可删除\n", + "example": 100106018 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "{name},{name}系统管理员用户不可删除" + } + } + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/auth/v2/users/{username}/standard": { + "get": { + "tags": [ + "users" + ], + "summary": "获取用户详情,即将废弃,迁移至 /auth/v2/users/{username}", + "description": "查询指定用户详细信息", + "operationId": "getUserInfoByStandard", + "deprecated": true, + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称,必填", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "查询指定用户详细信息", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDatailByStandard" + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + }, + "put": { + "tags": [ + "users" + ], + "summary": "修改用户,即将废弃,迁移至 /auth/v2/users/{username}", + "operationId": "updateUserByStandard", + "description": "* 时区格式:GMT+0800,\n* 可修改用户姓名、描述、时区、以及锁定用户\n* 用户描述最多255个字符。\n", + "deprecated": true, + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称,必填", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateUserByStandard" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/Created" + }, + "400": { + "description": "错误提示\n* 100106500 参数校验错误 {\"code\":100106500,\"message\":\"时区格式错误\"}\n", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误编码,例:\"100106500 参数校验错误\"", + "example": 100106500 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "timeZone 时区格式错误" + } + } + } + } + } + }, + "500": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/supos/auth/v2/users/queryUsersByName/{name}/standard": { + "get": { + "tags": [ + "V2.8.1" + ], + "summary": "获取角色关联用户列表,即将废弃,迁移至 /supos/auth/v2/users/queryUsersByName/{name}", + "deprecated": true, + "operationId": "getOldUserByRoleCodeByStandard", + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "description": "角色编号", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "找到并返回的结果", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/2.8.1-QueryUserByStandard" + } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/GeneralError" + } + } + } + }, + "/auth/v2/users/{username}/avatar": { + "post": { + "tags": [ + "users" + ], + "summary": "上传用户头像", + "description": "上传用户头像", + "operationId": "authUserUploadAvatar", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称,必填", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "fileName", + "in": "query", + "description": "文件名,必填", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "responses": { + "200": { + "description": "上传成功头像之后返回对应头像信息", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "fileName": { + "type": "string", + "description": "头像名称" + }, + "fileFullPath": { + "type": "string", + "description": "头像路径" + }, + "fileDownloadUrl": { + "type": "string", + "description": "头像访问路径" + } + } + } + } + } + }, + "400": { + "description": "错误提示\n* 100106111 文件名最大长度不能超过20 {\"code\":100106111,\"message\":\"文件名最大长度不能超过20\"}\n* 100106112 文件类型仅支持jpg、gif和png {\"code\":100106112,\"message\":\"文件类型仅支持jpg、gif和png\"}\n* 100106113 文件大小超限,当前支持最大5兆 {\"code\":100106113,\"message\":\"文件大小超限,当前支持最大5兆\"}\n", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "integer", + "description": "错误编码", + "example": 100106112 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "文件类型仅支持jpg、gif和png" + } + } + } + } + } + } + } + }, + "get": { + "tags": [ + "users" + ], + "summary": "加载用户头像", + "description": "加载用户头像", + "operationId": "authUserLoadAvatar", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "用户名称,必填", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "请求成功后返回的内容", + "content": { + "image/*": { + "schema": { + "type": "string", + "description": "下载接口返回头像图片" + } + } + } + }, + "400": { + "description": "错误提示\n* 100106114 头像文件不存在 {\"code\":100106114,\"message\":\"头像文件不存在\"}\n", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "integer", + "description": "错误编码", + "example": 100106114 + }, + "message": { + "type": "string", + "description": "错误信息", + "example": "头像文件不存" + } + } + } + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/views/formTable/page/flowAndLog.vue b/src/views/formTable/page/flowAndLog.vue index 6c23297..58708ed 100644 --- a/src/views/formTable/page/flowAndLog.vue +++ b/src/views/formTable/page/flowAndLog.vue @@ -189,13 +189,14 @@ const reapplyWorkFlow = (val:any) => { } } - +const butLoad = ref(false) /** @ 作者: 秦东 @ 时间: 2024-11-20 15:44:03 @ 功能: 提交审批 */ const yesOrNo = (val:string,agreeOrRefuse:number) => { + butLoad.value = true; let sendInfo = { id:props.appPageInfo.runFlowIdStr, agreeOrRefuse:agreeOrRefuse, @@ -213,7 +214,9 @@ const yesOrNo = (val:string,agreeOrRefuse:number) => { }) .finally(()=>{ + butLoad.value = false; newAddPageData(); + }) } @@ -306,8 +309,8 @@ defineExpose({ - 同意 - 驳回 + 同意 + 驳回