feat(category): 类目树、属性、属性字典维护,新增系统管理员管理类目数据

This commit is contained in:
R524809
2026-09-18 18:55:16 +08:00
parent fcddb11da0
commit 388429dbd0
58 changed files with 4347 additions and 640 deletions
+30
View File
@@ -65,6 +65,14 @@ export type ProductAttributeSchema = {
max_value_count: number;
dictionary_id: string | null;
is_aspect: boolean;
editor_field:
| 'category'
| 'brand'
| 'model'
| 'tags'
| 'rich_content'
| 'description'
| null;
};
export type ProductAttributeDictionaryValue = {
@@ -72,6 +80,28 @@ export type ProductAttributeDictionaryValue = {
value: string;
};
export type ProductEditorValidationIssue = {
code: string;
field: string;
message: string;
platform_attribute_id?: string;
};
export type ProductEditorValidation = {
ready: boolean;
profile: {
ready: boolean;
issues: ProductEditorValidationIssue[];
};
variants: Array<{
variant_id: string;
display_name: string | null;
status: 'ready' | 'blocked' | 'not_publishable_again';
ready: boolean;
issues: ProductEditorValidationIssue[];
}>;
};
/**
* M3.0 editor entry and read-model contracts. Draft mutation, pricing, and
* publishing DTOs intentionally stay out of this first editor slice.