feat(douyu): 新增客户领取与角色绑定工作台

This commit is contained in:
yml
2026-11-18 11:00:28 +08:00
parent d0ec21ce16
commit 6de129d70a
29 changed files with 2119 additions and 5 deletions
@@ -103,6 +103,7 @@ export type DevDouyuFulfillmentMockResult = {
configId: number
mappingId: number
skuKey: string
customerPath: string
adminPath: string
tips: string[]
}
@@ -976,6 +977,12 @@ export async function createDouyuFulfillmentMock(
},
configNote: '开发 Mock:斗鱼直播账号履约',
})
await query(
`UPDATE manual_fulfillment_configs
SET douyu_fulfillment_enabled = TRUE, updated_at = NOW()
WHERE id = $1`,
[persisted.configId],
)
const verification = await query<{
semi_auto_task_count: number
@@ -1004,6 +1011,7 @@ export async function createDouyuFulfillmentMock(
platform: 'douyu',
pipeline: 'order_service',
...persisted,
customerPath: `/coll/d/${encodeURIComponent(persisted.orderNo)}`,
adminPath: `/admin/orders/${persisted.orderId}`,
tips: [
'订单已通过 upsertOrderFromSource 正式入库。',