TASK:查affiliate列表接口添加参数校验;打开佣金计算定时器
This commit is contained in:
@@ -6,6 +6,7 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@@ -18,6 +19,7 @@ public class AffiliateQueryDTO extends TimeQueryBaseDTO{
|
||||
private Long affiliateId;
|
||||
|
||||
@NotBlank(message = "orderBy cannot be empty")
|
||||
@Pattern(regexp = "id|createTime|totalIncome", message = "允许排序字段只有id|createTime|totalIncome")
|
||||
@ApiModelProperty("目前允许按id, createTime, totalIncome进行排序")
|
||||
private String orderBy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user