mirror of
https://gitee.com/bootx/dax-pay-h5.git
synced 2025-10-14 22:20:31 +00:00
21 lines
327 B
TypeScript
21 lines
327 B
TypeScript
/**
|
|
* 通用响应类
|
|
*/
|
|
export interface Result<T = any> {
|
|
code: number;
|
|
type: 'success' | 'error' | 'warning';
|
|
msg: string;
|
|
traceId: string | null | undefined;
|
|
data: T;
|
|
}
|
|
|
|
/**
|
|
* 分页响应类
|
|
*/
|
|
export interface PageResult<T = any> {
|
|
current: number;
|
|
records: Array<T>;
|
|
size: number;
|
|
total: number;
|
|
}
|