From 43c263df4d8ce0cc830f287780c29db8a2b47f0f Mon Sep 17 00:00:00 2001 From: rentaiming <806181062@qq.com> Date: 星期一, 27 五月 2024 08:44:34 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/dto/GoodsGroupPurchaseDTO.java | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/DTO/GoodsGroupPurchaseDTO.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/dto/GoodsGroupPurchaseDTO.java similarity index 71% rename from ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/DTO/GoodsGroupPurchaseDTO.java rename to ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/dto/GoodsGroupPurchaseDTO.java index a6b6421..6ef6d1b 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/DTO/GoodsGroupPurchaseDTO.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/dto/GoodsGroupPurchaseDTO.java @@ -1,10 +1,12 @@ -package com.ruoyi.goods.controller.management.DTO; +package com.ruoyi.goods.controller.management.dto; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import java.time.LocalDateTime; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; import lombok.Data; /** @@ -22,29 +24,37 @@ private Long goodsSkuId; @ApiModelProperty(value = "分享标题") + @NotBlank(message = "分享标题不能为空") private String shareTitle; @ApiModelProperty(value = "分享图片") + @NotBlank(message = "分享图片不能为空") private String sharePic; @ApiModelProperty(value = "团购价格") + @NotNull(message = "团购价格不能为空") private BigDecimal groupPurchasePrice; @ApiModelProperty(value = "成团人数") + @NotNull(message = "成团人数不能为空") private Integer groupSize; @ApiModelProperty(value = "限购数量") + @NotNull(message = "限购数量不能为空") private Integer limitNumber; @ApiModelProperty(value = "团购开始时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @NotNull(message = "团购开始时间不能为空") private LocalDateTime startTime; @ApiModelProperty(value = "团购结束时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @NotNull(message = "团购结束时间不能为空") private LocalDateTime endTime; @ApiModelProperty(value = "参团说明") + @NotBlank(message = "参团说明不能为空") private String description; } -- Gitblit v1.7.1