refactor: 引入品牌行业模板配置
This commit is contained in:
1 parent
653fe596ac
commit
3c7ce2a8fa
10 files changed
+15
-8
No files matched your search
@@ -0,0 +1 @@
|
||||
ALTER TABLE "BrandProfile" ADD COLUMN "templateKey" TEXT NOT NULL DEFAULT 'food';
|
||||
@@ -34,6 +34,7 @@ enum FulfillmentType {
|
||||
model BrandProfile {
|
||||
id String @id @default(uuid())
|
||||
name String
|
||||
templateKey String @default("food")
|
||||
tagline String?
|
||||
description String?
|
||||
avatarUrl String?
|
||||
|
||||
@@ -10,6 +10,7 @@ async function main(): Promise<void> {
|
||||
create: {
|
||||
id: "00000000-0000-0000-0000-000000000001",
|
||||
name: "阿成家常菜",
|
||||
templateKey: "food",
|
||||
tagline: "现做家常套餐,也为小型聚餐定制一桌热饭菜",
|
||||
description: "每天认真做好一顿家常饭。",
|
||||
hours: "周一至周六 10:30-20:00",
|
||||
|
||||
@@ -2,6 +2,7 @@ import { IsArray, IsBoolean, IsIn, IsInt, IsOptional, IsString, Max, Min } from
|
||||
|
||||
export class UpdateBrandDto {
|
||||
@IsOptional() @IsString() name?: string;
|
||||
@IsOptional() @IsString() templateKey?: string;
|
||||
@IsOptional() @IsString() tagline?: string;
|
||||
@IsOptional() @IsString() description?: string;
|
||||
@IsOptional() @IsString() avatarUrl?: string;
|
||||
|
||||
@@ -48,6 +48,7 @@ export class PublicController {
|
||||
select: {
|
||||
id: true,
|
||||
name: true,
|
||||
templateKey: true,
|
||||
tagline: true,
|
||||
description: true,
|
||||
avatarUrl: true,
|
||||
|
||||
Reference in new issue
Block a user