优化电子凭证操作与测试数据
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user