feat(REQ-2106): 广告位轮播上限和播放时长改为非必填
This commit is contained in:
parent
77790ffd3a
commit
f1769ae115
@ -12,8 +12,6 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
@ -67,8 +65,6 @@ public class CreateBannerReq {
|
||||
/**
|
||||
* 最大轮播数量,限制【1-6】
|
||||
*/
|
||||
@Min(value = 1, message = "轮播上线数量不能小于1")
|
||||
@Max(value = 6, message = "轮播上限数量不能超过6")
|
||||
private int maxCarouselLimit;
|
||||
|
||||
/**
|
||||
@ -84,8 +80,6 @@ public class CreateBannerReq {
|
||||
/**
|
||||
* 播放时长,0表示关闭状态,范围【1-120】s
|
||||
*/
|
||||
@Min(value = 0)
|
||||
@Max(value = 120)
|
||||
private float playDuration;
|
||||
|
||||
/**
|
||||
|
||||
@ -11,8 +11,6 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@ -50,15 +48,11 @@ public class UpdateBannerReq {
|
||||
/**
|
||||
* 最大轮播数量,限制【1-6】
|
||||
*/
|
||||
@Min(value = 1)
|
||||
@Max(value = 6)
|
||||
private int maxCarouselLimit;
|
||||
|
||||
/**
|
||||
* 播放时长,0表示关闭状态,范围【1-120】s
|
||||
*/
|
||||
@Min(value = 0)
|
||||
@Max(value = 120)
|
||||
private float playDuration;
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user