app.js 398 B

123456789101112131415161718
  1. 'use strict';
  2. class AppBootHook {
  3. constructor(app) {
  4. this.app = app;
  5. }
  6. async didReady() {
  7. // 应用已经启动完毕
  8. const ctx = await this.app.createAnonymousContext();
  9. // 企业入驻申请消息接收事件
  10. // await ctx.service.rabbitmq.receiveQueueMsg('user_bind');
  11. }
  12. async serverDidReady() {
  13. // 应用已经启动完毕
  14. }
  15. }
  16. module.exports = AppBootHook;