magic-boot/data/magic-api/api/后台/组件/保存.ms
2022-03-05 10:28:20 +08:00

26 lines
761 B
Plaintext

{
"properties" : { },
"id" : "7879aae4cb5f40969b7de3db0dc4307c",
"script" : null,
"groupId" : "6f106ebdee21489db34b956f7770ff03",
"name" : "保存",
"createTime" : null,
"updateTime" : 1646401456776,
"lock" : "0",
"method" : "POST",
"path" : "/save",
"parameters" : [ ],
"option" : "[{\"name\":\"wrap_request_parameter\",\"value\":\"data\",\"description\":\"包装请求参数到一个变量中\"}]",
"requestBody" : "",
"headers" : [ ],
"paths" : [ ],
"responseBody" : null,
"description" : null,
"requestBodyDefinition" : null,
"responseBodyDefinition" : null,
"optionMap" : {
"wrap_request_parameter" : "data"
}
}
================================
return db.table("sys_component").primary("id").saveOrUpdate(data)