import { BasicFetchResult, BasicPageParams, SubBaseEntity } from '/@/model/src';
import { MenuIM } from './menu';

/** module info model */
export interface ModuleIM extends SubBaseEntity<MenuIM> {
  id: string | number;
  name: string;
  logo: string;
  path: string;
  paramPath: string;
  type: string;
  hideModule: string;
  sort: number;
  status: string;
  remark: string;
  isCommon: string;
  isDefault: string;
}

/** module list model */
export type ModuleLM = ModuleIM[];

/** module param model */
export type ModulePM = ModuleIM;

/** module page param model */
export type ModulePPM = BasicPageParams & ModulePM;

/** module list result model */
export type ModuleLRM = BasicFetchResult<ModuleIM>;
