definitions = locator.getRouteDefinitions().collectList().block();
+ for (RouteDefinition definition : definitions) {
+ log.info("id: " + definition.getId() + " " + definition.getUri().toString());
+ }
+ definitions.stream()
+ .filter(routeDefinition -> routeDefinition.getId().matches(".*"+SERVER_NAME_SUFFIX))
+ .forEach(routeDefinition -> {
+ String name = routeDefinition.getId().replaceAll(SERVER_NAME_SUFFIX, "");
+ GroupedOpenApi.builder().pathsToMatch("/" + name + "/**").group(name).build();
+ });
+ return groups;
+ }
+}
diff --git a/yudao-module-infra/yudao-module-infra-api/pom.xml b/yudao-module-infra/yudao-module-infra-api/pom.xml
index 86fcbd037..2765503d8 100644
--- a/yudao-module-infra/yudao-module-infra-api/pom.xml
+++ b/yudao-module-infra/yudao-module-infra-api/pom.xml
@@ -23,13 +23,9 @@
-
- com.github.xiaoymin
- knife4j-openapi3-spring-boot-starter
-
org.springdoc
- springdoc-openapi-ui
+ springdoc-openapi-webmvc-core
diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/InfraServerApplication.java b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/InfraServerApplication.java
index 6e4f4d0bc..17a1a4950 100644
--- a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/InfraServerApplication.java
+++ b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/InfraServerApplication.java
@@ -1,11 +1,13 @@
package cn.iocoder.yudao.module.infra;
+import io.swagger.v3.oas.annotations.OpenAPIDefinition;
+import io.swagger.v3.oas.annotations.info.Info;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* 项目的启动类
- *
+ *
* 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章
* 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章
* 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章
diff --git a/yudao-module-system/yudao-module-system-api/pom.xml b/yudao-module-system/yudao-module-system-api/pom.xml
index fafb194c0..1dab1e188 100644
--- a/yudao-module-system/yudao-module-system-api/pom.xml
+++ b/yudao-module-system/yudao-module-system-api/pom.xml
@@ -23,13 +23,9 @@
-
- com.github.xiaoymin
- knife4j-openapi3-spring-boot-starter
-
org.springdoc
- springdoc-openapi-ui
+ springdoc-openapi-webmvc-core
diff --git a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/errorcode/ErrorCodeApi.java b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/errorcode/ErrorCodeApi.java
index 9280ff538..202fee02a 100644
--- a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/errorcode/ErrorCodeApi.java
+++ b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/errorcode/ErrorCodeApi.java
@@ -27,7 +27,7 @@ public interface ErrorCodeApi {
@PostMapping(PREFIX + "/auto-generate")
@Operation(summary = "自动创建错误码")
- CommonResult autoGenerateErrorCodes(@Valid @RequestBody List autoGenerateDTOs);
+ CommonResult autoGenerateErrorCodeList(@Valid @RequestBody List autoGenerateDTOs);
@GetMapping(PREFIX + "/list")
@Operation(summary = "增量获得错误码数组", description = "如果 minUpdateTime 为空时,则获取所有错误码")
diff --git a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/tenant/TenantApi.java b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/tenant/TenantApi.java
index cefe6f70c..213926392 100644
--- a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/tenant/TenantApi.java
+++ b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/tenant/TenantApi.java
@@ -19,7 +19,7 @@ public interface TenantApi {
@GetMapping(PREFIX + "/id-list")
@Operation(summary = "获得所有租户编号")
- CommonResult> getTenantIds();
+ CommonResult> getTenantIdList();
@GetMapping(PREFIX + "/valid")
@Operation(summary = "校验租户是否合法")
diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/user/AdminUserApiImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/user/AdminUserApiImpl.java
index eb9adba11..3745263c8 100644
--- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/user/AdminUserApiImpl.java
+++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/user/AdminUserApiImpl.java
@@ -33,25 +33,25 @@ public class AdminUserApiImpl implements AdminUserApi {
}
@Override
- public CommonResult> getUserList(Collection ids) {
+ public CommonResult> getUsers(Collection ids) {
List users = userService.getUserList(ids);
return success(UserConvert.INSTANCE.convertList4(users));
}
@Override
- public CommonResult> getUserListByDeptIds(Collection deptIds) {
+ public CommonResult> getUsersByDeptIds(Collection deptIds) {
List users = userService.getUserListByDeptIds(deptIds);
return success(UserConvert.INSTANCE.convertList4(users));
}
@Override
- public CommonResult> getUserListByPostIds(Collection postIds) {
+ public CommonResult> getUsersByPostIds(Collection postIds) {
List users = userService.getUserListByPostIds(postIds);
return success(UserConvert.INSTANCE.convertList4(users));
}
@Override
- public CommonResult validUserList(Set ids) {
+ public CommonResult validUsers(Set ids) {
userService.validateUserList(ids);
return success(true);
}
diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/UserController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/UserController.java
index 05a90f528..7cf54ac25 100644
--- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/UserController.java
+++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/UserController.java
@@ -113,7 +113,7 @@ public class UserController {
@Operation(summary = "获取用户精简信息列表", description = "只包含被开启的用户,主要用于前端的下拉选项")
public CommonResult> getSimpleUsers() {
// 获用户门列表,只要开启状态的
- List list = userService.getUsersByStatus(CommonStatusEnum.ENABLE.getStatus());
+ List list = userService.getUserListByStatus(CommonStatusEnum.ENABLE.getStatus());
// 排序后,返回给前端
return success(UserConvert.INSTANCE.convertList04(list));
}
@@ -133,7 +133,7 @@ public class UserController {
public void exportUsers(@Validated UserExportReqVO reqVO,
HttpServletResponse response) throws IOException {
// 获得用户列表
- List users = userService.getUsers(reqVO);
+ List users = userService.getUserList(reqVO);
// 获得拼接需要的数据
Collection deptIds = convertList(users, AdminUserDO::getDeptId);
@@ -183,7 +183,7 @@ public class UserController {
public CommonResult importExcel(@RequestParam("file") MultipartFile file,
@RequestParam(value = "updateSupport", required = false, defaultValue = "false") Boolean updateSupport) throws Exception {
List list = ExcelUtils.read(file, UserImportExcelVO.class);
- return success(userService.importUsers(list, updateSupport));
+ return success(userService.importUserList(list, updateSupport));
}
}
\ No newline at end of file