2 changed files with 78 additions and 17 deletions
@ -0,0 +1,63 @@ |
|||
package com.elink.esua.epdc.dto; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.utils.TreeNode; |
|||
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; |
|||
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; |
|||
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Min; |
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.Null; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @program: epdc-cloud-news-yushan |
|||
* @description: 栏目管理树 |
|||
* @author: wangtong |
|||
* @create: 2021-08-09 16:18 |
|||
**/ |
|||
@Data |
|||
public class ModuleTypeCategoryDTO extends TreeNode implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* id |
|||
*/ |
|||
@Null(message = "{id.null}", groups = AddGroup.class) |
|||
@NotNull(message = "{id.require}", groups = UpdateGroup.class) |
|||
private Long id; |
|||
|
|||
/** |
|||
* 上级分类ID |
|||
*/ |
|||
@NotNull(message = "{sysdept.pid.require}", groups = DefaultGroup.class) |
|||
private Long pid; |
|||
|
|||
/** |
|||
* 分类名称 |
|||
*/ |
|||
@NotBlank(message = "{sysdept.name.require}", groups = DefaultGroup.class) |
|||
private String typeName; |
|||
|
|||
|
|||
/** |
|||
* 分类编码 |
|||
*/ |
|||
private String typeCode; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
@Min(value = 0, message = "{sort.number}", groups = DefaultGroup.class) |
|||
private Integer sort; |
|||
|
|||
private String parentName; |
|||
|
|||
private String value; |
|||
|
|||
private String label; |
|||
|
|||
} |
Loading…
Reference in new issue