feat: 增加门窗行业模板声明与验收夹具
This commit is contained in:
1 parent
8b85cc0403
commit
041a6a7f02
7 files changed
+70
-9
No files matched your search
@@ -6,7 +6,7 @@ import { PrismaService } from "./prisma.service.js";
|
||||
@Injectable()
|
||||
export class TemplateWorkspaceService {
|
||||
constructor(private readonly prisma: PrismaService) {}
|
||||
async install(brandId: string, templateKey: "personal" | "food") {
|
||||
async install(brandId: string, templateKey: "personal" | "food" | "doors") {
|
||||
const template = getBrandTemplate(templateKey);
|
||||
if (!template) throw new BadRequestException("行业模板不存在");
|
||||
const existing = await this.prisma.brandTemplateInstallation.findFirst({ where: { brandId } });
|
||||
|
||||
Reference in new issue
Block a user