packages/services/types.d.ts
@@ -1,4 +1,22 @@ declare module '@/utils/request' { export const request: IRequest; export interface ResponseStructure<TData = any> { success: boolean; data: TData; /** * http状态吗 */ code?: number; /** * 错误码 */ errorCode?: string; /** * 错误信息 */ msg?: string; showType?: ErrorShowType; traceId?: string; } }