|
|
@@ -6,6 +6,8 @@ import cn.com.taiji.core.dto.AbstractStaffBizRequestDTO; |
|
|
|
import io.swagger.annotations.ApiModel; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import lombok.Data; |
|
|
|
|
|
|
|
import javax.validation.constraints.Max; |
|
|
|
import javax.validation.constraints.Min; |
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
|
import javax.validation.constraints.NotNull; |
|
|
@@ -38,17 +40,19 @@ public class CouponAddRequestDTO extends AbstractStaffBizRequestDTO { |
|
|
|
/** |
|
|
|
* 剩余使用时长阈值(单位:小时)(卡券剩余使用时长小于等于该时间,则不允许发放) |
|
|
|
*/ |
|
|
|
@ApiModelProperty(value = "剩余使用时长阈值(单位:小时)", required = true) |
|
|
|
@ApiModelProperty(value = "剩余使用时长阈值(单位:小时)0<= x <= 999", required = true) |
|
|
|
@NotNull |
|
|
|
@Min(value = 0, message = "剩余使用时长阈值,不能小于0") |
|
|
|
@Min(value = 0, message = "不能小于0") |
|
|
|
@Max(value = 999, message = "不能大于999") |
|
|
|
private Integer remainingUsefulHour; |
|
|
|
|
|
|
|
/** |
|
|
|
* 剩余个数阈值(卡券剩余个数小于等于该阈值,则不允许发放) |
|
|
|
*/ |
|
|
|
@ApiModelProperty(value = "剩余个数阈值", required = true) |
|
|
|
@ApiModelProperty(value = "剩余个数阈值 0<= x <= 999", required = true) |
|
|
|
@NotNull |
|
|
|
@Min(value = 0, message = "剩余个数阈值,不能小于0") |
|
|
|
@Min(value = 0, message = "不能小于0") |
|
|
|
@Max(value = 999, message = "不能大于999") |
|
|
|
private Integer thresholdValue; |
|
|
|
|
|
|
|
|