From af6456c60aa0d3cc931d3c85f652fa7e47d003e3 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期一, 23 六月 2025 11:11:02 +0800 Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/HongRuiTang into 2.0 --- ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/domain/dto/MgtCouponEditDto.java | 40 +++++++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 5 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 4ce732d..b39c986 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 @@ -1,9 +1,12 @@ package com.ruoyi.member.domain.dto; +import com.baomidou.mybatisplus.annotation.TableField; +import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.system.api.domain.dto.MgtBaseDto; 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; @@ -21,19 +24,27 @@ @ApiModelProperty(value = "优惠券id 新增不传") private String couponId; - @ApiModelProperty("优惠券类型1.满减2.折扣3.代金4.商品") + @ApiModelProperty(value="优惠券类型1.满减2.折扣3.代金4.商品5.抽奖领取") + @NotNull(message = "优惠券类型不能为空") private Integer couponType; - @ApiModelProperty("优惠券名称") + @ApiModelProperty(value="优惠券名称") + @NotNull(message = "优惠券名称不能为空") private String couponName; - @ApiModelProperty(value = "发送类型1.手动领取2.全部用户3.会员用户4非会员用户5自定义") + @ApiModelProperty(value = "发送类型1.手动领取2.指定发放") + @NotNull(message = "发送类型不能为空") private Integer sendType; - @ApiModelProperty("发送时间类型1立即2定时") + @ApiModelProperty(value = "发送对象2.全部用户3.会员用户4非会员用户5自定义") + @NotNull(message = "发送对象不能为空") + private Integer sendTarget; + + @ApiModelProperty(value="发送时间类型1立即2定时") private Integer sendTimeType; - @ApiModelProperty("发送时间") + @ApiModelProperty(value="发送时间") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date sendTime; @ApiModelProperty(value = "使用范围1.全场2.指定商品") @@ -74,4 +85,23 @@ @ApiModelProperty(value = "关联用户id集合") private List<Long> relUserIdList; + + @ApiModelProperty(value = "宣传海报") + private String propagandaPoster; + + @ApiModelProperty(value = "发放限制数量") + private Integer sendLimitNumber; + + @ApiModelProperty(value = "发放限制0否1是") + private Integer sendLimitFlag; + + @ApiModelProperty(value = "领取限制数量 0为不限") + private Integer limitNumber; + + @ApiModelProperty("分享文案") + private String sharePassage; + + @ApiModelProperty("分享图片") + private String sharePic; + } -- Gitblit v1.7.1