import { Application, ChannelService, HandlerService, } from 'pinus'; import { reloadResources } from '../../../pubUtils/data'; export default function (app: Application) { new HandlerService(app, {}); return new ActivityRemote(app); } export class ActivityRemote { constructor(private app: Application) { this.app = app; this.channelService = app.get('channelService'); } private channelService: ChannelService; /** * 重载json资源 */ public async reloadResources() { reloadResources(); } }