All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zznote.basecommon.entity.domain.TreeEntity Maven / Gradle / Ivy

The newest version!
package com.zznote.basecommon.entity.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * Tree基类
 *
 * @author zhangzhen
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TreeEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 父菜单名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "父菜单名称")
    private String parentName;

    /**
     * 父菜单ID
     */
    @ApiModelProperty(value = "父菜单ID")
    private Long parentId;

    /**
     * 子部门
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "子部门")
    private List children = new ArrayList<>();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy