2025-11-13 15:37:50 +07:00
|
|
|
export interface IStateDrop {
|
|
|
|
|
income: IDropAct[];
|
|
|
|
|
expense: IDropAct[];
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-13 14:20:15 +07:00
|
|
|
export interface IDropAct {
|
|
|
|
|
dtlnam?: string,
|
|
|
|
|
dtlcod?: string
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-13 15:37:50 +07:00
|
|
|
export interface IStateResultResponse {
|
|
|
|
|
data: IStateDrop;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-13 14:20:15 +07:00
|
|
|
// ข้อมูลสินค้าหลัก
|
|
|
|
|
// export interface IProduct {
|
|
|
|
|
// id: string;
|
|
|
|
|
// name: string;
|
|
|
|
|
// price: number;
|
|
|
|
|
// category: string;
|
|
|
|
|
// inStock: boolean;
|
|
|
|
|
// description?: string; // optional
|
|
|
|
|
// imageUrl?: string;
|
|
|
|
|
// tags: string[];
|
|
|
|
|
// createdAt: Date;
|
|
|
|
|
// updatedAt: Date;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// // ข้อมูลสินค้าแบบย่อ (ใช้ในรายการ)
|
|
|
|
|
// export interface IProductSummary {
|
|
|
|
|
// id: string;
|
|
|
|
|
// name: string;
|
|
|
|
|
// price: number;
|
|
|
|
|
// imageUrl?: string;
|
|
|
|
|
// inStock: boolean;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// // ข้อมูลสำหรับฟอร์ม
|
|
|
|
|
// export interface IProductForm {
|
|
|
|
|
// name: string;
|
|
|
|
|
// price: number;
|
|
|
|
|
// category: string;
|
|
|
|
|
// description?: string;
|
|
|
|
|
// inStock: boolean;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// // ข้อมูลการจัดหมวดหมู่
|
|
|
|
|
// export interface IProductCategory {
|
|
|
|
|
// id: string;
|
|
|
|
|
// name: string;
|
|
|
|
|
// parentId?: string;
|
|
|
|
|
// productCount: number;
|
|
|
|
|
// }
|