feat: 谷歌登录注册

This commit is contained in:
zhangyahui
2025-11-04 16:47:17 +08:00
parent 3a0c7eb832
commit b9c2130ccb
6 changed files with 255 additions and 61 deletions

View File

@@ -47,3 +47,15 @@ export const LogOut = (): Promise<ApiResponse> => {
method: 'get'
})
}
// Google登录/注册参数类型
interface GoogleAuthParamsType {
credential?: string // Google ID Token (用于One Tap登录)
}
export const googleAuth = (data: GoogleAuthParamsType): Promise<LoginResponse> => {
return request({
url: '/api/auth/parseGoogleCredential',
method: 'get',
params: data
})
}