//package com.backendsys.entity.B2c;
//
//import com.backendsys.entity.validator.RangeArray;
//import jakarta.validation.constraints.NotBlank;
//import jakarta.validation.constraints.NotNull;
//import jakarta.validation.constraints.Size;
//import lombok.Data;
//
//@Data
//public class B2cGoodDTO {
//    public static interface Detail{}
//    public static interface Create{}
//    public static interface Update{}
//    public static interface Delete{}
//
//    /**
//     * b2c_goods
//     */
//    private Long id;
//    @NotNull(message = "商品ID不能为空", groups = { Detail.class, Update.class, Delete.class })
//    private Long good_id;
//
//    @NotNull(message = "商品分类ID不能为空", groups = { Create.class, Update.class })
//    private Long category_id;
//    private String category_name;
//
//    private Long brand_id;
//    private String brand_name;
//    private Long unit_id;
//    private String unit_name;
//
//    @NotBlank(message = "商品名称不能为空", groups = { Create.class, Update.class })
//    @Size(max = 50, message = "商品名称长度不超过 {max} 字符", groups = { Create.class, Update.class })
//    private String good_name;
//
//    @Size(max = 200, message = "商品描述长度不超过 {max} 字符", groups = { Create.class, Update.class })
//    private String good_description;
//
//    @Size(max = 10000, message = "商品内容长度不超过 {max} 字符", groups = { Create.class, Update.class })
//    private String good_content;
//
//    @Size(max = 1000, message = "商品缩略图地址长度不超过 {max} 字符", groups = { Create.class, Update.class })
//    private String good_thumb;
//
//    @Size(max = 10000, message = "商品图片地址长度不超过 {max} 字符", groups = { Create.class, Update.class })
//    private String good_images;
//
//    @Size(max = 100, message = "关键词长度不超过 {max} 字符", groups = { Create.class, Update.class })
//    private String meta_keyword;
//    @Size(max = 200, message = "关键词描述长度不超过 {max} 字符", groups = { Create.class, Update.class })
//    private String meta_description;
//
//    @RangeArray(message="商品状态取值有误，范围应是(-1禁用, 1启用)", value = {"-1", "1"}, groups = { Create.class, Update.class })
//    private Integer status;
//
//    private Integer del_flag;
//    private String create_time;
//    private String update_time;
//}
