refactor: CommonController 迁移至 system 模块、OnlineUserController 迁移至 system/auth 模块

This commit is contained in:
2025-07-17 22:39:32 +08:00
parent 6136797588
commit 08f45b5f4d
7 changed files with 9 additions and 14 deletions

View File

@@ -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();
}
}

View File

@@ -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();
}
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -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();
}
}

View File

@@ -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;

View File

@@ -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;