mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 01:01:52 +08:00
营销:统一装修预览图片字段名称
This commit is contained in:
parent
30fce2911f
commit
680718c78f
@ -24,6 +24,6 @@ public class DiyPageBaseVO {
|
|||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
@Schema(description = "预览图")
|
@Schema(description = "预览图")
|
||||||
private List<String> previewImageUrls;
|
private List<String> previewPicUrls;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,6 @@ public class DiyTemplateBaseVO {
|
|||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
@Schema(description = "预览图", example = "[https://www.iocoder.cn/1.jpg]")
|
@Schema(description = "预览图", example = "[https://www.iocoder.cn/1.jpg]")
|
||||||
private List<String> previewImageUrls;
|
private List<String> previewPicUrls;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -44,12 +44,11 @@ public class DiyPageDO extends BaseDO {
|
|||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
private String remark;
|
private String remark;
|
||||||
// TODO @疯狂:这个字段要不改成 previewPicUrls,和别的模块一样用 pic 作为图片哇?
|
|
||||||
/**
|
/**
|
||||||
* 预览图,多个逗号分隔
|
* 预览图,多个逗号分隔
|
||||||
*/
|
*/
|
||||||
@TableField(typeHandler = StringListTypeHandler.class)
|
@TableField(typeHandler = StringListTypeHandler.class)
|
||||||
private List<String> previewImageUrls;
|
private List<String> previewPicUrls;
|
||||||
/**
|
/**
|
||||||
* 页面属性,JSON 格式
|
* 页面属性,JSON 格式
|
||||||
*/
|
*/
|
||||||
|
@ -50,12 +50,12 @@ public class DiyTemplateDO extends BaseDO {
|
|||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
private String remark;
|
private String remark;
|
||||||
// TODO @疯狂:这个字段要不改成 previewPicUrls,和别的模块一样用 pic 作为图片哇?
|
|
||||||
/**
|
/**
|
||||||
* 预览图
|
* 预览图
|
||||||
*/
|
*/
|
||||||
@TableField(typeHandler = StringListTypeHandler.class)
|
@TableField(typeHandler = StringListTypeHandler.class)
|
||||||
private List<String> previewImageUrls;
|
private List<String> previewPicUrls;
|
||||||
/**
|
/**
|
||||||
* uni-app 底部导航属性,JSON 格式
|
* uni-app 底部导航属性,JSON 格式
|
||||||
*/
|
*/
|
||||||
|
@ -109,7 +109,7 @@ public class DiyTemplateServiceImplTest extends BaseDbUnitTest {
|
|||||||
o.setUsed(null);
|
o.setUsed(null);
|
||||||
o.setUsedTime(null);
|
o.setUsedTime(null);
|
||||||
o.setRemark(null);
|
o.setRemark(null);
|
||||||
o.setPreviewImageUrls(null);
|
o.setPreviewPicUrls(null);
|
||||||
o.setProperty(null);
|
o.setProperty(null);
|
||||||
o.setCreateTime(null);
|
o.setCreateTime(null);
|
||||||
});
|
});
|
||||||
@ -122,8 +122,8 @@ public class DiyTemplateServiceImplTest extends BaseDbUnitTest {
|
|||||||
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setUsedTime(null)));
|
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setUsedTime(null)));
|
||||||
// 测试 remark 不匹配
|
// 测试 remark 不匹配
|
||||||
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setRemark(null)));
|
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setRemark(null)));
|
||||||
// 测试 previewImageUrls 不匹配
|
// 测试 previewPicUrls 不匹配
|
||||||
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setPreviewImageUrls(null)));
|
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setPreviewPicUrls(null)));
|
||||||
// 测试 property 不匹配
|
// 测试 property 不匹配
|
||||||
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setProperty(null)));
|
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setProperty(null)));
|
||||||
// 测试 createTime 不匹配
|
// 测试 createTime 不匹配
|
||||||
@ -152,7 +152,7 @@ public class DiyTemplateServiceImplTest extends BaseDbUnitTest {
|
|||||||
o.setUsed(null);
|
o.setUsed(null);
|
||||||
o.setUsedTime(null);
|
o.setUsedTime(null);
|
||||||
o.setRemark(null);
|
o.setRemark(null);
|
||||||
o.setPreviewImageUrls(null);
|
o.setPreviewPicUrls(null);
|
||||||
o.setProperty(null);
|
o.setProperty(null);
|
||||||
o.setCreateTime(null);
|
o.setCreateTime(null);
|
||||||
});
|
});
|
||||||
@ -165,8 +165,8 @@ public class DiyTemplateServiceImplTest extends BaseDbUnitTest {
|
|||||||
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setUsedTime(null)));
|
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setUsedTime(null)));
|
||||||
// 测试 remark 不匹配
|
// 测试 remark 不匹配
|
||||||
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setRemark(null)));
|
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setRemark(null)));
|
||||||
// 测试 previewImageUrls 不匹配
|
// 测试 previewPicUrls 不匹配
|
||||||
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setPreviewImageUrls(null)));
|
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setPreviewPicUrls(null)));
|
||||||
// 测试 property 不匹配
|
// 测试 property 不匹配
|
||||||
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setProperty(null)));
|
diyTemplateMapper.insert(cloneIgnoreId(dbDiyTemplate, o -> o.setProperty(null)));
|
||||||
// 测试 createTime 不匹配
|
// 测试 createTime 不匹配
|
||||||
|
@ -228,7 +228,7 @@ CREATE TABLE IF NOT EXISTS "promotion_diy_template"
|
|||||||
"used" bit NOT NULL,
|
"used" bit NOT NULL,
|
||||||
"used_time" varchar,
|
"used_time" varchar,
|
||||||
"remark" varchar,
|
"remark" varchar,
|
||||||
"preview_image_urls" varchar,
|
"preview_pic_urls" varchar,
|
||||||
"property" varchar NOT NULL,
|
"property" varchar NOT NULL,
|
||||||
"creator" varchar DEFAULT '',
|
"creator" varchar DEFAULT '',
|
||||||
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
"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,
|
"template_id" bigint NOT NULL,
|
||||||
"name" varchar NOT NULL,
|
"name" varchar NOT NULL,
|
||||||
"remark" varchar,
|
"remark" varchar,
|
||||||
"preview_image_urls" varchar,
|
"preview_pic_urls" varchar,
|
||||||
"property" varchar,
|
"property" varchar,
|
||||||
"creator" varchar DEFAULT '',
|
"creator" varchar DEFAULT '',
|
||||||
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
Loading…
Reference in New Issue
Block a user