巅峰演武:赛季优化修改
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user