1
This commit is contained in:
@@ -123,4 +123,17 @@ module.exports = {
|
||||
});
|
||||
ctx.success({ rows, count });
|
||||
},
|
||||
|
||||
"POST /biz_api_call_log/export": async (ctx) => {
|
||||
const body = ctx.getBody();
|
||||
const param = body.param || body;
|
||||
const biz_api_call_log = baseModel.biz_api_call_log;
|
||||
const where = build_search_where(biz_api_call_log, param.seachOption || {});
|
||||
const rows = await biz_api_call_log.findAll({
|
||||
where,
|
||||
limit: 10000,
|
||||
order: [["id", "DESC"]],
|
||||
});
|
||||
ctx.success({ rows });
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user