feat(dev-mock): 新增斗鱼履约 Mock 与分页控制台
- 增加斗鱼客户履约 Mock 订单与角色绑定联调能力 - 重构开发 Mock 控制台为可切换分页界面 - 补充斗鱼履约 Mock 集成测试
This commit is contained in:
@@ -73,6 +73,20 @@ export type DevSemiAutoIntegrationResult = DevMockSemiAutoResult & {
|
||||
mappingId: number
|
||||
}
|
||||
|
||||
export type DevDouyuFulfillmentMockResult = {
|
||||
platform: 'douyu'
|
||||
pipeline: 'order_service'
|
||||
orderId: number
|
||||
orderNo: string
|
||||
orderItemId: number
|
||||
fulfillmentId: number
|
||||
configId: number
|
||||
mappingId: number
|
||||
skuKey: string
|
||||
adminPath: string
|
||||
tips: string[]
|
||||
}
|
||||
|
||||
export function fetchDevMockStatus() {
|
||||
return apiGet<DevMockStatus>('/api/v1/admin/dev-mock/status')
|
||||
}
|
||||
@@ -122,6 +136,10 @@ export function createSemiAutoIntegrationDevMock(payload: {
|
||||
)
|
||||
}
|
||||
|
||||
export function createDouyuFulfillmentDevMock(payload: { orderNo?: string; skuName?: string }) {
|
||||
return apiPost<DevDouyuFulfillmentMockResult>('/api/v1/admin/dev-mock/douyu-fulfillment', payload)
|
||||
}
|
||||
|
||||
export function buildOpen91QueryDevMock(payload: {
|
||||
orderNo: string
|
||||
execute?: boolean
|
||||
|
||||
Reference in New Issue
Block a user