export enum ApiCode {
  SUCCESS = 200,
  SERVER_ERROR = 500,
}

export interface ApiResponse<T = any> {
  code: number;
  data: T;
  message: string;
  success: boolean;
}

export interface PageParams {
  current: number;
  size: number;
}

export interface PageResult<T = any> {
  currentPage: number;
  pageSize: number;
  total: number;
  data: T[];
}

export interface ApiPageResponse<T = any> {
  code: number;
  data: PageResult<T>;
  message: string;
  success: boolean;
}
