chore: 完善form demo

This commit is contained in:
dap
2024-09-11 21:32:30 +08:00
parent 6063a8e294
commit 14b9553b7e
9 changed files with 228 additions and 91 deletions

34
apps/web-antd/src/api/common.d.ts vendored Normal file
View File

@@ -0,0 +1,34 @@
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;
}