app.js 444 B

12345678910111213141516171819
  1. 'use strict';
  2. class AppBootHook {
  3. constructor(app) {
  4. this.app = app;
  5. }
  6. async willReady() {
  7. // 应用准备启动,准备默认数据
  8. }
  9. async serverDidReady() {
  10. // 应用已经启动完毕
  11. // const ctx = await this.app.createAnonymousContext();
  12. // // 检查种子
  13. // // await ctx.service.install.index();
  14. // await ctx.service.util.rabbitMq.mission();
  15. }
  16. }
  17. module.exports = AppBootHook;