feat(douyu): 增加领取订单匹配起算时间
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { apiGet, apiPost } from '@/lib/http'
|
||||
import { apiGet, apiPost, apiPut } from '@/lib/http'
|
||||
import type { DouyuFulfillmentDetail, DouyuFulfillmentTask } from '@/types/douyu-fulfillment'
|
||||
|
||||
export function fetchAdminDouyuFulfillmentTasks(params: {
|
||||
@@ -13,6 +13,20 @@ export function fetchAdminDouyuFulfillmentTasks(params: {
|
||||
}>('/api/v1/admin/douyu-fulfillment/tasks', { params })
|
||||
}
|
||||
|
||||
export function fetchAdminDouyuFulfillmentSettings() {
|
||||
return apiGet<{
|
||||
orderMatchStartedAt: string
|
||||
updatedAt: string
|
||||
}>('/api/v1/admin/douyu-fulfillment/settings')
|
||||
}
|
||||
|
||||
export function updateAdminDouyuFulfillmentSettings(orderMatchStartedAt: string) {
|
||||
return apiPut<{
|
||||
orderMatchStartedAt: string
|
||||
updatedAt: string
|
||||
}>('/api/v1/admin/douyu-fulfillment/settings', { orderMatchStartedAt })
|
||||
}
|
||||
|
||||
export function syncAdminDouyuFulfillmentTasks() {
|
||||
return apiPost<{ created: number; updated: number; checked: number }>(
|
||||
'/api/v1/admin/douyu-fulfillment/sync',
|
||||
|
||||
Reference in New Issue
Block a user