Files
frontend_hmi_station/src/api/common.d.ts

40 lines
688 B
TypeScript
Raw Normal View History

export type ID = number | string;
export type IDS = (number | string)[];
export interface BaseEntity {
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
}
/**
*
* @param pageNum
* @param pageSize
* @param orderByColumn
* @param isAsc
*/
export interface PageQuery {
isAsc?: string;
orderByColumn?: string;
pageNum?: number;
pageSize?: number;
[key: string]: any;
}
export interface ApiResponse<T = any> {
code?: number;
msg?: string;
data?: T;
rows: T[];
total?: number;
token?: string;
img?: string;
uuid?: string;
captchaOnOff?: boolean;
}