优化电子凭证操作与测试数据

This commit is contained in:
yml2213
2026-08-14 15:14:34 +08:00
parent dffe32e84a
commit 78d6c2f8a1
6 changed files with 264 additions and 13 deletions
@@ -35,6 +35,16 @@ export type DevMockOpen91QueryResult = {
response: unknown
}
export type DevMockKuaishouIndustryVoucherResult = {
createdCount: number
sellerId: string
vouchers: Array<{
voucherCode: string
oid: string
status: string
}>
}
export function fetchDevMockStatus() {
return apiGet<DevMockStatus>('/api/v1/admin/dev-mock/status')
}
@@ -69,6 +79,13 @@ export function createAffiliateDashDevMock(payload: {
return apiPost<DevMockCreateResult>('/api/v1/admin/dev-mock/affiliate-dash', payload)
}
export function createKuaishouIndustryVoucherDevMock(payload: { sellerId?: string } = {}) {
return apiPost<DevMockKuaishouIndustryVoucherResult>(
'/api/v1/admin/dev-mock/kuaishou-industry/vouchers',
payload,
)
}
export function buildOpen91QueryDevMock(payload: {
orderNo: string
execute?: boolean