|
@@ -1,6 +1,7 @@
|
|
|
import { ORDER_ITEM_STATUS } from '@/constants';
|
|
import { ORDER_ITEM_STATUS } from '@/constants';
|
|
|
import { AxiosResponse } from 'axios';
|
|
import { AxiosResponse } from 'axios';
|
|
|
-import { BaseEntity, BaseQueryParams, PageResult, ApiResponseData } from './order';
|
|
|
|
|
|
|
+import type { BaseEntity, BaseQueryParams, ApiResponseData } from './order';
|
|
|
|
|
+import type { PageResult as CommonPageResult } from './common';
|
|
|
|
|
|
|
|
export type OrderItemStatus = (typeof ORDER_ITEM_STATUS)[keyof typeof ORDER_ITEM_STATUS];
|
|
export type OrderItemStatus = (typeof ORDER_ITEM_STATUS)[keyof typeof ORDER_ITEM_STATUS];
|
|
|
// export type OrderItemStatus = 'PENDING' | 'CONFIRMED' | 'SHIPPED' | 'DELIVERED' | 'CANCELLED';
|
|
// export type OrderItemStatus = 'PENDING' | 'CONFIRMED' | 'SHIPPED' | 'DELIVERED' | 'CANCELLED';
|
|
@@ -62,7 +63,7 @@ export interface OrderItemRecord extends BaseEntity {
|
|
|
itemStatus: OrderItemStatus;
|
|
itemStatus: OrderItemStatus;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export type OrderItemListResponse = AxiosResponse<ApiResponseData<PageResult<OrderItemRecord>>>;
|
|
|
|
|
|
|
+export type OrderItemListResponse = AxiosResponse<ApiResponseData<CommonPageResult<OrderItemRecord>>>;
|
|
|
|
|
|
|
|
export type OrderItemDetailResponse = AxiosResponse<ApiResponseData<OrderItemRecord>>;
|
|
export type OrderItemDetailResponse = AxiosResponse<ApiResponseData<OrderItemRecord>>;
|
|
|
|
|
|