ruoyi-plus-vben5/apps/web-antd/src/api/common.d.ts

35 lines
635 B
TypeScript
Raw Normal View History

2024-09-11 21:32:30 +08:00
export type ID = number | string;
export type IDS = (number | string)[];
export interface BaseEntity {
createBy?: string;
createDept?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
}
/**
*
* @param rows
* @param total
*/
export interface PageResult<T = any> {
rows: T[];
total: number;
}
/**
*
* @param pageNum
* @param pageSize
* @param orderByColumn
* @param isAsc
*/
export interface PageQuery {
isAsc?: boolean;
orderByColumn?: string;
pageNum?: number;
pageSize?: number;
}