// API 通用响应类型

export interface ApiResponse<T> {
  code: number;
  message: string;
  data: T;
}

export interface PaginatedResponse<T> {
  code: number;
  message: string;
  data: {
    list: T[];
    pagination: PaginationInfo;
  };
}

export interface PaginationInfo {
  current: number;
  pageSize: number;
  total: number;
}

export interface PaginationParams {
  page: number;
  pageSize: number;
}

export interface ApiError {
  code: number;
  message: string;
  details?: Record<string, string>;
}
