magic-boot/data/magic-api/api/后台/测试数据/保存.ms

37 lines
956 B
Plaintext
Raw Normal View History

2022-01-16 18:10:18 +08:00
{
"properties" : { },
"id" : "d31e3bea5666449d90fa95779adfb61f",
"script" : null,
"groupId" : "42d241c0bb18476f8dabf92c2e4e2324",
"name" : "保存",
"createTime" : 1646490239463,
2022-01-16 18:10:18 +08:00
"updateTime" : 1642312068428,
"lock" : "0",
"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
}
================================
return db.table("sys_test_data").primary("id").saveOrUpdate(data)