import { request, goCommonSearchUrl } from '@/utils/request/index'; import { Method } from 'axios' /** * go 接口通用查询 * @param url 接口路径 * @param params 请求参数 * @param method 请求方式 * @returns */ export function commonSearch_go(url: string, params: Object, method: Method = 'get'): Promise { return request({ method, url: goCommonSearchUrl(url), params, }) .then((value) => value.data.data) .catch((err) => Promise.reject(err)); }