//package com.backendsys.entity.B2c;
//
//import jakarta.validation.constraints.NotBlank;
//import jakarta.validation.constraints.NotNull;
//import jakarta.validation.constraints.Size;
//import lombok.Data;
//import org.hibernate.validator.constraints.Range;
//
//@Data
//public class B2cGoodUnitDTO {
//    public static interface Detail{}
//    public static interface Create{}
//    public static interface Update{}
//    public static interface Delete{}
//
//    /**
//     * b2c_goods_unit
//     */
//    private Long id;
//    @NotNull(message = "商品单位ID不能为空", groups = { B2cGoodUnitDTO.Detail.class, B2cGoodUnitDTO.Update.class, B2cGoodUnitDTO.Delete.class })
//    private Long good_unit_id;
//
//    @Size(max = 50, message = "商品单位名称长度不超过 {max} 个字符", groups = { B2cGoodUnitDTO.Create.class, B2cGoodUnitDTO.Update.class })
//    @NotBlank(message = "商品单位名称不能为空", groups = { B2cGoodUnitDTO.Create.class, B2cGoodUnitDTO.Update.class })
//    private String unit_name;
//
//    @Range(min = 1, max = 9999, message = "排序必须在 {min} 到 {max} 之间")
//    private Integer sort;
//
//}
