优化
This commit is contained in:
@@ -106,6 +106,7 @@ export interface PlatformFirstLegOrderPageResource {
|
||||
}
|
||||
|
||||
export interface PlatformFirstLegOrderQuery {
|
||||
tenantId?: string
|
||||
keyword?: string
|
||||
status?: PlatformFirstLegOrderStatus
|
||||
customerId?: string
|
||||
@@ -126,8 +127,8 @@ async function postData<T>(path: string, body?: unknown, params?: Record<string,
|
||||
return unwrapApiResponse(response)
|
||||
}
|
||||
|
||||
export function listPlatformFirstLegOrders(tenantId: string, query: PlatformFirstLegOrderQuery) {
|
||||
return getData<PlatformFirstLegOrderPageResource>('/platform/v1/orders/first-leg', { tenantId, ...query })
|
||||
export function listPlatformFirstLegOrders(query: PlatformFirstLegOrderQuery) {
|
||||
return getData<PlatformFirstLegOrderPageResource>('/platform/v1/orders/first-leg', { ...query })
|
||||
}
|
||||
|
||||
export function getPlatformFirstLegOrder(tenantId: string, orderId: string) {
|
||||
|
||||
Reference in New Issue
Block a user