✨ Member:社交(三方)绑定接口,增加 openid 返回
This commit is contained in:
parent
7b482f5729
commit
bd5c7d57dc
@ -34,11 +34,11 @@ public class AppSocialUserController {
|
||||
|
||||
@PostMapping("/bind")
|
||||
@Operation(summary = "社交绑定,使用 code 授权码")
|
||||
public CommonResult<Boolean> socialBind(@RequestBody @Valid AppSocialUserBindReqVO reqVO) {
|
||||
public CommonResult<String> socialBind(@RequestBody @Valid AppSocialUserBindReqVO reqVO) {
|
||||
SocialUserBindReqDTO reqDTO = new SocialUserBindReqDTO(getLoginUserId(), UserTypeEnum.MEMBER.getValue(),
|
||||
reqVO.getType(), reqVO.getCode(), reqVO.getState());
|
||||
socialUserApi.bindSocialUser(reqDTO);
|
||||
return success(true);
|
||||
String openid = socialUserApi.bindSocialUser(reqDTO);
|
||||
return success(openid);
|
||||
}
|
||||
|
||||
@DeleteMapping("/unbind")
|
||||
|
Loading…
Reference in New Issue
Block a user