refactor: 移动 SaToken 配置到 webapi 模块

This commit is contained in:
2024-07-01 22:08:02 +08:00
parent 44811fc932
commit d733b7f166
25 changed files with 29 additions and 29 deletions

View File

@@ -271,7 +271,8 @@ continew-admin
│ ├─ src │ ├─ src
│ │ ├─ main │ │ ├─ main
│ │ │ ├─ java/top/continew/admin │ │ │ ├─ java/top/continew/admin
│ │ │ │ ├─ webapi │ │ │ │ ├─ config (配置)
│ │ │ │ ├─ controller
│ │ │ │ │ ├─ auth系统认证相关 API │ │ │ │ │ ├─ auth系统认证相关 API
│ │ │ │ │ ├─ common通用相关 API │ │ │ │ │ ├─ common通用相关 API
│ │ │ │ │ ├─ monitor系统监控相关 API │ │ │ │ │ ├─ monitor系统监控相关 API
@@ -297,7 +298,6 @@ continew-admin
│ │ ├─ main │ │ ├─ main
│ │ │ ├─ java/top/continew/admin │ │ │ ├─ java/top/continew/admin
│ │ │ │ ├─ auth系统认证相关业务 │ │ │ │ ├─ auth系统认证相关业务
│ │ │ │ │ ├─ config系统认证相关配置
│ │ │ │ │ ├─ model系统认证相关模型 │ │ │ │ │ ├─ model系统认证相关模型
│ │ │ │ │ │ ├─ query系统认证相关查询条件 │ │ │ │ │ │ ├─ query系统认证相关查询条件
│ │ │ │ │ │ ├─ req系统认证相关请求对象Request │ │ │ │ │ │ ├─ req系统认证相关请求对象Request

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.auth.config.satoken; package top.continew.admin.config.satoken;
import lombok.Data; import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.auth.config.satoken; package top.continew.admin.config.satoken;
import cn.dev33.satoken.interceptor.SaInterceptor; import cn.dev33.satoken.interceptor.SaInterceptor;
import cn.dev33.satoken.router.SaRouter; import cn.dev33.satoken.router.SaRouter;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.auth.config.satoken; package top.continew.admin.config.satoken;
import cn.dev33.satoken.stp.StpInterface; import cn.dev33.satoken.stp.StpInterface;
import top.continew.admin.common.model.dto.LoginUser; import top.continew.admin.common.model.dto.LoginUser;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.auth; package top.continew.admin.controller.auth;
import cn.dev33.satoken.annotation.SaIgnore; import cn.dev33.satoken.annotation.SaIgnore;
import cn.dev33.satoken.stp.StpUtil; import cn.dev33.satoken.stp.StpUtil;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.auth; package top.continew.admin.controller.auth;
import cn.dev33.satoken.annotation.SaIgnore; import cn.dev33.satoken.annotation.SaIgnore;
import cn.dev33.satoken.stp.StpUtil; import cn.dev33.satoken.stp.StpUtil;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.common; package top.continew.admin.controller.common;
import cn.dev33.satoken.annotation.SaIgnore; import cn.dev33.satoken.annotation.SaIgnore;
import cn.hutool.core.date.LocalDateTimeUtil; import cn.hutool.core.date.LocalDateTimeUtil;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.common; package top.continew.admin.controller.common;
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;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.common; package top.continew.admin.controller.common;
import com.alicp.jetcache.anno.CachePenetrationProtect; import com.alicp.jetcache.anno.CachePenetrationProtect;
import com.alicp.jetcache.anno.CacheRefresh; import com.alicp.jetcache.anno.CacheRefresh;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.monitor; package top.continew.admin.controller.monitor;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.Parameter;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import com.xkcoding.justauth.AuthRequestFactory; import com.xkcoding.justauth.AuthRequestFactory;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.system; package top.continew.admin.controller.system;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.hutool.core.util.ReUtil; import cn.hutool.core.util.ReUtil;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.admin.webapi.tool; package top.continew.admin.controller.tool;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;

View File

@@ -61,16 +61,16 @@ springdoc:
- /error - /error
- group: auth - group: auth
display-name: 系统认证 display-name: 系统认证
packages-to-scan: ${project.base-package}.webapi.auth packages-to-scan: ${project.base-package}.controller.auth
- group: common - group: common
display-name: 通用接口 display-name: 通用接口
packages-to-scan: ${project.base-package}.webapi.common packages-to-scan: ${project.base-package}.controller.common
- group: system - group: system
display-name: 系统管理 display-name: 系统管理
packages-to-scan: ${project.base-package}.webapi.system packages-to-scan: ${project.base-package}.controller.system
- group: monitor - group: monitor
display-name: 系统监控 display-name: 系统监控
packages-to-scan: ${project.base-package}.webapi.monitor packages-to-scan: ${project.base-package}.controller.monitor
## 组件配置 ## 组件配置
components: components:
# 鉴权配置 # 鉴权配置