Egg's feishu plugin.
$ npm i egg-feishu --save
Change {app_root}/config/plugin.js
to enable egg-feishu
plugin:
exports.feishu = {
enable: true,
package: 'egg-feishu',
};
// {app_root}/config/config.default.js
// const lark = require('@larksuiteoapi/node-sdk');
exports.feishu = {
appId: 'app id',
appSecret: 'app secret',
// appType: lark.AppType.SelfBuild,
// domain: lark.Domain.Feishu,
};
// {app_root}/app/controller/user.js
exports.index = function* (ctx) {
ctx.body = yield ctx.app.feishu.contact.department.list();
}
Please open an issue here.
If you are a contributor, follow CONTRIBUTING.