mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2026-09-13 07:43:43 +08:00
12 lines
348 B
TypeScript
12 lines
348 B
TypeScript
/**
|
||
* 与 `src/utils/request` 拦截器一致:resolve 的是若依风格 JSON `{ code, msg, data }`。
|
||
* axios 1.13 + TS6 下避免从 `axios` 拉已移除的 AxiosPromise。
|
||
*/
|
||
export interface RuoYiAjaxResult<T = unknown> {
|
||
code?: number;
|
||
msg?: string;
|
||
data?: T;
|
||
}
|
||
|
||
export type AxiosPromise<T = unknown> = Promise<RuoYiAjaxResult<T>>;
|