feat(website): 新增后台网站设置扩展字段支持
- 在 CmsWebsite 实体中添加 slogan、copyright、qrCode、socialLinks、seoTitle、seoDescription 字段 - 更新 CmsWebsiteMapper.xml 增加对新增字段的动态更新支持 - 扩展字段用于后台「网站设置」页面维护,公开站按需展示
This commit is contained in:
@@ -163,6 +163,27 @@ public class CmsWebsite implements Serializable {
|
||||
@Schema(description = "网站描述")
|
||||
private String content;
|
||||
|
||||
// ─── 后台「网站设置」扩展字段(website-admin /about 页面维护) ──────────
|
||||
// 这些字段在后台网站设置页维护,公开站展示时按需读取。
|
||||
|
||||
@Schema(description = "品牌标语/Slogan")
|
||||
private String slogan;
|
||||
|
||||
@Schema(description = "版权信息")
|
||||
private String copyright;
|
||||
|
||||
@Schema(description = "微信公众号二维码")
|
||||
private String qrCode;
|
||||
|
||||
@Schema(description = "社交/外部链接(JSON 数组字符串)")
|
||||
private String socialLinks;
|
||||
|
||||
@Schema(description = "SEO 标题")
|
||||
private String seoTitle;
|
||||
|
||||
@Schema(description = "SEO 描述")
|
||||
private String seoDescription;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String comments;
|
||||
|
||||
|
||||
@@ -270,6 +270,24 @@
|
||||
<if test="param.content != null">
|
||||
content = #{param.content},
|
||||
</if>
|
||||
<if test="param.slogan != null">
|
||||
slogan = #{param.slogan},
|
||||
</if>
|
||||
<if test="param.copyright != null">
|
||||
copyright = #{param.copyright},
|
||||
</if>
|
||||
<if test="param.qrCode != null">
|
||||
qr_code = #{param.qrCode},
|
||||
</if>
|
||||
<if test="param.socialLinks != null">
|
||||
social_links = #{param.socialLinks},
|
||||
</if>
|
||||
<if test="param.seoTitle != null">
|
||||
seo_title = #{param.seoTitle},
|
||||
</if>
|
||||
<if test="param.seoDescription != null">
|
||||
seo_description = #{param.seoDescription},
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
deleted = #{param.deleted},
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user