export type BaseResultContent<T> = {msg: '200'; data: T} | {msg: '510'; errMsg: string};

export type BaseResult<T = any> = Promise<BaseResultContent<T>>;

export type BaseListData<T> = {
  total: number;
  list: T[];
  pageNum: number;
  pageSize: number;
  size: number;
  startRow: number;
  endRow: number;
  pages: number;
  prePage: number;
  nextPage: number;
  isFirstPage: boolean;
  isLastPage: boolean;
  hasPreviousPage: boolean;
  hasNextPage: boolean;
  navigatePages: number;
  navigatepageNums: any[];
  navigateFirstPage: number;
  navigateLastPage: number;
};
export type BaseListResult<T> = BaseResult<BaseListData<T>>;

export * from './user';
export * from './department';
export * from './menu';
export * from './role';
export * from './storage';
export * from './goods';
