magic-boot/data/magic-api/api/系统管理/代码生成/保存.ms

40 lines
987 B
Plaintext
Raw Normal View History

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,
"createBy" : null,
"updateBy" : null,
2022-01-16 18:10:18 +08:00
"path" : "/save",
"method" : "POST",
2022-01-16 18:10:18 +08:00
"parameters" : [ ],
"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,
"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)