This commit is contained in:
mamengke01
2021-01-12 18:01:14 +08:00
parent 88be6a1c46
commit 71659f8ce0

View File

@@ -0,0 +1,23 @@
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);
}
}