kt-template-online-api/src/types/res.d.ts
2026-05-08 11:21:51 +08:00

23 lines
303 B
TypeScript

type Res = {
code: number;
msg: string;
data: any;
};
type Page<T = any> = {
list: T[];
total: number;
};
type Dict<T = object> = {
label: string;
value: any;
} & Partial<T>;
type PageParams<T> = {
pageSize: number;
pageNo: number;
} & Partial<T>;
type Many<T> = T | readonly T[];