feat:
This commit is contained in:
9
src/types/http.ts
Normal file
9
src/types/http.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user