// 商品分类类型定义
export interface GoodsCategory {
  id: number;
  name: string;
  description?: string;
  parentId?: number;
  image?: string;
  sortOrder: number;
  isActive: boolean;
  createdAt: string;
  updatedAt: string;
}

// 商品分类表单数据类型
export interface GoodsCategoryFormData {
  name: string;
  description?: string;
  parentId?: number;
  image?: string;
  sortOrder: number;
  isActive: boolean;
}

// 商品分类节点类型定义（用于树形结构）
export interface GoodsCategoryNode {
  id: number;
  name: string;
  parentId: number | null;
  level: number;
  state: number;
  imageFileId?: number | null;
  imageFile?: {
    id: number;
    fullUrl: string;
  };
  createdAt?: string;
  updatedAt?: string;
  createdBy?: number | null;
  updatedBy?: number | null;
  children?: GoodsCategoryNode[];
}