feat(cms): 添加模板ID支持以实现前后台模板渲染一致

- 在 CmsWebsiteServiceImplHelper 中将模板ID写入 CmsWebsiteVo
- 在 ShopVo 中新增模板ID属性及其注释说明
- 模板ID对应后台模板选择器选用,前端据此渲染对应模板页面
- 保证前后台模板配置数据同步和一致性
This commit is contained in:
2026-07-29 11:03:48 +08:00
parent cceb5468a6
commit 7bcfffca04
2 changed files with 5 additions and 0 deletions

View File

@@ -60,6 +60,8 @@ public class CmsWebsiteServiceImplHelper {
// 基本信息
vo.setAppId(website.getTenantId());
vo.setAppName(website.getTenantName());
// 搬运所选模板ID后台模板选择器(/use, websopy-java)写入 cms_website.template_id前台据此渲染 template-XX
vo.setTemplateId(website.getTemplateId());
vo.setTitle(website.getWebsiteName());
vo.setKeywords(website.getKeywords());
vo.setDescription(website.getComments());

View File

@@ -104,4 +104,7 @@ public class ShopVo implements Serializable {
@Schema(description = "应用编号")
private String appCode;
@Schema(description = "模板ID(cms_template.id1~6对应前端 template-XX),由后台模板选择器选用写入")
private Integer templateId;
}