feat(category): 类目树、属性、属性字典维护,新增系统管理员管理类目数据
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user