forked from rongchao/epmet-cloud-rizhao
8 changed files with 294 additions and 49 deletions
@ -0,0 +1,47 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 编辑、禁用、删除统一入参 |
|||
* @Author yinzuomei |
|||
* @Date 2021/9/8 4:15 下午 |
|||
*/ |
|||
@Data |
|||
public class EditGuideCategoryFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -6853534660181580456L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
public interface StatusGroup { |
|||
} |
|||
|
|||
public interface UpdateInfoGroup extends CustomerClientShowGroup { |
|||
} |
|||
|
|||
public interface DelGroup { |
|||
} |
|||
@NotBlank(message = "当前操作人id不能为空", groups = AddUserInternalGroup.class) |
|||
private String staffId; |
|||
|
|||
@NotBlank(message = "客户id不能为空",groups = DelGroup.class) |
|||
private String customerId; |
|||
|
|||
@NotBlank(message = "id不能为空", groups = AddUserInternalGroup.class) |
|||
private String id; |
|||
|
|||
@NotBlank(message = "status不能为空", groups = StatusGroup.class) |
|||
private String status; |
|||
|
|||
@NotBlank(message = "分类名称不能为空不能为空", groups = UpdateInfoGroup.class) |
|||
@Length(max = 10, message = "分类名称最多填入10个字", groups = UpdateInfoGroup.class) |
|||
private String categoryName; |
|||
|
|||
} |
|||
|
@ -0,0 +1,56 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 分类排序入参DTO |
|||
* @Author yinzuomei |
|||
* @Date 2021/9/8 4:03 下午 |
|||
*/ |
|||
@Data |
|||
public class GuideCateOrderFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 8671295475212569124L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "当前操作人id不能为空", groups = AddUserInternalGroup.class) |
|||
private String staffId; |
|||
|
|||
|
|||
@NotEmpty(message = "顺序不能为空", groups = {AddUserInternalGroup.class}) |
|||
private List<OrderIndexDTO> orderList; |
|||
|
|||
/** |
|||
* 排序索引号dto |
|||
*/ |
|||
public static class OrderIndexDTO { |
|||
private String id; |
|||
private Integer orderIndex; |
|||
|
|||
public OrderIndexDTO() { |
|||
} |
|||
|
|||
public String getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(String id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Integer getOrderIndex() { |
|||
return orderIndex; |
|||
} |
|||
|
|||
public void setOrderIndex(Integer orderIndex) { |
|||
this.orderIndex = orderIndex; |
|||
} |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue