1
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
const stats = require("../service/biz_api_stats_service");
|
||||
const crud = require("../service/biz_admin_crud");
|
||||
|
||||
|
||||
const baseModel = require("../../middleware/baseModel");
|
||||
const { find_page } = require("../service/biz_query_helpers");
|
||||
|
||||
module.exports = {
|
||||
/** 按用户查询调用统计 */
|
||||
@@ -36,10 +35,10 @@ module.exports = {
|
||||
ctx.success(data);
|
||||
},
|
||||
|
||||
/** 调用日志分页列表(复用通用 CRUD) */
|
||||
/** 调用日志分页列表 */
|
||||
"POST /biz_api_call_log/page": async (ctx) => {
|
||||
const body = ctx.getBody();
|
||||
const data = await crud.page("biz_api_call_log", body);
|
||||
ctx.success({ rows: data.rows, count: data.count });
|
||||
const { count, rows } = await find_page(baseModel.biz_api_call_log, "biz_api_call_log", body);
|
||||
ctx.success({ rows, count });
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user