优化打手提现审核流程

This commit is contained in:
yml2213
2026-08-17 11:18:14 +08:00
parent 9ed2e0d4fe
commit ea5c2a4105
13 changed files with 623 additions and 138 deletions
+14
View File
@@ -6,6 +6,7 @@ import { uploadFileAsset } from '../services/file-storage/file-storage-service.j
import {
changeWorkerPassword,
createWorkerRechargeRequest,
createWorkerWithdrawalAccount,
createWorkerWithdrawRequest,
getWorkerProfile,
getWorkerSessionSummary,
@@ -147,6 +148,19 @@ router.post(
),
)
router.post(
'/profile/withdrawal-account',
requireActiveWorker,
createRouteHandler(
(req) => createWorkerWithdrawalAccount(req.body || {}, getRequiredWorkerSession(req)),
{
successMessage: '提现信息已添加',
errorMessage: '添加提现信息失败',
scope: '[worker/profile/withdrawal-account]',
},
),
)
router.post(
'/profile/withdraw-requests',
requireActiveWorker,