feat: 收口多品牌与模板构建基础
This commit is contained in:
1 parent
0425a1c672
commit
77224ea51f
317 files changed
+11290
-1158
No files matched your search
@@ -6,6 +6,7 @@ import {
|
||||
IsObject,
|
||||
IsOptional,
|
||||
IsString,
|
||||
MinLength,
|
||||
Matches,
|
||||
Max,
|
||||
Min,
|
||||
@@ -26,6 +27,34 @@ export class UpdateBrandDto {
|
||||
@IsOptional() @IsObject() config?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export class UpdateBrandPresentationDto {
|
||||
@IsOptional() @IsObject() identity?: Record<string, unknown>;
|
||||
@IsOptional() @IsObject() home?: Record<string, unknown>;
|
||||
@IsOptional() @IsObject() offerings?: Record<string, unknown>;
|
||||
@IsOptional() @IsObject() detail?: Record<string, unknown>;
|
||||
@IsOptional() @IsObject() profile?: Record<string, unknown>;
|
||||
@IsOptional() @IsObject() inquiry?: Record<string, unknown>;
|
||||
@IsOptional() @IsObject() success?: Record<string, unknown>;
|
||||
@IsOptional() @IsObject() records?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export class UpdateBrandMemberDto {
|
||||
@IsOptional() @IsIn(["owner", "editor"]) role?: "owner" | "editor";
|
||||
@IsOptional() @IsBoolean() isEnabled?: boolean;
|
||||
}
|
||||
|
||||
export class CreateBrandMemberDto {
|
||||
@IsString() username!: string;
|
||||
@IsString() displayName!: string;
|
||||
@IsString() @MinLength(8) password!: string;
|
||||
@IsIn(["owner", "editor"]) role!: "owner" | "editor";
|
||||
}
|
||||
|
||||
export class ChangeAdminPasswordDto {
|
||||
@IsString() currentPassword!: string;
|
||||
@IsString() @MinLength(8) newPassword!: string;
|
||||
}
|
||||
|
||||
export class CreateTrustContentDto {
|
||||
@IsIn(["profile", "experience", "credential", "portfolio", "process", "testimonial"])
|
||||
type!: string;
|
||||
|
||||
Reference in new issue
Block a user