diff --git a/awardBE/pom.xml b/awardBE/pom.xml index 9a29e2f..693b55a 100644 --- a/awardBE/pom.xml +++ b/awardBE/pom.xml @@ -27,11 +27,7 @@ commons-lang3 3.12.0 - - org.mybatis.spring.boot - mybatis-spring-boot-starter - 2.1.3 - + org.springframework.boot spring-boot-devtools @@ -125,10 +121,7 @@ springloaded 1.2.8.RELEASE - - org.springframework.boot - spring-boot-devtools - + org.springframework.boot spring-boot-starter-security @@ -147,16 +140,19 @@ - - - - - - - com.spring4all - swagger-spring-boot-starter - 1.9.1.RELEASE - + + io.springfox + springfox-boot-starter + 3.0.0 + + + + + + + + + com.google.guava guava diff --git a/awardBE/src/main/resources/5-12-interface.json b/awardBE/src/main/resources/5-12-interface.json new file mode 100644 index 0000000..0fde81e --- /dev/null +++ b/awardBE/src/main/resources/5-12-interface.json @@ -0,0 +1,2939 @@ +{ + "openapi": "3.0.3", + "info": { + "title": "Swagger3接口文档", + "description": "Rabbit用Swagger3.0。", + "contact": { + "name": "Rabbit", + "url": "https://swagger.io/", + "email": "362250024@qq.com" + }, + "version": "1.0" + }, + "servers": [ + { + "url": "http://localhost:8083", + "description": "Inferred Url" + } + ], + "tags": [ + { + "name": "AuthController", + "description": "Login Controller" + }, + { + "name": "MenuController", + "description": "Menu Controller" + }, + { + "name": "ProjectController", + "description": "Project Controller" + }, + { + "name": "TestController", + "description": "Test Controller" + }, + { + "name": "UserController", + "description": "User Controller" + }, + { + "name": "captcha-controller", + "description": "Captcha Controller" + }, + { + "name": "dict-country-controller", + "description": "Dict Country Controller" + }, + { + "name": "dict-evaluate-level-controller", + "description": "Dict Evaluate Level Controller" + } + ], + "paths": { + "/api/captcha.jpg": { + "get": { + "tags": [ + "captcha-controller" + ], + "summary": "getCaptcha", + "operationId": "getCaptchaUsingGET", + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/dict/country": { + "get": { + "tags": [ + "dict-country-controller" + ], + "summary": "getAllCountry", + "operationId": "getAllCountryUsingGET", + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResultVO«List«DictCountry对象»»" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/dict/evaluate-level-entity": { + "get": { + "tags": [ + "dict-evaluate-level-controller" + ], + "summary": "getAllCountry", + "operationId": "getAllCountryUsingGET_1", + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResultVO«List«DictEvaluateLevel对象»»" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/getCurrentUser": { + "get": { + "tags": [ + "AuthController" + ], + "summary": "获取当前用户信息", + "operationId": "getRoutersUsingGET", + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserDetails" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/logout": { + "get": { + "tags": [ + "AuthController" + ], + "summary": "注销登录", + "operationId": "logoutUsingGET", + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResultVO«object»" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/menu/getRouters/{userId}": { + "get": { + "tags": [ + "MenuController" + ], + "summary": "获取路由信息", + "operationId": "getRoutersUsingGET_1", + "parameters": [ + { + "name": "userId", + "in": "path", + "description": "userId", + "required": true, + "style": "simple", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResultVO«List«路由配置信息»»" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/project": { + "post": { + "tags": [ + "ProjectController" + ], + "summary": "保存project数据", + "operationId": "saveProjectUsingPOST", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectEntity对象" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ProjectEntity对象" + } + } + } + }, + "201": { + "description": "Created" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/test/user/detail": { + "get": { + "tags": [ + "TestController" + ], + "summary": "get传参,简单类型,requestParam注解", + "operationId": "getUserInfoUsingGET", + "parameters": [ + { + "name": "phone", + "in": "query", + "description": "phone", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "name", + "in": "query", + "description": "name", + "required": true, + "style": "form", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResponseEntity" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/test/user/detail00": { + "post": { + "tags": [ + "TestController" + ], + "summary": "post传参,简单类型,requestParam注解", + "operationId": "getUserInfo00UsingPOST", + "parameters": [ + { + "name": "param", + "in": "query", + "description": "param", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "name", + "in": "query", + "description": "name", + "required": true, + "style": "form", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResponseEntity" + } + } + } + }, + "201": { + "description": "Created" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/test/user/detail1": { + "get": { + "tags": [ + "TestController" + ], + "summary": "get方法传参,类接收,无注解", + "operationId": "getUserInfo1UsingGET", + "parameters": [ + { + "name": "name", + "in": "query", + "description": "姓名", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "phone", + "in": "query", + "description": "手机号", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserInfoVO" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/test/user/detail11": { + "post": { + "tags": [ + "TestController" + ], + "summary": "post方法传参,类接收,无注解", + "operationId": "getUserInfo11UsingPOST", + "parameters": [ + { + "name": "name", + "in": "query", + "description": "姓名", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "phone", + "in": "query", + "description": "手机号", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserInfoVO" + } + } + } + }, + "201": { + "description": "Created" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/test/user/detail2": { + "get": { + "tags": [ + "TestController" + ], + "summary": "get方法传参,类接收,requestparam注解", + "operationId": "getUserInfo2UsingGET", + "parameters": [ + { + "name": "param", + "in": "query", + "description": "param", + "required": true, + "style": "form", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserInfoVO" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/test/user/detail22": { + "post": { + "tags": [ + "TestController" + ], + "summary": "post方法传参,类接收,requestparam注解", + "operationId": "getUserInfo22UsingPOST", + "parameters": [ + { + "name": "param", + "in": "query", + "description": "param", + "required": true, + "style": "form", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserInfoVO" + } + } + } + }, + "201": { + "description": "Created" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/test/user/detail3": { + "get": { + "tags": [ + "TestController" + ], + "summary": "get方法传参,类接收,requestbody注解", + "operationId": "getUserInfo3UsingGET", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserQuery" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserInfoVO" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/test/user/detail4": { + "post": { + "tags": [ + "TestController" + ], + "summary": "post方法传参,类接收,requestbody注解", + "operationId": "getUserInfo4UsingPOST", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserQuery" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserInfoVO" + } + } + } + }, + "201": { + "description": "Created" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/test/user/detail5": { + "post": { + "tags": [ + "TestController" + ], + "summary": "post方法传参,类接收,requestbody注解", + "operationId": "getUserInfo5UsingPOST", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MajorCategory" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ListResultVO«MajorCategory»" + } + } + } + }, + "201": { + "description": "Created" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/test/user/detailResource": { + "post": { + "tags": [ + "TestController" + ], + "summary": "post方法传参,类接收,requestbody注解", + "operationId": "getUserInfoResourceUsingPOST", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SysResourceEntity对象" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResultVO«SysResourceEntity对象»" + } + } + } + }, + "201": { + "description": "Created" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/user": { + "put": { + "tags": [ + "UserController" + ], + "summary": "修改用户", + "operationId": "editUsingPUT", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserReq" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResultVO«Void»" + } + } + } + }, + "201": { + "description": "Created" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + }, + "post": { + "tags": [ + "UserController" + ], + "summary": "处理新增用户请求", + "operationId": "listUsingPOST", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserReq" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResultVO«Void»" + } + } + } + }, + "201": { + "description": "Created" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/user/": { + "get": { + "tags": [ + "UserController" + ], + "summary": "根据用户编号获取详细信息", + "operationId": "getInfoUsingGET", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "用户ID", + "required": true, + "style": "simple", + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResultVO«Map«string,object»»" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/user/current": { + "get": { + "tags": [ + "UserController" + ], + "summary": "获取当前用户信息", + "operationId": "getCurrentUserUsingGET", + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "type": "object" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/user/list": { + "get": { + "tags": [ + "UserController" + ], + "summary": "获取用户列表", + "operationId": "listUsingGET", + "parameters": [ + { + "name": "accountNonExpired", + "in": "query", + "required": false, + "style": "form", + "schema": { + "type": "boolean" + } + }, + { + "name": "accountNonLocked", + "in": "query", + "required": false, + "style": "form", + "schema": { + "type": "boolean" + } + }, + { + "name": "address", + "in": "query", + "description": "通讯地址", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "admin", + "in": "query", + "description": "是否超级管理员", + "required": false, + "style": "form", + "schema": { + "type": "boolean" + } + }, + { + "name": "authorities[0].authority", + "in": "query", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "birthArea", + "in": "query", + "description": "出生地", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "birthDate", + "in": "query", + "description": "出生日期", + "required": false, + "style": "form", + "schema": { + "type": "string", + "format": "date" + } + }, + { + "name": "college", + "in": "query", + "description": "毕业学校", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "country", + "in": "query", + "description": "国籍", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "createTime", + "in": "query", + "description": "创建时间", + "required": false, + "style": "form", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createUserId", + "in": "query", + "description": "创建人", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "credentialsNonExpired", + "in": "query", + "required": false, + "style": "form", + "schema": { + "type": "boolean" + } + }, + { + "name": "degree", + "in": "query", + "description": "最高学位{0:博士;1:硕士;2:学士;3:专科;4:其他}", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "delFlag", + "in": "query", + "description": "是否删除 2:删除 0:未删除", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "deleteUserId", + "in": "query", + "description": "删除者", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "deptId", + "in": "query", + "description": "二级单位(部门)ID", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "education", + "in": "query", + "description": "最高学历{0:研究生;1:本科;2:专科;3:其他}", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "email", + "in": "query", + "description": "电子邮箱", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "enable", + "in": "query", + "description": "是否启用 1:启用 0:禁用", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "enabled", + "in": "query", + "required": false, + "style": "form", + "schema": { + "type": "boolean" + } + }, + { + "name": "fullName", + "in": "query", + "description": "真实姓名", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "graduateDate", + "in": "query", + "description": "毕业日期", + "required": false, + "style": "form", + "schema": { + "type": "string", + "format": "date" + } + }, + { + "name": "id", + "in": "query", + "description": "用户ID", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int64" + } + }, + { + "name": "idCard", + "in": "query", + "description": "身份证号", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "isAbroad", + "in": "query", + "description": "是否归国人员", + "required": false, + "style": "form", + "schema": { + "type": "boolean" + } + }, + { + "name": "isAsc", + "in": "query", + "description": "排序的方向", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "lastModifyTime", + "in": "query", + "description": "最后更新时间", + "required": false, + "style": "form", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "lastModifyUserId", + "in": "query", + "description": "最后更新者", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "major", + "in": "query", + "description": "所学专业", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "mobilePhone", + "in": "query", + "description": "手机号", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "nation", + "in": "query", + "description": "民族", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "nickname", + "in": "query", + "description": "用户昵称", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "officePhone", + "in": "query", + "description": "办公电话", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "orderByColumn", + "in": "query", + "description": "排序列", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "pageNum", + "in": "query", + "description": "当前页数", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageSize", + "in": "query", + "description": "分页大小", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "params", + "in": "query", + "description": "请求参数", + "required": false, + "style": "form", + "schema": { + "type": "object" + } + }, + { + "name": "party", + "in": "query", + "description": "党派", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "password", + "in": "query", + "description": "密码", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "position", + "in": "query", + "description": "行政职务", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "postal", + "in": "query", + "description": "邮编", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "returnDate", + "in": "query", + "description": "归国日期", + "required": false, + "style": "form", + "schema": { + "type": "string", + "format": "date" + } + }, + { + "name": "roles[0].admin", + "in": "query", + "description": "是否是管理员", + "required": false, + "style": "form", + "schema": { + "type": "boolean" + } + }, + { + "name": "roles[0].createTime", + "in": "query", + "description": "创建时间", + "required": false, + "style": "form", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "roles[0].createUserId", + "in": "query", + "description": "创建人", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "roles[0].delFlag", + "in": "query", + "description": "是否删除 2:删除 0:未删除", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "roles[0].deleteTime", + "in": "query", + "description": "删除时间", + "required": false, + "style": "form", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "roles[0].deleteUserId", + "in": "query", + "description": "删除者", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "roles[0].enable", + "in": "query", + "description": "是否启用", + "required": false, + "style": "form", + "schema": { + "type": "boolean" + } + }, + { + "name": "roles[0].label", + "in": "query", + "description": "显示文本", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "roles[0].lastModifyTime", + "in": "query", + "description": "最后更新时间", + "required": false, + "style": "form", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "roles[0].lastModifyUserId", + "in": "query", + "description": "最后更新者", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "roles[0].name", + "in": "query", + "description": "角色名称", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "roles[0].params", + "in": "query", + "description": "请求参数", + "required": false, + "style": "form", + "schema": { + "type": "object" + } + }, + { + "name": "roles[0].roleId", + "in": "query", + "description": "角色ID", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int64" + } + }, + { + "name": "sex", + "in": "query", + "description": "性别", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "sign", + "in": "query", + "description": "个人签名图片id", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "title", + "in": "query", + "description": "技术职称", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + }, + { + "name": "unitId", + "in": "query", + "description": "工作单位ID", + "required": false, + "style": "form", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "username", + "in": "query", + "description": "用户名", + "required": false, + "style": "form", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/分页响应对象«User»" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/user/{id}": { + "get": { + "tags": [ + "UserController" + ], + "summary": "根据用户编号获取详细信息", + "operationId": "getInfoUsingGET_1", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "用户ID", + "required": true, + "style": "simple", + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResultVO«Map«string,object»»" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, + "/api/user/{userIds}": { + "delete": { + "tags": [ + "UserController" + ], + "summary": "删除用户", + "operationId": "removeUsingDELETE", + "parameters": [ + { + "name": "userIds", + "in": "path", + "description": "角色ID串", + "required": true, + "style": "simple", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserReq" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResultVO«Void»" + } + } + } + }, + "204": { + "description": "No Content" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + } + } + } + }, + "components": { + "schemas": { + "DictCountry对象": { + "title": "DictCountry对象", + "type": "object", + "properties": { + "enable": { + "type": "boolean", + "description": "是否启用", + "example": false + }, + "id": { + "type": "integer", + "description": "ID", + "format": "int32" + }, + "label": { + "type": "string", + "description": "显示文本" + }, + "sort": { + "type": "integer", + "description": "排序", + "format": "int32" + }, + "value": { + "type": "string", + "description": "符号" + } + }, + "description": "职位" + }, + "DictEvaluateLevel对象": { + "title": "DictEvaluateLevel对象", + "type": "object", + "properties": { + "enable": { + "type": "boolean", + "description": "是否启用", + "example": false + }, + "id": { + "type": "integer", + "description": "ID", + "format": "int32" + }, + "label": { + "type": "string", + "description": "显示文本" + }, + "sort": { + "type": "integer", + "description": "排序", + "format": "int32" + }, + "value": { + "type": "string", + "description": "符号" + } + }, + "description": "职位" + }, + "GrantedAuthority": { + "title": "GrantedAuthority", + "type": "object", + "properties": { + "authority": { + "type": "string" + } + } + }, + "ListResultVO«MajorCategory»": { + "title": "ListResultVO«MajorCategory»", + "type": "object", + "properties": { + "current": { + "type": "integer", + "description": "当前页码", + "format": "int64" + }, + "list": { + "type": "array", + "description": "列表数据", + "items": { + "$ref": "#/components/schemas/MajorCategory" + } + }, + "pageSize": { + "type": "integer", + "description": "每页记录数", + "format": "int64" + }, + "total": { + "type": "integer", + "description": "记录总数", + "format": "int64" + } + }, + "description": "分页列表数据" + }, + "MajorCategory": { + "title": "MajorCategory", + "type": "object", + "properties": { + "children": { + "type": "array", + "description": "下级分类列表", + "items": { + "$ref": "#/components/schemas/MajorCategory" + } + }, + "code": { + "type": "string", + "description": "分类编码" + }, + "createTime": { + "type": "string", + "description": "创建时间", + "format": "date-time" + }, + "createUserId": { + "type": "integer", + "description": "创建人", + "format": "int32" + }, + "deleteUserId": { + "type": "integer", + "description": "删除者", + "format": "int32" + }, + "enable": { + "type": "boolean", + "description": "是否启用", + "example": false + }, + "id": { + "type": "integer", + "description": "分类ID", + "format": "int32" + }, + "lastModifyTime": { + "type": "string", + "description": "最后更新时间", + "format": "date-time" + }, + "lastModifyUserId": { + "type": "integer", + "description": "最后更新者", + "format": "int32" + }, + "level": { + "type": "integer", + "description": "分类级别", + "format": "int32" + }, + "name": { + "type": "string", + "description": "分类名称" + }, + "params": { + "type": "object", + "description": "请求参数" + }, + "parentId": { + "type": "integer", + "description": "上级分类ID", + "format": "int32" + }, + "remark": { + "type": "string", + "description": "备注" + } + }, + "description": "专业分类" + }, + "ProjectEntity对象": { + "title": "ProjectEntity对象", + "type": "object", + "properties": { + "achieveCode": { + "type": "string", + "description": "成果登记号" + }, + "appDate": { + "type": "string", + "description": "应用日期", + "format": "date" + }, + "appField": { + "type": "string", + "description": "应用领域 A、民用 B、军民通用\t" + }, + "applicationSummary": { + "type": "string", + "description": "应用推广情况概述" + }, + "awardType": { + "type": "integer", + "description": "奖励类别\tAPP_TECH:应用技术成果 \tBASIC_TECH:基础技术成果 \tEXTENSION:推广成果 \tTECH_BASIC:技术基础成果 \tSOFT_TECH:软科学成果 \tOTHER:其他", + "format": "int32" + }, + "chnName": { + "type": "string", + "description": "项目中文名" + }, + "createTime": { + "type": "string", + "description": "创建时间", + "format": "date-time" + }, + "createUserId": { + "type": "integer", + "description": "创建者", + "format": "int32" + }, + "deleteTime": { + "type": "string", + "description": "删除时间", + "format": "date" + }, + "deleteUserId": { + "type": "integer", + "description": "删除者", + "format": "int32" + }, + "departmentId": { + "type": "integer", + "description": "主管部门", + "format": "int32" + }, + "directBenifit": { + "type": "string", + "description": "直接经济效益概述" + }, + "engName": { + "type": "string", + "description": "项目英文名" + }, + "evaluateDate": { + "type": "string", + "description": "评价日期", + "format": "date" + }, + "evaluateLevel": { + "type": "integer", + "description": "评价水平", + "format": "int32" + }, + "evaluateOrgId": { + "type": "integer", + "description": "成果评价机构", + "format": "int32" + }, + "id": { + "type": "integer", + "description": "项目ID", + "format": "int64" + }, + "indirectBenifit": { + "type": "string", + "description": "间接经济效益概述" + }, + "intellectualProperty": { + "type": "integer", + "description": "授权的其他知识产权", + "format": "int32" + }, + "inventionPatent": { + "type": "integer", + "description": "授权发明专利", + "format": "int32" + }, + "lastModifyTime": { + "type": "string", + "description": "最后修改时间", + "format": "date-time" + }, + "lastModifyUserId": { + "type": "integer", + "description": "最后修改者", + "format": "int32" + }, + "majorCategoryId": { + "type": "integer", + "description": "专业分类", + "format": "int32" + }, + "plan": { + "type": "string", + "description": "计划名称" + }, + "planCode": { + "type": "string", + "description": "计划编号" + }, + "projectEndTime": { + "type": "string", + "description": "项目终止日期", + "format": "date" + }, + "projectInfo": { + "type": "string", + "description": "项目简介" + }, + "projectStartTime": { + "type": "string", + "description": "项目开始日期", + "format": "date" + }, + "recomendLevel": { + "type": "integer", + "description": "推荐等级", + "format": "int32" + }, + "recomendUnitId": { + "type": "integer", + "description": "推荐单位", + "format": "int32" + }, + "recommendDate": { + "type": "string", + "description": "推荐日期", + "format": "date" + }, + "remark": { + "type": "string", + "description": "项目备注" + }, + "responsePersonId": { + "type": "integer", + "description": "主要完成人", + "format": "int64" + }, + "secretLevel": { + "type": "integer", + "description": "密级", + "format": "int32" + }, + "socialBenifit": { + "type": "string", + "description": "社会效益概述" + }, + "status": { + "type": "integer", + "description": "项目状态 {0:保存;1:提交;2::已分配专家;3:专家评审通过;4:已通过;6:专家评审未通过;7:打回修改;8:已拒绝;-1:无效项目", + "format": "int32" + }, + "taskSource": { + "type": "string", + "description": "任务来源 A、国家计划 B、省部级计划、集团公司计划 C、计划外\t" + }, + "techInnovation": { + "type": "string", + "description": "技术创新" + }, + "techLimitation": { + "type": "string", + "description": "技术局限性" + }, + "theme": { + "type": "string", + "description": "主题词" + }, + "thirdEvaluation": { + "type": "string", + "description": "第三方评价描述" + }, + "unitContribution": { + "type": "string", + "description": "完成单位贡献情况阐述" + }, + "unitId": { + "type": "integer", + "description": "主要完成单位", + "format": "int32" + } + } + }, + "ResponseEntity": { + "title": "ResponseEntity", + "type": "object", + "properties": { + "body": { + "type": "object" + }, + "statusCode": { + "type": "string", + "enum": [ + "ACCEPTED", + "ALREADY_REPORTED", + "BAD_GATEWAY", + "BAD_REQUEST", + "BANDWIDTH_LIMIT_EXCEEDED", + "CHECKPOINT", + "CONFLICT", + "CONTINUE", + "CREATED", + "DESTINATION_LOCKED", + "EXPECTATION_FAILED", + "FAILED_DEPENDENCY", + "FORBIDDEN", + "FOUND", + "GATEWAY_TIMEOUT", + "GONE", + "HTTP_VERSION_NOT_SUPPORTED", + "IM_USED", + "INSUFFICIENT_SPACE_ON_RESOURCE", + "INSUFFICIENT_STORAGE", + "INTERNAL_SERVER_ERROR", + "I_AM_A_TEAPOT", + "LENGTH_REQUIRED", + "LOCKED", + "LOOP_DETECTED", + "METHOD_FAILURE", + "METHOD_NOT_ALLOWED", + "MOVED_PERMANENTLY", + "MOVED_TEMPORARILY", + "MULTIPLE_CHOICES", + "MULTI_STATUS", + "NETWORK_AUTHENTICATION_REQUIRED", + "NON_AUTHORITATIVE_INFORMATION", + "NOT_ACCEPTABLE", + "NOT_EXTENDED", + "NOT_FOUND", + "NOT_IMPLEMENTED", + "NOT_MODIFIED", + "NO_CONTENT", + "OK", + "PARTIAL_CONTENT", + "PAYLOAD_TOO_LARGE", + "PAYMENT_REQUIRED", + "PERMANENT_REDIRECT", + "PRECONDITION_FAILED", + "PRECONDITION_REQUIRED", + "PROCESSING", + "PROXY_AUTHENTICATION_REQUIRED", + "REQUESTED_RANGE_NOT_SATISFIABLE", + "REQUEST_ENTITY_TOO_LARGE", + "REQUEST_HEADER_FIELDS_TOO_LARGE", + "REQUEST_TIMEOUT", + "REQUEST_URI_TOO_LONG", + "RESET_CONTENT", + "SEE_OTHER", + "SERVICE_UNAVAILABLE", + "SWITCHING_PROTOCOLS", + "TEMPORARY_REDIRECT", + "TOO_EARLY", + "TOO_MANY_REQUESTS", + "UNAUTHORIZED", + "UNAVAILABLE_FOR_LEGAL_REASONS", + "UNPROCESSABLE_ENTITY", + "UNSUPPORTED_MEDIA_TYPE", + "UPGRADE_REQUIRED", + "URI_TOO_LONG", + "USE_PROXY", + "VARIANT_ALSO_NEGOTIATES" + ] + }, + "statusCodeValue": { + "type": "integer", + "format": "int32" + } + } + }, + "ResultVO«List«DictCountry对象»»": { + "title": "ResultVO«List«DictCountry对象»»", + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "data": { + "type": "object", + "description": "数据" + }, + "msg": { + "type": "string" + } + }, + "description": "返回信息" + }, + "ResultVO«List«DictEvaluateLevel对象»»": { + "title": "ResultVO«List«DictEvaluateLevel对象»»", + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "data": { + "type": "object", + "description": "数据" + }, + "msg": { + "type": "string" + } + }, + "description": "返回信息" + }, + "ResultVO«List«路由配置信息»»": { + "title": "ResultVO«List«路由配置信息»»", + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "data": { + "type": "object", + "description": "数据" + }, + "msg": { + "type": "string" + } + }, + "description": "返回信息" + }, + "ResultVO«Map«string,object»»": { + "title": "ResultVO«Map«string,object»»", + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "data": { + "type": "object", + "description": "数据" + }, + "msg": { + "type": "string" + } + }, + "description": "返回信息" + }, + "ResultVO«SysResourceEntity对象»": { + "title": "ResultVO«SysResourceEntity对象»", + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "data": { + "type": "object", + "description": "数据" + }, + "msg": { + "type": "string" + } + }, + "description": "返回信息" + }, + "ResultVO«Void»": { + "title": "ResultVO«Void»", + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "msg": { + "type": "string" + } + }, + "description": "返回信息" + }, + "ResultVO«object»": { + "title": "ResultVO«object»", + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "data": { + "type": "object", + "description": "数据" + }, + "msg": { + "type": "string" + } + }, + "description": "返回信息" + }, + "Role": { + "title": "Role", + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间", + "format": "date-time" + }, + "createUserId": { + "type": "integer", + "description": "创建人", + "format": "int32" + }, + "delFlag": { + "type": "string", + "description": "是否删除 2:删除 0:未删除" + }, + "deleteUserId": { + "type": "integer", + "description": "删除者", + "format": "int32" + }, + "enable": { + "type": "boolean", + "description": "是否启用", + "example": false + }, + "label": { + "type": "string", + "description": "显示文本" + }, + "lastModifyTime": { + "type": "string", + "description": "最后更新时间", + "format": "date-time" + }, + "lastModifyUserId": { + "type": "integer", + "description": "最后更新者", + "format": "int32" + }, + "name": { + "type": "string", + "description": "角色名称" + }, + "params": { + "type": "object", + "description": "请求参数" + }, + "roleId": { + "type": "integer", + "description": "角色ID", + "format": "int64" + } + }, + "description": "角色" + }, + "SysResourceEntity对象": { + "title": "SysResourceEntity对象", + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间", + "format": "date-time" + }, + "createUserId": { + "type": "integer", + "description": "创建者", + "format": "int32" + }, + "deleteTime": { + "type": "string", + "description": "删除时间", + "format": "date" + }, + "deleteUserId": { + "type": "integer", + "description": "删除者", + "format": "int32" + }, + "enable": { + "type": "boolean", + "description": "启用与否", + "example": false + }, + "id": { + "type": "integer", + "description": "资源ID", + "format": "int32" + }, + "label": { + "type": "string", + "description": "显示文本" + }, + "lastModifyTime": { + "type": "string", + "description": "最后修改时间", + "format": "date-time" + }, + "lastModifyUserId": { + "type": "integer", + "description": "最后修改者", + "format": "int32" + }, + "method": { + "type": "string", + "description": "请求方法" + }, + "name": { + "type": "string", + "description": "资源名称" + }, + "parentId": { + "type": "integer", + "description": "上级资源ID", + "format": "int32" + }, + "permitAll": { + "type": "boolean", + "description": "允许所有访问", + "example": false + }, + "sort": { + "type": "integer", + "description": "排序", + "format": "int32" + }, + "url": { + "type": "string", + "description": "路径" + } + } + }, + "TreeNode": { + "title": "TreeNode", + "type": "object", + "properties": { + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TreeNode" + } + }, + "id": { + "type": "integer", + "format": "int32" + }, + "parentId": { + "type": "integer", + "format": "int32" + } + } + }, + "UserDetails": { + "title": "UserDetails", + "type": "object", + "properties": { + "accountNonExpired": { + "type": "boolean" + }, + "accountNonLocked": { + "type": "boolean" + }, + "authorities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantedAuthority" + } + }, + "credentialsNonExpired": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, + "password": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "UserInfoVO": { + "title": "UserInfoVO", + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "地址信息" + }, + "enable": { + "type": "boolean", + "description": "是否启用", + "example": false + }, + "fullName": { + "type": "string", + "description": "用户真实名" + }, + "id": { + "type": "integer", + "description": "用户id", + "format": "int32" + }, + "loginType": { + "type": "string", + "description": "登录方式" + }, + "phone": { + "type": "string", + "description": "手机号" + }, + "roles": { + "type": "array", + "description": "角色列表", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "unitId": { + "type": "integer", + "description": "所属单位", + "format": "int32" + }, + "username": { + "type": "string", + "description": "用户名" + } + }, + "description": "用户信息" + }, + "UserQuery": { + "title": "UserQuery", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "姓名" + }, + "phone": { + "type": "string", + "description": "手机号" + } + }, + "description": "用户信息查询" + }, + "UserReq": { + "title": "UserReq", + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "通讯地址" + }, + "birthArea": { + "type": "string", + "description": "出生地" + }, + "birthDate": { + "type": "string", + "description": "出生日期", + "format": "date" + }, + "college": { + "type": "string", + "description": "毕业学校" + }, + "country": { + "type": "string", + "description": "国籍" + }, + "createTime": { + "type": "string", + "description": "创建时间", + "format": "date-time" + }, + "createUserId": { + "type": "integer", + "description": "创建人", + "format": "int32" + }, + "degree": { + "type": "string", + "description": "最高学位{0:博士;1:硕士;2:学士;3:专科;4:其他}" + }, + "delFlag": { + "type": "string", + "description": "是否删除 2:删除 0:未删除" + }, + "deleteUserId": { + "type": "integer", + "description": "删除者", + "format": "int32" + }, + "deptId": { + "type": "integer", + "description": "二级单位(部门)ID", + "format": "int32" + }, + "education": { + "type": "string", + "description": "最高学历{0:研究生;1:本科;2:专科;3:其他}" + }, + "email": { + "type": "string", + "description": "电子邮箱" + }, + "enable": { + "type": "string", + "description": "是否启用 1:启用 0:禁用" + }, + "fullName": { + "type": "string", + "description": "真实姓名" + }, + "graduateDate": { + "type": "string", + "description": "毕业日期", + "format": "date" + }, + "id": { + "type": "integer", + "description": "用户ID", + "format": "int64" + }, + "idCard": { + "type": "string", + "description": "身份证号" + }, + "isAbroad": { + "type": "boolean", + "description": "是否归国人员", + "example": false + }, + "lastModifyTime": { + "type": "string", + "description": "最后更新时间", + "format": "date-time" + }, + "lastModifyUserId": { + "type": "integer", + "description": "最后更新者", + "format": "int32" + }, + "major": { + "type": "string", + "description": "所学专业" + }, + "mobilePhone": { + "type": "string", + "description": "手机号" + }, + "nation": { + "type": "string", + "description": "民族" + }, + "nickname": { + "type": "string", + "description": "用户昵称" + }, + "officePhone": { + "type": "string", + "description": "办公电话" + }, + "params": { + "type": "object", + "description": "请求参数" + }, + "party": { + "type": "string", + "description": "党派" + }, + "password": { + "type": "string", + "description": "密码" + }, + "position": { + "type": "string", + "description": "行政职务" + }, + "postal": { + "type": "string", + "description": "邮编" + }, + "returnDate": { + "type": "string", + "description": "归国日期", + "format": "date" + }, + "roles": { + "type": "array", + "description": "角色列表", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "sex": { + "type": "string", + "description": "性别" + }, + "sign": { + "type": "integer", + "description": "个人签名图片id", + "format": "int32" + }, + "title": { + "type": "string", + "description": "技术职称" + }, + "unitId": { + "type": "integer", + "description": "工作单位ID", + "format": "int32" + }, + "username": { + "type": "string", + "description": "用户名" + } + }, + "description": "用户" + }, + "UserRes": { + "title": "UserRes", + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "通讯地址" + }, + "admin": { + "type": "boolean", + "description": "是否超级管理员", + "example": false + }, + "authorities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantedAuthority" + } + }, + "birthArea": { + "type": "string", + "description": "出生地" + }, + "birthDate": { + "type": "string", + "description": "出生日期", + "format": "date" + }, + "college": { + "type": "string", + "description": "毕业学校" + }, + "country": { + "type": "string", + "description": "国籍" + }, + "createTime": { + "type": "string", + "description": "创建时间", + "format": "date-time" + }, + "createUserId": { + "type": "integer", + "description": "创建人", + "format": "int32" + }, + "degree": { + "type": "string", + "description": "最高学位{0:博士;1:硕士;2:学士;3:专科;4:其他}" + }, + "delFlag": { + "type": "string", + "description": "是否删除 2:删除 0:未删除" + }, + "deleteUserId": { + "type": "integer", + "description": "删除者", + "format": "int32" + }, + "deptId": { + "type": "integer", + "description": "二级单位(部门)ID", + "format": "int32" + }, + "education": { + "type": "string", + "description": "最高学历{0:研究生;1:本科;2:专科;3:其他}" + }, + "email": { + "type": "string", + "description": "电子邮箱" + }, + "enable": { + "type": "string", + "description": "是否启用 1:启用 0:禁用" + }, + "enabled": { + "type": "boolean" + }, + "fullName": { + "type": "string", + "description": "真实姓名" + }, + "graduateDate": { + "type": "string", + "description": "毕业日期", + "format": "date" + }, + "id": { + "type": "integer", + "description": "用户ID", + "format": "int64" + }, + "idCard": { + "type": "string", + "description": "身份证号" + }, + "isAbroad": { + "type": "boolean", + "description": "是否归国人员", + "example": false + }, + "lastModifyTime": { + "type": "string", + "description": "最后更新时间", + "format": "date-time" + }, + "lastModifyUserId": { + "type": "integer", + "description": "最后更新者", + "format": "int32" + }, + "major": { + "type": "string", + "description": "所学专业" + }, + "mobilePhone": { + "type": "string", + "description": "手机号" + }, + "nation": { + "type": "string", + "description": "民族" + }, + "nickname": { + "type": "string", + "description": "用户昵称" + }, + "officePhone": { + "type": "string", + "description": "办公电话" + }, + "params": { + "type": "object", + "description": "请求参数" + }, + "party": { + "type": "string", + "description": "党派" + }, + "password": { + "type": "string", + "description": "密码" + }, + "position": { + "type": "string", + "description": "行政职务" + }, + "postal": { + "type": "string", + "description": "邮编" + }, + "returnDate": { + "type": "string", + "description": "归国日期", + "format": "date" + }, + "roles": { + "type": "array", + "description": "角色列表", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "sex": { + "type": "string", + "description": "性别" + }, + "sign": { + "type": "integer", + "description": "个人签名图片id", + "format": "int32" + }, + "title": { + "type": "string", + "description": "技术职称" + }, + "unitId": { + "type": "integer", + "description": "工作单位ID", + "format": "int32" + }, + "username": { + "type": "string", + "description": "用户名" + } + }, + "description": "用户" + }, + "分页响应对象«User»": { + "title": "分页响应对象«User»", + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "消息状态码", + "format": "int32" + }, + "current": { + "type": "integer", + "description": "当前页码", + "format": "int64" + }, + "data": { + "type": "array", + "description": "列表数据", + "items": { + "$ref": "#/components/schemas/UserRes" + } + }, + "msg": { + "type": "string", + "description": "消息内容" + }, + "pageSize": { + "type": "integer", + "description": "单页记录数", + "format": "int64" + }, + "success": { + "type": "boolean", + "description": "success", + "example": false + }, + "total": { + "type": "integer", + "description": "总记录数", + "format": "int64" + } + } + }, + "路由配置信息": { + "title": "路由配置信息", + "type": "object", + "properties": { + "alwaysShow": { + "type": "boolean", + "description": "当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面", + "example": false + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TreeNode" + } + }, + "component": { + "type": "string", + "description": "组件地址" + }, + "hidden": { + "type": "boolean", + "description": "是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现", + "example": false + }, + "id": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "description": "路由名字" + }, + "parentId": { + "type": "integer", + "format": "int32" + }, + "path": { + "type": "string", + "description": "路由地址" + }, + "query": { + "type": "string", + "description": "路由参数:如 {\"id\": 1, \"name\": \"ry\"}" + }, + "redirect": { + "type": "string", + "description": "重定向地址,当设置 noRedirect 的时候该路由在面包屑导航中不可被点击" + } + } + } + } + } +} \ No newline at end of file