feat: 登录时同步微信头像和昵称

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
richarjiang
2026-04-05 10:47:39 +08:00
parent 2862d280be
commit 64b319ea19
5 changed files with 57 additions and 6 deletions

View File

@@ -25,7 +25,11 @@ export class AuthController {
@Post('login')
@HttpCode(HttpStatus.OK)
async login(@Body() loginDto: LoginDto): Promise<{ token: string; user: User }> {
return this.authService.login(loginDto.code)
return this.authService.login(
loginDto.code,
loginDto.nickname,
loginDto.avatarUrl,
)
}
@Post('phone')