|
@@ -8,6 +8,7 @@ import java.time.LocalDateTime;
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import jakarta.validation.constraints.NotNull;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
import com.kxs.common.core.valid.Phone;
|
|
@@ -71,6 +72,7 @@ public class LhbGoods extends Model<LhbGoods> implements Serializable {
|
|
|
* 产品名称
|
|
|
*/
|
|
|
@Schema(description = "产品名称")
|
|
|
+ @NotBlank(message = "产品名称不能为空")
|
|
|
private String goodsName;
|
|
|
|
|
|
|
|
@@ -78,6 +80,7 @@ public class LhbGoods extends Model<LhbGoods> implements Serializable {
|
|
|
* 商品封面图
|
|
|
*/
|
|
|
@Schema(description = "商品封面图")
|
|
|
+ @NotBlank(message = "商品封面图不能为空")
|
|
|
private String picUrl;
|
|
|
|
|
|
|
|
@@ -92,6 +95,7 @@ public class LhbGoods extends Model<LhbGoods> implements Serializable {
|
|
|
* 月租价格
|
|
|
*/
|
|
|
@Schema(description = "月租价格")
|
|
|
+ @NotNull(message = "月租价格不能为空")
|
|
|
private BigDecimal price;
|
|
|
|
|
|
|
|
@@ -106,6 +110,7 @@ public class LhbGoods extends Model<LhbGoods> implements Serializable {
|
|
|
* 外部产品ID
|
|
|
*/
|
|
|
@Schema(description = "外部产品ID")
|
|
|
+ @NotNull(message = "外部产品ID不能为空")
|
|
|
private String externalId;
|
|
|
|
|
|
|
|
@@ -113,6 +118,7 @@ public class LhbGoods extends Model<LhbGoods> implements Serializable {
|
|
|
* 通道名称
|
|
|
*/
|
|
|
@Schema(description = "通道名称")
|
|
|
+ @NotBlank(message = "通道名称不能为空")
|
|
|
private String ifCode;
|
|
|
|
|
|
|
|
@@ -164,6 +170,7 @@ public class LhbGoods extends Model<LhbGoods> implements Serializable {
|
|
|
* 运营商, 1:电信,2:移动 3 :联通 4:广电
|
|
|
*/
|
|
|
@Schema(description = "运营商, 1:电信,2:移动 3 :联通 4:广电")
|
|
|
+ @NotNull(message = "运营商不能为空")
|
|
|
private Integer operators;
|
|
|
|
|
|
|
|
@@ -178,10 +185,8 @@ public class LhbGoods extends Model<LhbGoods> implements Serializable {
|
|
|
* 年龄区间 18-65
|
|
|
*/
|
|
|
@Schema(description = "年龄区间 18-65")
|
|
|
+ @NotNull(message = "年龄区间不能为空")
|
|
|
private String ageSection;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|