| 12345678910111213141516171819 |
- 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<any> {
- return request({
- method,
- url: goCommonSearchUrl(url),
- params,
- })
- .then((value) => value.data.data)
- .catch((err) => Promise.reject(err));
- }
|