import { HostingManagerBase } from '../../basic/HostingPlatform/HostingManagerBase' ; import { Application } from 'egg' ; import { GiteeApp } from './gitee-app' ; import { GiteeClient } from './gitee-client' ; import { GiteeConfig } from './gitee-config' ; import { getConfigMeta } from '../../config-generator/decorators' ; import { GiteeRawClient } from './gitee-raw-client/gitee-raw-client' ; export class GiteeManager extends HostingManagerBase < GiteeApp , GiteeClient , GiteeRawClient , GiteeConfig > { constructor ( config , app ) { super ( config , app ) ; this . type = 'gitee' ; } protected async getNewHostingPlatform ( id , config ) { return new GiteeApp ( id , config , this . app ) ; } public getConfigType ( ) { return getConfigMeta ( GiteeConfig ) ; } }