后台:添加操作日志

This commit is contained in:
luying
2021-12-22 17:10:37 +08:00
parent 5573faafb1
commit 8c488ea710
14 changed files with 273 additions and 28 deletions
+1
View File
@@ -101,6 +101,7 @@ export default class GMUsers extends Service {
return this.ctx.service.utils.resResult(STATUS.INTERNAL_ERR);
}
}
/**
* 创建后台账号
*/
+21
View File
@@ -0,0 +1,21 @@
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 });
}
}