Create order in admin
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { RowDataType } from "@/components/types/TableTypes";
|
||||
import { type BaseResponse } from "@/shared/types/Types";
|
||||
import type { FieldTypeEnum } from "../enum/Enum";
|
||||
import type { OrderStatusEnum } from "@/pages/order/enum/OrderEnum";
|
||||
|
||||
export interface CategoryType extends RowDataType {
|
||||
avatarUrl: string | null;
|
||||
@@ -86,3 +87,32 @@ export type AttributeValueType = {
|
||||
|
||||
export type AttributeValuesResponseType = BaseResponse<AttributeValueType[]>;
|
||||
export type AttributeValueDetailResponseType = BaseResponse<AttributeValueType>;
|
||||
|
||||
export type FieldValueType = {
|
||||
attribute: number;
|
||||
createdAt: string;
|
||||
id: number;
|
||||
order: number;
|
||||
value: string;
|
||||
};
|
||||
|
||||
export type FieldType = {
|
||||
createdAt: string;
|
||||
id: number;
|
||||
isRequired: boolean;
|
||||
name: string;
|
||||
order: number;
|
||||
product: number;
|
||||
type: FieldTypeEnum;
|
||||
options: AttributeValueType[];
|
||||
};
|
||||
|
||||
export type FieldResponseType = BaseResponse<FieldType[]>;
|
||||
|
||||
export type CreateBaseOrderType = {
|
||||
userId: string,
|
||||
paymentMethod: string,
|
||||
enableTax: boolean,
|
||||
estimatedDays: number,
|
||||
status: OrderStatusEnum,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user