修复打手短信验证码发送
This commit is contained in:
@@ -13,11 +13,18 @@ import type {
|
||||
WorkerWalletLedger,
|
||||
} from '@/types/worker-platform'
|
||||
|
||||
export function sendWorkerSmsCode(payload: { phone: string }) {
|
||||
return apiPost<{ sent: boolean; expiresInSeconds: number; provider: string }>(
|
||||
'/api/v1/worker/auth/sms-code',
|
||||
payload,
|
||||
)
|
||||
}
|
||||
|
||||
export function registerWorker(payload: {
|
||||
username: string
|
||||
phone: string
|
||||
code: string
|
||||
password: string
|
||||
displayName?: string
|
||||
phone?: string
|
||||
inviteCode?: string
|
||||
}) {
|
||||
return apiPost<{ worker: WorkerUser; reviewRequired: boolean }>(
|
||||
|
||||
Reference in New Issue
Block a user