wupengfei
3 天以前 8a7d015dc7c017175fbe187273c0e6e28fe1c06d
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;
    }
}