/**
 * @Description: 菜单数据模型
 * @author LiuBo
 * @date 2020/12/10
 * @time 10:57
 */
export class LfMenu {
  component: string;
  effStatus: string;
  id: string;
  isFrame: string;
  menuBigIcon: string;
  menuIcon: string;
  menuId: string;
  menuName: string;
  menuTitle: string;
  menuType: string;
  parentId: string;
  path: string;
  permission: string;
  serial: string;
  sysId: string;
  visible: string;
  checked: boolean | undefined;
  children: LfMenu[];
  constructor(
    options: {
      component?: string;
      effStatus?: string;
      id?: string;
      isFrame?: string;
      menuBigIcon?: string;
      menuIcon?: string;
      menuId?: string;
      menuName?: string;
      menuTitle?: string;
      menuType?: string;
      parentId?: string;
      path?: string;
      permission?: string;
      serial?: string;
      sysId?: string;
      visible?: string;
      checked?: boolean;
      children?: LfMenu[];
    } = {}
  ) {
    this.component = options.component || "";
    this.effStatus = options.effStatus || "";
    this.id = options.id || "";
    this.isFrame = options.isFrame || "";
    this.menuBigIcon = options.menuBigIcon || "";
    this.menuIcon = options.menuIcon || "";
    this.menuId = options.menuId || "";
    this.menuName = options.menuName || "";
    this.menuTitle = options.menuTitle || "";
    this.menuType = options.menuType || "";
    this.parentId = options.parentId || "";
    this.path = options.path || "";
    this.permission = options.permission || "";
    this.serial = options.serial || "";
    this.sysId = options.sysId || "";
    this.visible = options.visible || "";
    this.checked = options.checked;
    this.children = options.children || [];
  }
}
