You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
989 B

1 month ago
/**
* API
*/
/**
*
*/
export interface PaginationParams {
page: number;
pageSize: number;
sortBy?: string;
sortOrder?: 'asc' | 'desc';
}
/**
*
*/
export interface PaginationResponse<T> {
list: T[];
total: number;
page: number;
pageSize: number;
totalPages: number;
hasMore: boolean;
}
/**
*
*/
export interface ListResponse<T> {
items: T[];
total: number;
}
/**
* ID
*/
export interface IdParams {
id: string | number;
}
/**
*
*/
export interface BatchParams {
ids: (string | number)[];
}
/**
*
*/
export interface SearchParams {
keyword: string;
filters?: Record<string, any>;
}
/**
*
*/
export interface UploadResponse {
url: string;
filename: string;
size: number;
mimeType: string;
}
/**
*
*/
export interface OperationResponse {
success: boolean;
message?: string;
}