import { ResultEnum } from '@/enums/httpEnum'; import type { API } from '@/services/model/baseModel'; interface MockResponseOptions { status: number statusText: string responseHeaders: Record body: API } export function createMock(options: Partial): MockResponseOptions { return { status: 200, statusText: 'OK', responseHeaders: {}, body: { code: ResultEnum.SUCCESS, message: 'succeed', ...options, }, }; }