package cn.ezhizao.project.system.domain;

import cn.ezhizao.framework.aspectj.lang.annotation.Excel;
import cn.ezhizao.framework.web.domain.BaseEntity;
import cn.ezhizao.project.system.domain.vo.RouterVo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 模块管理对象 sys_module
 *
 * @author ruoyi
 * @date 2023-10-24
 */
@Data
@TableName(value = "sys_module")
public class SysModule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模块名称 */
    @Excel(name = "模块名称")
    @ApiModelProperty(value = "模块名称")
    private String moduleName;

    @ApiModelProperty("排序")
    private Integer sort;

    /** 首页名称 router_name */
    @Excel(name = "首页名称 router_name")
    @ApiModelProperty(value = "首页名称 router_name")
    private String homePage;

    @TableField(exist = false)
    private List<Long> ids;

    @TableField(exist = false)
    private List<SysModuleDetail> details;

    @TableField(exist = false)
    private List<SysMenu> menus;

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

}
