|
@@ -29,11 +29,12 @@ class LogService extends Service {
|
|
|
throw new Error({ errcode: -2001, errmsg: '删除失败' });
|
|
|
}
|
|
|
}
|
|
|
- async query({ skip, limit, mondel, method }) {
|
|
|
+ async query({ skip, limit, mondel, method, result }) {
|
|
|
const { Log: model } = this.ctx.model;
|
|
|
const filter = {};
|
|
|
if (mondel) filter.mondel = mondel;
|
|
|
if (method) filter.method = method;
|
|
|
+ if (result) filter.result = result;
|
|
|
try {
|
|
|
const total = await model.find({ ...filter });
|
|
|
let res;
|