From 6bed331971b4f8c0df666311ecdbb1f247064c77 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 27 十一月 2023 10:37:43 +0800 Subject: [PATCH] update 优化 删除无用接口实现 --- ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/config/SaTokenConfig.java | 3 +-- ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysSocialController.java | 14 -------------- 2 files changed, 1 insertions(+), 16 deletions(-) diff --git a/ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/config/SaTokenConfig.java b/ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/config/SaTokenConfig.java index aef8a66..ce8d85c 100644 --- a/ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/config/SaTokenConfig.java +++ b/ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/config/SaTokenConfig.java @@ -10,7 +10,6 @@ import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.PropertySource; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; /** * sa-token 閰嶇疆 @@ -19,7 +18,7 @@ */ @AutoConfiguration @PropertySource(value = "classpath:common-satoken.yml", factory = YmlPropertySourceFactory.class) -public class SaTokenConfig implements WebMvcConfigurer { +public class SaTokenConfig { @Bean public StpLogic getStpLogicJwt() { diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysSocialController.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysSocialController.java index 4875508..b0281cf 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysSocialController.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysSocialController.java @@ -1,6 +1,5 @@ package org.dromara.system.controller.system; -import jakarta.validation.constraints.NotNull; import lombok.RequiredArgsConstructor; import org.dromara.common.core.domain.R; import org.dromara.common.satoken.utils.LoginHelper; @@ -9,7 +8,6 @@ import org.dromara.system.service.ISysSocialService; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -35,18 +33,6 @@ @GetMapping("/list") public R<List<SysSocialVo>> list() { return R.ok(socialUserService.queryListByUserId(LoginHelper.getUserId())); - } - - - /** - * 鑾峰彇绀句細鍖栧叧绯昏缁嗕俊鎭� - * - * @param id 涓婚敭 - */ - @GetMapping("/{id}") - public R<SysSocialVo> getInfo(@NotNull(message = "涓婚敭涓嶈兘涓虹┖") - @PathVariable String id) { - return R.ok(socialUserService.queryById(id)); } } -- Gitblit v1.9.3