后台:抽卡记录
This commit is contained in:
@@ -3,6 +3,7 @@ import { STATUS } from '@consts';
|
||||
import { SearchLogParam, SearchUserLogParam } from '@domain/backEndField/search';
|
||||
import { GMRecordModel } from '@db/GMRecord';
|
||||
import { UserLogModel } from '@db/UserLog';
|
||||
import { UserGachaRecModel } from '@db/UserGachaRec';
|
||||
|
||||
/**
|
||||
* Test Service
|
||||
@@ -28,4 +29,14 @@ export default class Log extends Service {
|
||||
let list = await UserLogModel.findByCondition(page, pageSize, form);
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS, { list: list.map(cur => ({...cur, env: ctx.app.config.realEnv})) });
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取抽卡日志
|
||||
*/
|
||||
public async getGachaLog(page: number, pageSize: number, form: SearchUserLogParam) {
|
||||
const {ctx} = this;
|
||||
|
||||
let list = await UserGachaRecModel.findByCondition(page, pageSize, form);
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS, { list: list.map(cur => ({...cur, env: ctx.app.config.realEnv})) });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user