zhengyiming
4 天以前 4c6f6d453785f4dba80e874a1b6172b3207b434f
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;
    }
}