feat(cms): 添加模板ID支持以实现前后台模板渲染一致
- 在 CmsWebsiteServiceImplHelper 中将模板ID写入 CmsWebsiteVo - 在 ShopVo 中新增模板ID属性及其注释说明 - 模板ID对应后台模板选择器选用,前端据此渲染对应模板页面 - 保证前后台模板配置数据同步和一致性
This commit is contained in:
@@ -60,6 +60,8 @@ public class CmsWebsiteServiceImplHelper {
|
|||||||
// 基本信息
|
// 基本信息
|
||||||
vo.setAppId(website.getTenantId());
|
vo.setAppId(website.getTenantId());
|
||||||
vo.setAppName(website.getTenantName());
|
vo.setAppName(website.getTenantName());
|
||||||
|
// 搬运所选模板ID:后台模板选择器(/use, websopy-java)写入 cms_website.template_id,前台据此渲染 template-XX
|
||||||
|
vo.setTemplateId(website.getTemplateId());
|
||||||
vo.setTitle(website.getWebsiteName());
|
vo.setTitle(website.getWebsiteName());
|
||||||
vo.setKeywords(website.getKeywords());
|
vo.setKeywords(website.getKeywords());
|
||||||
vo.setDescription(website.getComments());
|
vo.setDescription(website.getComments());
|
||||||
|
|||||||
@@ -104,4 +104,7 @@ public class ShopVo implements Serializable {
|
|||||||
|
|
||||||
@Schema(description = "应用编号")
|
@Schema(description = "应用编号")
|
||||||
private String appCode;
|
private String appCode;
|
||||||
|
|
||||||
|
@Schema(description = "模板ID(cms_template.id,1~6,对应前端 template-XX),由后台模板选择器选用写入")
|
||||||
|
private Integer templateId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user