EventTemplate控制器编写
This commit is contained in:
@@ -3,9 +3,11 @@ package com.njcn.device.pojo.param;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Range;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -30,4 +32,14 @@ public class TerminalParam {
|
||||
private String extendMealId;
|
||||
@ApiModelProperty(name = "flowStrategyId",value = "流量策略")
|
||||
private String flowStrategyId;
|
||||
|
||||
@ApiModelProperty("页码")
|
||||
@NotNull(message = "页码不可为空")
|
||||
@Range(min = 1,message = "页码必须大于0")
|
||||
private Integer pageNum;
|
||||
|
||||
@ApiModelProperty("条数")
|
||||
@NotNull(message = "条数不可为空")
|
||||
@Range(min = 1,message = "条数必须大于0")
|
||||
private Integer pageSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user