PermissionsDictDO.java 848 Bytes
package com.meishu.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.meishu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author Tuyp
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("permissions_dict")
public class PermissionsDictDO extends BaseModel {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父级ID
     */
    private Long parentId;

    /**
     * 名称
     */
    private String name;

    /**
     * 子节点 代码使用 无实际意义
     */
    private List<PermissionsDictDO> children;

}