package com.gxwebsoft.common.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 
 *
 * @author 科技小王子
 * @since 2023-07-06 15:08:15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Area对象", description = "")
@TableName("sys_area")
public class Area implements Serializable {
    private static final long serialVersionUID = 1L;

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

    private String name;

    private Integer fid;

    private Integer levelId;

    @TableField(exist = false)
    private List<Area> children;

}
