Sfoglia il codice sorgente

add:
用户新增个性签名

18339543638 2 anni fa
parent
commit
b8d9a12bb2

+ 4 - 6
tr-modules/tr-module-system/src/main/java/cn/tr/module/sys/oauth2/controller/CurrentUserController.java

@@ -15,10 +15,8 @@ import cn.tr.plugin.security.utils.SaTokenUtils;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
-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;
+import org.springframework.web.bind.annotation.*;
+
 import java.util.Collection;
 import java.util.List;
 
@@ -81,8 +79,8 @@ public class CurrentUserController {
     }
 
     @ApiOperation("更新用户的个人账户中心信息")
-    @GetMapping("/loginInfo")
-    public CommonResult<Boolean> updateAccountInfo(AccountUserInfoEditDTO source){
+    @GetMapping("/updateAccountInfo")
+    public CommonResult<Boolean> updateAccountInfo(@RequestBody AccountUserInfoEditDTO source){
         SaTokenUtils.getStpUtil().checkLogin();
         String stpType = LoginUserContextHolder.getStpType();
         AbstractOAuth2PswUserOperator operator = pswUserOperatorManager.matchLoginType(stpType);