46 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2025-06-11 13:58:36 +08:00
{
"properties" : { },
"id" : "0ed26502b95049db8e00316c785c24c3",
"script" : null,
"groupId" : "55b38df92caf40b99b60fcc88e5ce361",
"name" : "新增日志",
"createTime" : null,
"updateTime" : 1749432031009,
"lock" : null,
"createBy" : null,
"updateBy" : null,
"path" : "/insert/log_data",
"method" : "POST",
"parameters" : [ ],
"options" : [ ],
"requestBody" : "",
"headers" : [ ],
"paths" : [ ],
"responseBody" : null,
"description" : null,
"requestBodyDefinition" : null,
"responseBodyDefinition" : null
}
================================
return db.Log.insert("""
insert into ${body.tableName} (
log_id,
log_type,
log_status,
syn_type,
data_id,
data_name,
mark,
res_body,
mark_id,
send_url,
send_body,
send_res,
send_flag,
send_memo)
values
(#{body.log_id},#{body.log_type},#{body.log_status},#{body.syn_type},#{body.data_id},#{body.data_name},#{body.mark},#{body.res_body},#{body.mark_id},
#{body.send_url},#{body.send_body},#{body.send_res},#{body.send_flag},#{body.send_memo})
""")