mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-19 03:30:06 +08:00
✨ Member:社交(三方)绑定接口,增加 openid 返回
This commit is contained in:
parent
7b482f5729
commit
bd5c7d57dc
@ -34,11 +34,11 @@ public class AppSocialUserController {
|
|||||||
|
|
||||||
@PostMapping("/bind")
|
@PostMapping("/bind")
|
||||||
@Operation(summary = "社交绑定,使用 code 授权码")
|
@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(),
|
SocialUserBindReqDTO reqDTO = new SocialUserBindReqDTO(getLoginUserId(), UserTypeEnum.MEMBER.getValue(),
|
||||||
reqVO.getType(), reqVO.getCode(), reqVO.getState());
|
reqVO.getType(), reqVO.getCode(), reqVO.getState());
|
||||||
socialUserApi.bindSocialUser(reqDTO);
|
String openid = socialUserApi.bindSocialUser(reqDTO);
|
||||||
return success(true);
|
return success(openid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("/unbind")
|
@DeleteMapping("/unbind")
|
||||||
|
Loading…
Reference in New Issue
Block a user