22 lines
527 B
TypeScript
22 lines
527 B
TypeScript
import { Service } from 'egg';
|
|
import { STATUS } from '@consts';
|
|
import { SearchLogParam } from '@domain/backEndField/search';
|
|
import { GMRecordModel } from '@db/GMRecord';
|
|
|
|
/**
|
|
* Test Service
|
|
*/
|
|
export default class Log extends Service {
|
|
|
|
/**
|
|
* 修改用户组
|
|
*/
|
|
public async getGmLog(page: number, pageSize: number, form: SearchLogParam) {
|
|
const {ctx} = this;
|
|
|
|
let list = await GMRecordModel.findByCondition(page, pageSize, form);
|
|
return ctx.service.utils.resResult(STATUS.SUCCESS, { list });
|
|
}
|
|
|
|
}
|