zhengyiming
昨天 0853d5b4dbffed8cd75a487e39f12dae58a30a9e
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;
    }
}