feat: 优化文案模板分组与复制预览

This commit is contained in:
王鹏
2026-09-07 15:40:29 +08:00
parent 074bbda460
commit a466caa793
6 changed files with 474 additions and 15 deletions

View File

@@ -21,6 +21,10 @@ public class TtCopyTemplate extends BaseEntity {
@Excel(name = "按钮名称")
private String templateName;
/** 模板分组 */
@Excel(name = "模板分组")
private String templateGroup;
/** 文案模板内容,支持 {变量} 占位符 */
@Excel(name = "模板内容")
private String templateBody;
@@ -49,6 +53,14 @@ public class TtCopyTemplate extends BaseEntity {
return templateName;
}
public void setTemplateGroup(String templateGroup) {
this.templateGroup = templateGroup;
}
public String getTemplateGroup() {
return templateGroup;
}
public void setTemplateBody(String templateBody) {
this.templateBody = templateBody;
}
@@ -78,6 +90,7 @@ public class TtCopyTemplate extends BaseEntity {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("templateId", getTemplateId())
.append("templateName", getTemplateName())
.append("templateGroup", getTemplateGroup())
.append("templateBody", getTemplateBody())
.append("sortNum", getSortNum())
.append("status", getStatus())
@@ -85,4 +98,4 @@ public class TtCopyTemplate extends BaseEntity {
.append("updateTime", getUpdateTime())
.toString();
}
}
}