26 lines
463 B
TypeScript
26 lines
463 B
TypeScript
|
|
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;
|
||
|
|
}
|