const crud = require("../service/biz_admin_crud");
const { getRequestBody } = crud;

module.exports = {
  "POST /biz_audit_log/page": async (ctx) => {
    const body = getRequestBody(ctx);
    const data = await crud.page("biz_audit_log", body);
    ctx.success({ rows: data.rows, count: data.count });
  },
  "POST /biz_audit_log/export": async (ctx) => {
    const body = getRequestBody(ctx);
    const res = await crud.exportCsv("biz_audit_log", body);
    ctx.success(res);
  },
};
