From 45684deea50d27ac78f2a8315bdea50d022e01cb Mon Sep 17 00:00:00 2001
From: jiangqs <jiangqs>
Date: 星期二, 25 七月 2023 19:06:39 +0800
Subject: [PATCH] bug

---
 ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/domain/dto/MgtCouponEditDto.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/domain/dto/MgtCouponEditDto.java b/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/domain/dto/MgtCouponEditDto.java
index 16e98be..4fc08a3 100644
--- a/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/domain/dto/MgtCouponEditDto.java
+++ b/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/domain/dto/MgtCouponEditDto.java
@@ -4,6 +4,7 @@
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
+import javax.validation.constraints.NotNull;
 import java.math.BigDecimal;
 import java.util.Date;
 import java.util.List;
@@ -22,15 +23,19 @@
     private String couponId;
 
     @ApiModelProperty(value="优惠券类型1.满减2.折扣3.代金4.商品")
+    @NotNull(message = "优惠券类型不能为空")
     private Integer couponType;
 
     @ApiModelProperty(value="优惠券名称")
+    @NotNull(message = "优惠券名称不能为空")
     private String couponName;
 
     @ApiModelProperty(value = "发送类型1.手动领取2.指定发放")
+    @NotNull(message = "发送类型不能为空")
     private Integer sendType;
 
     @ApiModelProperty(value = "发送对象2.全部用户3.会员用户4非会员用户5自定义")
+    @NotNull(message = "发送对象不能为空")
     private Integer sendTarget;
 
     @ApiModelProperty(value="发送时间类型1立即2定时")

--
Gitblit v1.7.1