优化电子凭证操作与测试数据
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
buildOpen91QueryMock,
|
||||
createAffiliateDashMockClaim,
|
||||
createFeifeiMockClaim,
|
||||
createKuaishouIndustryVoucherMockData,
|
||||
createLewanMockClaim,
|
||||
getDevMockStatus,
|
||||
isDevMockEnabled,
|
||||
@@ -101,6 +102,23 @@ router.post(
|
||||
}),
|
||||
)
|
||||
|
||||
router.post(
|
||||
'/dev-mock/kuaishou-industry/vouchers',
|
||||
createJsonHandler((req) => createKuaishouIndustryVoucherMockData(req.body || {}), {
|
||||
successMessage: '快手电子凭证 Mock 已生成',
|
||||
errorMessage: '生成快手电子凭证 Mock 失败',
|
||||
scope: '[admin/dev-mock/kuaishou-industry/vouchers]',
|
||||
audit: (_req, data) => ({
|
||||
action: 'dev_mock_create_kuaishou_industry_vouchers',
|
||||
targetType: 'dev_mock',
|
||||
targetId: String((data as { sellerId?: string })?.sellerId || ''),
|
||||
data: {
|
||||
createdCount: (data as { createdCount?: number })?.createdCount || 0,
|
||||
},
|
||||
}),
|
||||
}),
|
||||
)
|
||||
|
||||
router.post(
|
||||
'/dev-mock/open91/query',
|
||||
createJsonHandler((req) => buildOpen91QueryMock(req.body || {}), {
|
||||
|
||||
Reference in New Issue
Block a user