|
|
@ -1,10 +1,10 @@ |
|
|
|
package com.epmet.dto.form; |
|
|
|
|
|
|
|
import lombok.Data; |
|
|
|
import org.hibernate.validator.constraints.Length; |
|
|
|
|
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
|
import java.io.Serializable; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 一级分类 新增/修改 |
|
|
@ -14,13 +14,11 @@ import java.util.List; |
|
|
|
@Data |
|
|
|
public class FirstCategoryFormDTO implements Serializable { |
|
|
|
private static final long serialVersionUID = 3188828578545996470L; |
|
|
|
public interface AddCategoryInternalGroup { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 客户Id |
|
|
|
**/ |
|
|
|
@NotBlank(message = "customerId不能为空", groups = AddCategoryInternalGroup.class) |
|
|
|
@NotBlank(message = "customerId不能为空") |
|
|
|
private String customerId; |
|
|
|
|
|
|
|
/** |
|
|
@ -32,6 +30,8 @@ public class FirstCategoryFormDTO implements Serializable { |
|
|
|
/** |
|
|
|
* 分类名称 |
|
|
|
**/ |
|
|
|
@Length(max=20,message = "分类名称不能超过20个字") |
|
|
|
@Length(min=2,message = "分类名称不能少于2个字") |
|
|
|
private String categoryName; |
|
|
|
|
|
|
|
/** |
|
|
@ -42,6 +42,6 @@ public class FirstCategoryFormDTO implements Serializable { |
|
|
|
/** |
|
|
|
* 操作类型(add:新增 edit:编辑) |
|
|
|
**/ |
|
|
|
@NotBlank(message = "操作类型不能为空", groups = AddCategoryInternalGroup.class) |
|
|
|
@NotBlank(message = "操作类型不能为空") |
|
|
|
private String type; |
|
|
|
} |
|
|
|