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