zhengyiming
3 天以前 d2c191181bc69a5f39ee8a40c530a30cc097e1ac
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;
    }
}