更新:接口

This commit is contained in:
qiaoxin
2021-08-17 18:34:35 +08:00
parent a785644cbb
commit 13d55ca5c0
6 changed files with 45 additions and 1 deletions

View File

@@ -5,11 +5,13 @@ import 'egg';
import ExportAccount from '../../../app/controller/account';
import ExportGame from '../../../app/controller/game';
import ExportHome from '../../../app/controller/home';
import ExportUpdate from '../../../app/controller/update';
declare module 'egg' {
interface IController {
account: ExportAccount;
game: ExportGame;
home: ExportHome;
update: ExportUpdate;
}
}

View File

@@ -11,6 +11,7 @@ import ExportGame from '../../../app/service/Game';
import ExportTest from '../../../app/service/Test';
import ExportTurboCore from '../../../app/service/TurboCore';
import ExportUtils from '../../../app/service/Utils';
import ExportUpdate from '../../../app/service/Update';
declare module 'egg' {
interface IService {
@@ -19,5 +20,6 @@ declare module 'egg' {
test: AutoInstanceType<typeof ExportTest>;
turboCore: AutoInstanceType<typeof ExportTurboCore>;
utils: AutoInstanceType<typeof ExportUtils>;
update: AutoInstanceType<typeof ExportUpdate>;
}
}