完善半自动真实履约链路及虎牙账号资料保存
This commit is contained in:
@@ -68,6 +68,11 @@ export type DevMockSemiAutoResult = {
|
||||
tips: string[]
|
||||
}
|
||||
|
||||
export type DevSemiAutoIntegrationResult = DevMockSemiAutoResult & {
|
||||
pipeline: 'order_service'
|
||||
mappingId: number
|
||||
}
|
||||
|
||||
export function fetchDevMockStatus() {
|
||||
return apiGet<DevMockStatus>('/api/v1/admin/dev-mock/status')
|
||||
}
|
||||
@@ -102,6 +107,21 @@ export function createSemiAutoDevMock(payload: {
|
||||
return apiPost<DevMockSemiAutoResult>('/api/v1/admin/dev-mock/semi-auto', payload)
|
||||
}
|
||||
|
||||
export function createSemiAutoIntegrationDevMock(payload: {
|
||||
platform?: 'huya' | 'weibo'
|
||||
orderNo?: string
|
||||
skuName?: string
|
||||
quantity?: number
|
||||
pageTitle?: string
|
||||
browserTargetUrl?: string
|
||||
connectorMode?: 'embedded' | 'external' | 'mock'
|
||||
}) {
|
||||
return apiPost<DevSemiAutoIntegrationResult>(
|
||||
'/api/v1/admin/dev-mock/semi-auto-integration',
|
||||
payload,
|
||||
)
|
||||
}
|
||||
|
||||
export function buildOpen91QueryDevMock(payload: {
|
||||
orderNo: string
|
||||
execute?: boolean
|
||||
|
||||
Reference in New Issue
Block a user