营销:统一装修预览图片字段名称

This commit is contained in:
owen 2024-01-11 11:21:24 +08:00
parent 30fce2911f
commit 680718c78f
6 changed files with 13 additions and 14 deletions

View File

@ -24,6 +24,6 @@ public class DiyPageBaseVO {
private String remark;
@Schema(description = "预览图")
private List<String> previewImageUrls;
private List<String> previewPicUrls;
}

View File

@ -21,6 +21,6 @@ public class DiyTemplateBaseVO {
private String remark;
@Schema(description = "预览图", example = "[https://www.iocoder.cn/1.jpg]")
private List<String> previewImageUrls;
private List<String> previewPicUrls;
}

View File

@ -44,12 +44,11 @@ public class DiyPageDO extends BaseDO {
* 备注
*/
private String remark;
// TODO @疯狂这个字段要不改成 previewPicUrls和别的模块一样用 pic 作为图片哇
/**
* 预览图多个逗号分隔
*/
@TableField(typeHandler = StringListTypeHandler.class)
private List<String> previewImageUrls;
private List<String> previewPicUrls;
/**
* 页面属性JSON 格式
*/

View File

@ -50,12 +50,12 @@ public class DiyTemplateDO extends BaseDO {
* 备注
*/
private String remark;
// TODO @疯狂这个字段要不改成 previewPicUrls和别的模块一样用 pic 作为图片哇
/**
* 预览图
*/
@TableField(typeHandler = StringListTypeHandler.class)
private List<String> previewImageUrls;
private List<String> previewPicUrls;
/**
* uni-app 底部导航属性JSON 格式
*/

View File

@ -109,7 +109,7 @@ public class DiyTemplateServiceImplTest extends BaseDbUnitTest {
o.setUsed(null);
o.setUsedTime(null);
o.setRemark(null);
o.setPreviewImageUrls(null);
o.setPreviewPicUrls(null);
o.setProperty(null);
o.setCreateTime(null);
});
@ -122,8 +122,8 @@ public class DiyTemplateServiceImplTest extends BaseDbUnitTest {
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setUsedTime(null)));
// 测试 remark 不匹配
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setRemark(null)));
// 测试 previewImageUrls 不匹配
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setPreviewImageUrls(null)));
// 测试 previewPicUrls 不匹配
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setPreviewPicUrls(null)));
// 测试 property 不匹配
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setProperty(null)));
// 测试 createTime 不匹配
@ -152,7 +152,7 @@ public class DiyTemplateServiceImplTest extends BaseDbUnitTest {
o.setUsed(null);
o.setUsedTime(null);
o.setRemark(null);
o.setPreviewImageUrls(null);
o.setPreviewPicUrls(null);
o.setProperty(null);
o.setCreateTime(null);
});
@ -165,8 +165,8 @@ public class DiyTemplateServiceImplTest extends BaseDbUnitTest {
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setUsedTime(null)));
// 测试 remark 不匹配
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setRemark(null)));
// 测试 previewImageUrls 不匹配
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setPreviewImageUrls(null)));
// 测试 previewPicUrls 不匹配
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setPreviewPicUrls(null)));
// 测试 property 不匹配
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setProperty(null)));
// 测试 createTime 不匹配

View File

@ -228,7 +228,7 @@ CREATE TABLE IF NOT EXISTS "promotion_diy_template"
"used" bit NOT NULL,
"used_time" varchar,
"remark" varchar,
"preview_image_urls" varchar,
"preview_pic_urls" varchar,
"property" varchar NOT NULL,
"creator" varchar DEFAULT '',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
@ -244,7 +244,7 @@ CREATE TABLE IF NOT EXISTS "promotion_diy_page"
"template_id" bigint NOT NULL,
"name" varchar NOT NULL,
"remark" varchar,
"preview_image_urls" varchar,
"preview_pic_urls" varchar,
"property" varchar,
"creator" varchar DEFAULT '',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,