|
@@ -1,7 +1,6 @@
|
|
|
package com.backendsys.modules.b2c.good.entity;
|
|
|
|
|
|
import com.backendsys.config.Mybatis.handler.timezone.LocalDateTimeAdapter;
|
|
|
-import com.backendsys.entity.B2c.B2cGoodDTO;
|
|
|
import com.backendsys.entity.validator.RangeArray;
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
@@ -41,41 +40,47 @@ public class Good {
|
|
|
@NotEmpty(message="uid 不能为空", groups = { DetailByUid.class })
|
|
|
private String uid;
|
|
|
|
|
|
- @NotNull(message = "商品分类ID不能为空", groups = { B2cGoodDTO.Create.class, B2cGoodDTO.Update.class })
|
|
|
+ @NotNull(message = "商品分类ID不能为空", groups = { Create.class, Update.class })
|
|
|
private Long category_id;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
private String category_name;
|
|
|
|
|
|
private Long brand_id;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
private String brand_name;
|
|
|
private Long unit_id;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
private String unit_name;
|
|
|
|
|
|
- @NotBlank(message = "商品名称不能为空", groups = { B2cGoodDTO.Create.class, B2cGoodDTO.Update.class })
|
|
|
- @Size(max = 50, message = "商品名称长度不超过 {max} 字符", groups = { B2cGoodDTO.Create.class, B2cGoodDTO.Update.class })
|
|
|
+ @TableField(exist = false)
|
|
|
private String good_name;
|
|
|
|
|
|
- @Size(max = 200, message = "商品描述长度不超过 {max} 字符", groups = { B2cGoodDTO.Create.class, B2cGoodDTO.Update.class })
|
|
|
+ @TableField(exist = false)
|
|
|
private String good_description;
|
|
|
|
|
|
- @Size(max = 20000, message = "商品内容长度不超过 {max} 字符", groups = { B2cGoodDTO.Create.class, B2cGoodDTO.Update.class })
|
|
|
+ @TableField(exist = false)
|
|
|
private String good_content;
|
|
|
|
|
|
- @Size(max = 2000, message = "商品缩略图地址长度不超过 {max} 字符", groups = { B2cGoodDTO.Create.class, B2cGoodDTO.Update.class })
|
|
|
+ @Size(max = 2000, message = "商品缩略图地址长度不超过 {max} 字符", groups = { Create.class, Update.class })
|
|
|
private String good_thumb;
|
|
|
|
|
|
- @Size(max = 20000, message = "商品图片地址长度不超过 {max} 字符", groups = { B2cGoodDTO.Create.class, B2cGoodDTO.Update.class })
|
|
|
+ @Size(max = 20000, message = "商品图片地址长度不超过 {max} 字符", groups = { Create.class, Update.class })
|
|
|
private String good_images;
|
|
|
|
|
|
- @Size(max = 100, message = "关键词长度不超过 {max} 字符", groups = { B2cGoodDTO.Create.class, B2cGoodDTO.Update.class })
|
|
|
+ @TableField(exist = false)
|
|
|
private String meta_keyword;
|
|
|
- @Size(max = 200, message = "关键词描述长度不超过 {max} 字符", groups = { B2cGoodDTO.Create.class, B2cGoodDTO.Update.class })
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
private String meta_description;
|
|
|
|
|
|
@TableField(exist = false)
|
|
|
@NotEmpty(message="内容不能为空", groups = { Create.class, Update.class})
|
|
|
private List<GoodI18n> translations;
|
|
|
|
|
|
- @RangeArray(message="商品状态取值有误,范围应是(-1禁用, 1启用)", value = {"-1", "1"}, groups = { B2cGoodDTO.Create.class, B2cGoodDTO.Update.class })
|
|
|
+ @RangeArray(message="商品状态取值有误,范围应是(-1禁用, 1启用)", value = {"-1", "1"}, groups = { Create.class, Update.class })
|
|
|
private Integer status;
|
|
|
|
|
|
private Integer del_flag;
|