Member:社交(三方)绑定接口,增加 openid 返回

This commit is contained in:
YunaiV 2023-12-23 22:54:20 +08:00
parent 7b482f5729
commit bd5c7d57dc

View File

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