mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 22:57:17 +08:00 
			
		
		
		
	refactor: CommonController 迁移至 system 模块、OnlineUserController 迁移至 system/auth 模块
This commit is contained in:
		| @@ -44,12 +44,7 @@ public class GlobalSpringDocConfiguration { | ||||
|         return GroupedOpenApi.builder() | ||||
|             .group("common") | ||||
|             .displayName("通用接口") | ||||
|             .pathsToMatch("/common/**", "/captcha/**", "/dashboard/**") | ||||
|             .pathsToMatch("/captcha/**", "/dashboard/**") | ||||
|             .build(); | ||||
|     } | ||||
|  | ||||
|     @Bean | ||||
|     public GroupedOpenApi monitorApi() { | ||||
|         return GroupedOpenApi.builder().group("monitor").displayName("系统监控").pathsToMatch("/monitor/**").build(); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -34,6 +34,6 @@ public class TenantConfiguration { | ||||
|      */ | ||||
|     @Bean | ||||
|     public GroupedOpenApi tenantApi() { | ||||
|         return GroupedOpenApi.builder().group("tenant").displayName("租户").pathsToMatch("/tenant/**").build(); | ||||
|         return GroupedOpenApi.builder().group("tenant").displayName("租户管理").pathsToMatch("/tenant/**").build(); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.continew.admin.controller.common; | ||||
| package top.continew.admin.controller; | ||||
| 
 | ||||
| import cn.dev33.satoken.annotation.SaIgnore; | ||||
| import cn.hutool.core.date.LocalDateTimeUtil; | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.continew.admin.controller.common; | ||||
| package top.continew.admin.controller; | ||||
| 
 | ||||
| import com.alicp.jetcache.anno.CachePenetrationProtect; | ||||
| import com.alicp.jetcache.anno.CacheRefresh; | ||||
| @@ -34,6 +34,6 @@ public class AuthConfiguration { | ||||
|      */ | ||||
|     @Bean | ||||
|     public GroupedOpenApi authApi() { | ||||
|         return GroupedOpenApi.builder().group("auth").displayName("系统认证").pathsToMatch("/auth/**").build(); | ||||
|         return GroupedOpenApi.builder().group("auth").displayName("系统认证").pathsToMatch("/auth/**", "/monitor/online/**").build(); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.continew.admin.controller.monitor; | ||||
| package top.continew.admin.auth.controller; | ||||
| 
 | ||||
| import cn.dev33.satoken.annotation.SaCheckPermission; | ||||
| import cn.dev33.satoken.stp.StpUtil; | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.continew.admin.controller.common; | ||||
| package top.continew.admin.system.controller; | ||||
| 
 | ||||
| import cn.dev33.satoken.annotation.SaIgnore; | ||||
| import cn.hutool.core.lang.tree.Tree; | ||||
| @@ -53,9 +53,9 @@ import java.util.List; | ||||
| @Tag(name = "公共 API") | ||||
| @Log(ignore = true) | ||||
| @Validated | ||||
| @RestController | ||||
| @RestController("systemCommonController") | ||||
| @RequiredArgsConstructor | ||||
| @RequestMapping("/common") | ||||
| @RequestMapping("/system/common") | ||||
| public class CommonController { | ||||
| 
 | ||||
|     private final FileService fileService; | ||||
		Reference in New Issue
	
	Block a user