import type {ISysFileInfo} from "@/domain/iSysFile.ts"; /** 商品分类(多级,children 由后端组装) */ export default interface IProductCategory { id?: number; parent_id?: number; name?: string; sort?: number; status?: number; icon_id?: number; icon?: ISysFileInfo; icon_url?: string; children?: IProductCategory[]; created_at?: string; } /** 商品分类(多级,children 由后端组装) */ export interface IProductCategoryTree { id?: number; parent_id?: number; name?: string; children?: IProductCategoryTree[]; } export const CATEGORY_STATUS_MAP: Record = { 0: { text: '停用', color: 'error' }, 1: { text: '正常', color: 'success' }, };