feat: 增加业务提供项管理与详情接口
This commit is contained in:
1 parent
a73e377f91
commit
066f6595e4
4 files changed
+152
No files matched your search
@@ -86,3 +86,21 @@ export class InstallTemplateDto {
|
||||
@IsIn(["personal", "food"])
|
||||
templateKey!: "personal" | "food";
|
||||
}
|
||||
|
||||
export class CreateOfferingDto {
|
||||
@IsIn(["service", "product", "package", "subscription"]) kind!: string;
|
||||
@IsString() name!: string;
|
||||
@IsOptional() @IsString() summary?: string;
|
||||
@IsOptional() @IsString() description?: string;
|
||||
@IsOptional() @IsString() coverUrl?: string;
|
||||
@IsOptional() @IsString() priceText?: string;
|
||||
@IsOptional() @IsInt() @Min(0) priceAmount?: number;
|
||||
@IsOptional() @IsInt() @Min(0) @Max(9999) sortOrder?: number;
|
||||
@IsOptional() @IsBoolean() isEnabled?: boolean;
|
||||
@IsOptional() config?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export class UpdateOfferingDto extends CreateOfferingDto {
|
||||
@IsOptional() @IsIn(["service", "product", "package", "subscription"]) kind?: string;
|
||||
@IsOptional() @IsString() name?: string;
|
||||
}
|
||||
Reference in new issue
Block a user