first version

This commit is contained in:
liu
2026-07-23 20:41:25 +08:00
parent 00a0938a1b
commit 10cff754a4
211 changed files with 11577 additions and 842 deletions
+15
View File
@@ -0,0 +1,15 @@
/** 商品分类(多级,children 由后端组装) */
export default interface IProductCategory {
id?: number;
parent_id?: number;
name?: string;
sort?: number;
status?: number;
children?: IProductCategory[];
created_at?: string;
}
export const CATEGORY_STATUS_MAP: Record<number, { text: string; color: string }> = {
0: { text: '停用', color: 'error' },
1: { text: '正常', color: 'success' },
};