2021-11-03 16:25:14 +08:00
|
|
|
{
|
|
|
|
"properties" : { },
|
|
|
|
"id" : "72d080dc9ed540eebe17a11e4077d775",
|
|
|
|
"script" : null,
|
|
|
|
"groupId" : "7eeba36706c24c1484ee4e84ad829f9b",
|
|
|
|
"name" : "上传图片",
|
2022-03-05 22:30:18 +08:00
|
|
|
"createTime" : 1646490239417,
|
2021-11-03 16:25:14 +08:00
|
|
|
"updateTime" : 1635926424491,
|
|
|
|
"lock" : "0",
|
2022-03-05 22:30:18 +08:00
|
|
|
"createBy" : null,
|
|
|
|
"updateBy" : null,
|
2021-11-03 16:25:14 +08:00
|
|
|
"path" : "/uploadImage",
|
2022-03-05 22:30:18 +08:00
|
|
|
"method" : "POST",
|
2021-11-03 16:25:14 +08:00
|
|
|
"parameters" : [ ],
|
2022-03-05 22:30:18 +08:00
|
|
|
"options" : [ ],
|
2021-11-03 16:25:14 +08:00
|
|
|
"requestBody" : "{}",
|
|
|
|
"headers" : [ ],
|
|
|
|
"paths" : [ ],
|
|
|
|
"responseBody" : "{\n \"code\": 500,\n \"message\": \"系统内部出现错误\",\n \"data\": null,\n \"timestamp\": 1635926293609,\n \"executeTime\": 33\n}",
|
|
|
|
"description" : null,
|
|
|
|
"requestBodyDefinition" : null,
|
|
|
|
"responseBodyDefinition" : {
|
|
|
|
"name" : "",
|
|
|
|
"value" : "",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Object",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ {
|
|
|
|
"name" : "code",
|
|
|
|
"value" : "500",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Integer",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
}, {
|
|
|
|
"name" : "message",
|
|
|
|
"value" : "系统内部出现错误",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "String",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
}, {
|
|
|
|
"name" : "data",
|
|
|
|
"value" : "null",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Object",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
}, {
|
|
|
|
"name" : "timestamp",
|
|
|
|
"value" : "1635926293609",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Long",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
}, {
|
|
|
|
"name" : "executeTime",
|
|
|
|
"value" : "33",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Integer",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
} ]
|
2022-03-05 22:30:18 +08:00
|
|
|
}
|
2021-11-03 16:25:14 +08:00
|
|
|
}
|
|
|
|
================================
|
|
|
|
import 'org.ssssssss.magicboot.utils.FileUtils'
|
|
|
|
import request;
|
|
|
|
import response;
|
|
|
|
|
|
|
|
return response.json(FileUtils.saveFile(request.getFile("file")));
|