Commit cb3e58e5 by 丁伟峰

增加了validation

1 parent ab64bfa0
package com.alibaba.cloud.integration.order.dto;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
@lombok.Data
public class CapacityStatQueryReqDTO {
@NotEmpty
@NotBlank
private String startDate;
@NotEmpty
@NotBlank
private String endDate;
/**
* cluster/branch/group
*/
@NotEmpty
@NotBlank
private String levelType;
/**
* clusterId/branchId/groupId
*/
@NotEmpty
@NotBlank
private String levelValue;
private Integer page;
private Integer size;
......
......@@ -2,6 +2,7 @@ package com.alibaba.cloud.integration.order.dto;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
......@@ -20,6 +21,6 @@ public class OrderCreateReqDTO {
private String expectEnd;
private String expectDesc;
private String priority;
private List<String> orderTags;
private List<String> orderTags = new ArrayList<>();
private String description;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!