apiDomain.js
524 Bytes
const _ = require('lodash');
// api调用列表
let domainApis = {
auth: {
login: '/service/account/v1/Profile/login'
},
shop: {
profile: '/SellerShopController/queryShopsByAdminPid'
}
};
// 域名列表
const domains = {
auth: 'http://serve.yohobuy.com',
shop: 'http://192.168.102.210:8088/platform'
};
_.each(domainApis, (apis, domainName) => {
_.each(apis, (url, api) => {
apis[api] = _.get(domains, domainName, '') + url;
});
});
module.exports = domainApis;