This commit is contained in:
eleanor.mao
2025-06-03 00:03:08 +08:00
commit 48f2c49c2b
100 changed files with 34596 additions and 0 deletions

9
src/types/http.ts Normal file
View File

@ -0,0 +1,9 @@
import { RESPONSE_ERROR_CODE } from '@/constants/http';
export interface IRequestResponse<T = any> {
data: T;
// 请求出错时才会返回下面几个字段
code: RESPONSE_ERROR_CODE;
msg: string;
traceId: string;
}