feat(admin): add comprehensive product attributes management and dynamic analysis table
This commit is contained in:
1 parent
68840fbdf2
commit
ceaab10fdd
14 files changed
+2362
-1873
No files matched your search
@@ -304,6 +304,34 @@ export class ProductDto {
|
||||
@IsArray()
|
||||
keyHighlights?: string[];
|
||||
|
||||
@ApiPropertyOptional({ description: 'کارتهای شاخص «چرا این محصول؟» (۳ کارت مزایا)' })
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
keyBenefits?: Array<{ icon: string; title: string; description: string }>;
|
||||
|
||||
@ApiPropertyOptional({ description: 'جدول آنالیز و درصد ترکیبات (Analytical Constituents)' })
|
||||
@IsOptional()
|
||||
analysis?: Record<string, string>;
|
||||
|
||||
@ApiPropertyOptional({ description: 'زمان شروع اثربخشی (Onset of Action)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
onSetOfAction?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'برچسب ویژه محصول (Special Badge)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
specialBadge?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'موارد منع مصرف (Contraindications)' })
|
||||
@IsOptional()
|
||||
contraindications?: string[] | string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'نتایج بالینی مورد انتظار (Expected Clinical Results)' })
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
expectedResults?: Array<{ icon: string; text: string }>;
|
||||
|
||||
@ApiPropertyOptional({ description: 'پیکربندی جامع دوز و دادههای تکمیلی' })
|
||||
@IsOptional()
|
||||
dosageConfig?: Record<string, any>;
|
||||
|
||||
Reference in new issue
Block a user