init
This commit is contained in:
15
api/controller_admin/biz_audit_log.js
Normal file
15
api/controller_admin/biz_audit_log.js
Normal file
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user