import { Application, ChannelService } from 'pinus'; import { resetPvpSeasonTime, setPvpDefResult } from '../../../services/timeTaskService'; import PvpDefenseType from '../../../db/PvpDefense'; export default function (app: Application) { return new SystimerRemote(app); } export class SystimerRemote { constructor(private app: Application) { this.app = app; this.channelService = app.get('channelService'); } private channelService: ChannelService; public async resetPvpSeasonTime(day: number) { return await resetPvpSeasonTime(day); } public async setPvpDefResult(pvpDefense: PvpDefenseType, seasonNum: number, seasonEndTime:number) { return await setPvpDefResult(pvpDefense, seasonNum, seasonEndTime); } }