import service from "../utils/request"; import {Url} from "../utils/urlFormat"; const getMethodCommon = function (_url, params) { let urls = new Url() let new_url = urls.getUrl(_url, params) return service({ url: new_url, method: 'GET', }) } const postMethodCommon = function (_url, data) { return service({ url: _url, method: 'POST', data }) } module.exports = { getMethodCommon, postMethodCommon }