记得上下班打卡 | git大法好,push需谨慎

Commit 8ff618f3 authored by 张国柄's avatar 张国柄

~API:发放券+exclusively属性标识会员专属用于计算特定券有效期,去除validity必填校验;

parent 15c0fd5f
......@@ -3,12 +3,14 @@ package com.liquidnet.service.candy.dto.admin;
import com.liquidnet.commons.lang.constant.LnsRegex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.List;
@ApiModel(value = "CandyMgtCouponBuildParam", description = "新建券入参")
@Data
public class CandyMgtCouponBuildParam {
//private String couponId;
//private Integer state;
......@@ -43,9 +45,9 @@ public class CandyMgtCouponBuildParam {
@Max(value = 1, message = "叠加限制配置无效")
private Integer overlay;
//private Integer overlayLevel;
@NotNull(message = "券有效期不能为空")
// @NotNull(message = "券有效期不能为空")
@Min(value = 1, message = "有效期不能小于1")
@ApiModelProperty(required = true, value = "有效期(单位天)", example = "30")
@ApiModelProperty(required = false, value = "有效期(单位天)", example = "30")
private Integer validity;
// @Min(value = 1, message = "兑换有效期不能小于1")
@ApiModelProperty(required = false, value = "兑换有效期(单位天)", example = "30")
......@@ -85,165 +87,4 @@ public class CandyMgtCouponBuildParam {
//private LocalDateTime createdAt;
//private LocalDateTime updatedAt;
//private String comment;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public String getNotice() {
return notice;
}
public void setNotice(String notice) {
this.notice = notice;
}
public Integer getBusiType() {
return busiType;
}
public void setBusiType(Integer busiType) {
this.busiType = busiType;
}
public Integer getCouType() {
return couType;
}
public void setCouType(Integer couType) {
this.couType = couType;
}
public Integer getBindType() {
return bindType;
}
public void setBindType(Integer bindType) {
this.bindType = bindType;
}
public BigDecimal getDiscount() {
return discount;
}
public void setDiscount(BigDecimal discount) {
this.discount = discount;
}
public BigDecimal getValFace() {
return valFace;
}
public void setValFace(BigDecimal valFace) {
this.valFace = valFace;
}
public BigDecimal getValOver() {
return valOver;
}
public void setValOver(BigDecimal valOver) {
this.valOver = valOver;
}
public BigDecimal getValMinus() {
return valMinus;
}
public void setValMinus(BigDecimal valMinus) {
this.valMinus = valMinus;
}
public Integer getOverlay() {
return overlay;
}
public void setOverlay(Integer overlay) {
this.overlay = overlay;
}
public Integer getValidity() {
return validity;
}
public void setValidity(Integer validity) {
this.validity = validity;
}
public Integer getRedeemValidity() {
return redeemValidity;
}
public void setRedeemValidity(Integer redeemValidity) {
this.redeemValidity = redeemValidity;
}
public List<CandyCouponRuleBuildParam> getCouponRuleList() {
return couponRuleList;
}
public void setCouponRuleList(List<CandyCouponRuleBuildParam> couponRuleList) {
this.couponRuleList = couponRuleList;
}
public String getMcouponId() {
return mcouponId;
}
public void setMcouponId(String mcouponId) {
this.mcouponId = mcouponId;
}
public Integer getEventAmt() {
return eventAmt;
}
public void setEventAmt(Integer eventAmt) {
this.eventAmt = eventAmt;
}
public Integer getEventType() {
return eventType;
}
public void setEventType(Integer eventType) {
this.eventType = eventType;
}
public String getEventLimit() {
return eventLimit;
}
public void setEventLimit(String eventLimit) {
this.eventLimit = eventLimit;
}
public String getEventAt() {
return eventAt;
}
public void setEventAt(String eventAt) {
this.eventAt = eventAt;
}
public Integer getExclusively() {
return exclusively;
}
public void setExclusively(Integer exclusively) {
this.exclusively = exclusively;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment