2022-01-16 18:10:18 +08:00
|
|
|
{
|
|
|
|
"properties" : { },
|
2022-03-27 22:44:48 +08:00
|
|
|
"id" : "5ce5b7d99dd044a9b837c57df7aa9ca5",
|
2022-01-16 18:10:18 +08:00
|
|
|
"script" : null,
|
2022-03-27 22:44:48 +08:00
|
|
|
"groupId" : "f2538e0f370a4cabab0ae920f5e77ae7",
|
2022-01-16 18:10:18 +08:00
|
|
|
"name" : "保存",
|
2022-03-27 22:44:48 +08:00
|
|
|
"createTime" : null,
|
|
|
|
"updateTime" : 1648391254377,
|
|
|
|
"lock" : null,
|
2022-03-05 22:30:18 +08:00
|
|
|
"createBy" : null,
|
|
|
|
"updateBy" : null,
|
2022-01-16 18:10:18 +08:00
|
|
|
"path" : "/save",
|
2022-03-05 22:30:18 +08:00
|
|
|
"method" : "POST",
|
2022-01-16 18:10:18 +08:00
|
|
|
"parameters" : [ ],
|
2022-03-05 22:30:18 +08:00
|
|
|
"options" : [ {
|
|
|
|
"name" : "wrap_request_parameter",
|
|
|
|
"value" : "data",
|
|
|
|
"description" : "包装请求参数到一个变量中",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "String",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : null,
|
|
|
|
"error" : null,
|
|
|
|
"expression" : null,
|
|
|
|
"children" : null
|
|
|
|
} ],
|
2022-01-16 18:10:18 +08:00
|
|
|
"requestBody" : "",
|
|
|
|
"headers" : [ ],
|
|
|
|
"paths" : [ ],
|
|
|
|
"responseBody" : null,
|
|
|
|
"description" : null,
|
|
|
|
"requestBodyDefinition" : null,
|
2022-03-05 22:30:18 +08:00
|
|
|
"responseBodyDefinition" : null
|
2022-01-16 18:10:18 +08:00
|
|
|
}
|
|
|
|
================================
|
2022-03-27 22:44:48 +08:00
|
|
|
if(data.id){
|
|
|
|
data.updateDate = new Date()
|
|
|
|
}
|
|
|
|
return db.table("sys_gen_info").primary("id").save(data)
|