12345678910111213141516171819 |
- 'use strict';
- class AppBootHook {
- constructor(app) {
- this.app = app;
- }
- async willReady() {
- // 应用准备启动,准备默认数据
- }
- async serverDidReady() {
- // 应用已经启动完毕
- // const ctx = await this.app.createAnonymousContext();
- // // 检查种子
- // // await ctx.service.install.index();
- // await ctx.service.util.rabbitMq.mission();
- }
- }
- module.exports = AppBootHook;
|