Files
TERES_web_frontend/src/interfaces/common.ts

26 lines
463 B
TypeScript
Raw Normal View History

export interface Pagination {
current: number;
pageSize: number;
total: number;
}
export interface BaseState {
pagination: Pagination;
searchString: string;
}
export interface IModalProps<T> {
showModal?(): void;
hideModal?(): void;
switchVisible?(visible: boolean): void;
visible?: boolean;
loading?: boolean;
onOk?(payload?: T): Promise<any> | void;
}
export interface ResponseType {
code: number;
message?: string;
data?: any;
}