Commit ab64bfa0 by 丁伟峰

增加了valid

1 parent 82ca7f40
...@@ -26,6 +26,11 @@ ...@@ -26,6 +26,11 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId> <artifactId>spring-boot-starter-jdbc</artifactId>
</dependency> </dependency>
......
package com.alibaba.cloud.integration.order.dto; package com.alibaba.cloud.integration.order.dto;
import javax.validation.constraints.NotEmpty;
@lombok.Data @lombok.Data
public class CapacityStatQueryReqDTO { public class CapacityStatQueryReqDTO {
@NotEmpty
private String startDate; private String startDate;
@NotEmpty
private String endDate; private String endDate;
/** /**
* cluster/branch/group * cluster/branch/group
*/ */
@NotEmpty
private String levelType; private String levelType;
/** /**
* clusterId/branchId/groupId * clusterId/branchId/groupId
*/ */
@NotEmpty
private String levelValue; private String levelValue;
private Integer page; private Integer page;
private Integer size; private Integer size;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!