后台:运营活动后台
This commit is contained in:
+2
@@ -2,6 +2,7 @@
|
||||
// Do not modify this file!!!!!!!!!
|
||||
|
||||
import 'egg';
|
||||
import ExportActivity from '../../../app/controller/activity';
|
||||
import ExportGame from '../../../app/controller/game';
|
||||
import ExportGmaccount from '../../../app/controller/gmaccount';
|
||||
import ExportHome from '../../../app/controller/home';
|
||||
@@ -11,6 +12,7 @@ import ExportUsers from '../../../app/controller/users';
|
||||
|
||||
declare module 'egg' {
|
||||
interface IController {
|
||||
activity: ExportActivity;
|
||||
game: ExportGame;
|
||||
gmaccount: ExportGmaccount;
|
||||
home: ExportHome;
|
||||
|
||||
+2
@@ -6,6 +6,7 @@ type AnyClass = new (...args: any[]) => any;
|
||||
type AnyFunc<T = any> = (...args: any[]) => T;
|
||||
type CanExportFunc = AnyFunc<Promise<any>> | AnyFunc<IterableIterator<any>>;
|
||||
type AutoInstanceType<T, U = T extends CanExportFunc ? T : T extends AnyFunc ? ReturnType<T> : T> = U extends AnyClass ? InstanceType<U> : U;
|
||||
import ExportActivity from '../../../app/service/Activity';
|
||||
import ExportGame from '../../../app/service/Game';
|
||||
import ExportGmUser from '../../../app/service/GmUser';
|
||||
import ExportTest from '../../../app/service/Test';
|
||||
@@ -14,6 +15,7 @@ import ExportUsers from '../../../app/service/users';
|
||||
|
||||
declare module 'egg' {
|
||||
interface IService {
|
||||
activity: AutoInstanceType<typeof ExportActivity>;
|
||||
game: AutoInstanceType<typeof ExportGame>;
|
||||
gmUser: AutoInstanceType<typeof ExportGmUser>;
|
||||
test: AutoInstanceType<typeof ExportTest>;
|
||||
|
||||
Reference in New Issue
Block a user