Commit 87de7441 by 丁伟峰

加上了接口校验

1 parent cb420a07
...@@ -2,13 +2,23 @@ package com.alibaba.cloud.integration.order.dto; ...@@ -2,13 +2,23 @@ package com.alibaba.cloud.integration.order.dto;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotNull;
@Data @Data
public class CapacityOrderQueryReqDTO { public class CapacityOrderQueryReqDTO {
@NotNull(message = "location不能为空")
private String location; private String location;
private String address; private String address;
@NotNull(message = "brand不能为空")
private String brand; private String brand;
@NotNull(message = "type不能为空")
private String type; private String type;
@NotNull(message = "skill不能为空")
private String skill; private String skill;
@NotNull(message = "beginDate不能为空")
private String beginDate; private String beginDate;
@NotNull(message = "endDate不能为空")
private String endDate; private String endDate;
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!