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