Create order in admin

This commit is contained in:
hamid zarghami
2026-02-01 10:02:45 +03:30
parent 2ced4666c8
commit 5c536667b1
18 changed files with 712 additions and 4 deletions
+30
View File
@@ -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,
}