feat: 增加门窗行业模板声明与验收夹具

This commit is contained in:
que01 committed 2026-09-23 01:07:56 +08:00
1 parent 8b85cc0403
commit 041a6a7f02
7 files changed
+70 -9

No files matched your search

+1 -1
View File
@@ -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 } });