egg-datasource
Install
$ npm i @myfe/egg-datasource --save
开启插件
// {app_root}/config/plugin.js
exports.datasource = {
enable: true,
package: 'egg-data-source',
};
配置插件
// {app_root}/config/config.default.js
exports.datasource = {
};
使用场景
- 进行 datasource 的描述及代理处理,可以方便的将请求映射至对应的后端。