feat(products): remove mock static fallbacks and add dynamic specialist recommendation management in database and admin panel
This commit is contained in:
1 parent
1ca06d5740
commit
00839017ff
7 files changed
+216
-66
No files matched your search
@@ -476,6 +476,7 @@ export class AdminService {
|
||||
...(data.expectedResults !== undefined
|
||||
? { expectedResults: data.expectedResults }
|
||||
: {}),
|
||||
...(data.specialist !== undefined ? { specialist: data.specialist } : {}),
|
||||
...(data.isPreorder !== undefined ? { isPreorder: data.isPreorder } : {}),
|
||||
...(data.preorderDeposit !== undefined
|
||||
? { preorderDeposit: data.preorderDeposit }
|
||||
@@ -616,6 +617,7 @@ export class AdminService {
|
||||
...(data.expectedResults !== undefined
|
||||
? { expectedResults: data.expectedResults }
|
||||
: {}),
|
||||
...(data.specialist !== undefined ? { specialist: data.specialist } : {}),
|
||||
...(data.isPreorder !== undefined ? { isPreorder: data.isPreorder } : {}),
|
||||
...(data.preorderDeposit !== undefined
|
||||
? { preorderDeposit: data.preorderDeposit }
|
||||
|
||||
@@ -332,6 +332,15 @@ export class ProductDto {
|
||||
@IsArray()
|
||||
expectedResults?: Array<{ icon: string; text: string }>;
|
||||
|
||||
@ApiPropertyOptional({ description: 'توصیه و نظر پزشک متخصص (Specialist Endorsement)' })
|
||||
@IsOptional()
|
||||
specialist?: {
|
||||
name?: string;
|
||||
title?: string;
|
||||
image?: string;
|
||||
message?: string;
|
||||
};
|
||||
|
||||
@ApiPropertyOptional({ description: 'پیکربندی جامع دوز و دادههای تکمیلی' })
|
||||
@IsOptional()
|
||||
dosageConfig?: Record<string, any>;
|
||||
|
||||
Reference in new issue
Block a user