TASK:AiDA

This commit is contained in:
shahaibo
2024-12-11 14:21:29 +08:00
parent 5dd1e10b61
commit 2ac54a50ec
5 changed files with 47 additions and 2 deletions

View File

@@ -310,4 +310,18 @@ public class AccountController {
public Response<AccountLoginVO> getAccountDetail() {
return Response.success(accountService.getAccountDetail());
}
@CrossOrigin
@GetMapping("/bindGoogle")
@ApiOperation(value = "绑定谷歌")
public Response<AccountLoginVO> bindGoogle(@RequestParam("credential") String credential) {
return Response.success(accountService.bindGoogle(credential));
}
@CrossOrigin
@GetMapping("/bindWeChat")
@ApiOperation(value = "绑定微信")
public Response<AccountLoginVO> bindWeChat(@RequestParam("code") String code) {
return Response.success(accountService.bindWeChat(code));
}
}