feat(fulfillment): 增加订单匹配起算时间
This commit is contained in:
@@ -11,10 +11,16 @@ export const platformFulfillmentApi = {
|
||||
api.get<PlatformFulfillmentSettings, PlatformFulfillmentSettings>(
|
||||
'/platform-fulfillment/settings',
|
||||
),
|
||||
updateSettings: (leaseDurationMinutes: number | null) =>
|
||||
updateSettings: (data: {
|
||||
leaseDurationMinutes: number | null;
|
||||
orderMatchStartedAt: string | null;
|
||||
}) =>
|
||||
api.put<PlatformFulfillmentSettings, PlatformFulfillmentSettings>(
|
||||
'/platform-fulfillment/settings',
|
||||
{ lease_duration_minutes: leaseDurationMinutes },
|
||||
{
|
||||
lease_duration_minutes: data.leaseDurationMinutes,
|
||||
order_match_started_at: data.orderMatchStartedAt,
|
||||
},
|
||||
),
|
||||
listTasks: (params: {
|
||||
status?: string;
|
||||
|
||||
@@ -2120,6 +2120,7 @@ export interface PlatformFulfillmentAccount {
|
||||
|
||||
export interface PlatformFulfillmentSettings {
|
||||
leaseDurationMinutes: number | null;
|
||||
orderMatchStartedAt: string | null;
|
||||
updatedAt: string | null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user