完善支付宝提现收款码
This commit is contained in:
@@ -310,6 +310,7 @@ export function saveAdminWorkerWithdrawalAccount(
|
||||
payload: {
|
||||
accountName: string
|
||||
accountNo?: string
|
||||
alipayQrCodeImages?: UploadedFile[]
|
||||
wechatQrCodeImages?: UploadedFile[]
|
||||
},
|
||||
) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { apiDelete, apiGet, apiPost } from '@/lib/http'
|
||||
import { apiDelete, apiGet, apiPost, apiPut } from '@/lib/http'
|
||||
import type {
|
||||
CollectLookupResponse,
|
||||
UploadedFile,
|
||||
@@ -176,11 +176,16 @@ export function createWorkerWithdrawalAccount(payload: {
|
||||
accountChannel: string
|
||||
accountName: string
|
||||
accountNo?: string
|
||||
alipayQrCodeImages?: UploadedFile[]
|
||||
wechatQrCodeImages?: UploadedFile[]
|
||||
}) {
|
||||
return apiPost('/api/v1/worker/profile/withdrawal-account', payload)
|
||||
}
|
||||
|
||||
export function saveWorkerAlipayWithdrawalQrCode(payload: { alipayQrCodeImages: UploadedFile[] }) {
|
||||
return apiPut('/api/v1/worker/profile/withdrawal-account/alipay-qr-code', payload)
|
||||
}
|
||||
|
||||
export function changeWorkerPassword(payload: { currentPassword: string; newPassword: string }) {
|
||||
return apiPost<{ worker: WorkerUser; reloginRequired: boolean }>(
|
||||
'/api/v1/worker/profile/change-password',
|
||||
|
||||
Reference in New Issue
Block a user