功能:落地待优化建议与VIP资产联动

This commit is contained in:
xiaowang
2026-03-20 12:24:56 +08:00
parent 8330ea1c83
commit f139395e60
52 changed files with 3187 additions and 1014 deletions
+9
View File
@@ -64,6 +64,12 @@ export interface AvailabilityCheckResponse {
message: string
}
export interface LoginAccountCheckResponse {
exists: boolean
nickname?: string
message: string
}
export interface UpdatePhoneRequest {
oldPhone: string
newPhone: string
@@ -92,6 +98,9 @@ export const userApi = {
checkAccountAvailability: (account: string) => {
return api.get<AvailabilityCheckResponse>(`/user/check/account/${encodeURIComponent(account)}`)
},
checkLoginAccountAvailability: (account: string) => {
return api.get<LoginAccountCheckResponse>(`/user/check/login-account/${encodeURIComponent(account)}`)
},
checkPhoneAvailability: (phone: string) => {
return api.get<AvailabilityCheckResponse>(`/user/check/phone/${encodeURIComponent(phone)}`)
},