| /** | 
|  * Copyright (c) 2019 人人开源 All rights reserved. | 
|  * <p> | 
|  * https://www.renren.io | 
|  * <p> | 
|  * 版权所有,侵权必究! | 
|  */ | 
|   | 
| package com.zt.core.sys.dto; | 
|   | 
| import com.fasterxml.jackson.annotation.JsonIgnore; | 
| import com.zt.common.entity.TreeNode; | 
| import lombok.Data; | 
|   | 
| import java.io.Serializable; | 
| import java.util.ArrayList; | 
| import java.util.List; | 
|   | 
| /** | 
|  * 字典类型 | 
|  * | 
|  * @author hehz | 
|  */ | 
| @Data | 
| public class DictDto implements TreeNode<DictDto>, Serializable { | 
|     private String dictType; | 
|     private String dictName; | 
|     private List<DictDto> children = new ArrayList<>(); | 
|   | 
|     public DictDto(String dictType, String dictName) { | 
|         this.dictType = dictType; | 
|         this.dictName = dictName; | 
|     } | 
|   | 
|     @Override | 
|     @JsonIgnore | 
|     public Long getId() { | 
|         return null; | 
|     } | 
|   | 
|     @Override | 
|     public void setId(Long id) { | 
|   | 
|     } | 
|   | 
|     @Override | 
|     @JsonIgnore | 
|     public Long getPid() { | 
|         return null; | 
|     } | 
|   | 
|     @Override | 
|     public void setPid(Long pid) { | 
|   | 
|     } | 
| } |