支付回调
This commit is contained in:
@@ -5,6 +5,7 @@ import 'egg';
|
||||
import ExportAccount from '../../../app/controller/account';
|
||||
import ExportGame from '../../../app/controller/game';
|
||||
import ExportHome from '../../../app/controller/home';
|
||||
import ExportSdk from '../../../app/controller/sdk';
|
||||
import ExportUpdate from '../../../app/controller/update';
|
||||
|
||||
declare module 'egg' {
|
||||
@@ -12,6 +13,7 @@ declare module 'egg' {
|
||||
account: ExportAccount;
|
||||
game: ExportGame;
|
||||
home: ExportHome;
|
||||
sdk: ExportSdk;
|
||||
update: ExportUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -8,6 +8,7 @@ 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 ExportAuth from '../../../app/service/Auth';
|
||||
import ExportGame from '../../../app/service/Game';
|
||||
import ExportSdk from '../../../app/service/Sdk';
|
||||
import ExportTest from '../../../app/service/Test';
|
||||
import ExportTurboCore from '../../../app/service/TurboCore';
|
||||
import ExportUpdate from '../../../app/service/Update';
|
||||
@@ -17,6 +18,7 @@ declare module 'egg' {
|
||||
interface IService {
|
||||
auth: AutoInstanceType<typeof ExportAuth>;
|
||||
game: AutoInstanceType<typeof ExportGame>;
|
||||
sdk: AutoInstanceType<typeof ExportSdk>;
|
||||
test: AutoInstanceType<typeof ExportTest>;
|
||||
turboCore: AutoInstanceType<typeof ExportTurboCore>;
|
||||
update: AutoInstanceType<typeof ExportUpdate>;
|
||||
|
||||
Reference in New Issue
Block a user