巅峰演武:赛季优化修改

This commit is contained in:
luying
2022-10-17 16:04:45 +08:00
parent ddff18eb20
commit 08ca06d7ac
30 changed files with 590 additions and 272 deletions
+10
View File
@@ -21,6 +21,7 @@ import { UserOrderModel } from '@db/UserOrder';
import { SurveyModel } from '@db/Survery';
import { RedisClient } from 'redis';
import { ChannelInfoModel } from '@db/ChannelInfo';
import { PVPConfigModel } from '@db/PvpConfig';
/**
* Test Service
@@ -314,4 +315,13 @@ export default class Game extends Service {
}), total
});
}
public async getPvpConfig(page: number, pageSize: number, sortField: string, sortOrder: string) {
const { ctx } = this;
const list = await PVPConfigModel.findByCondition(page, pageSize, sortField, sortOrder);
const total = await PVPConfigModel.countByCondition()
return ctx.service.utils.resResult(STATUS.SUCCESS, {
list, total
});
}
}