This commit is contained in:
张成
2026-04-01 10:53:26 +08:00
parent c2205188d1
commit 03c5579c86
11 changed files with 211 additions and 580 deletions

View File

@@ -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 });
},
};