magic-boot/data/magic-api/api/系统管理/富文本/上传图片.ms

102 lines
2.5 KiB
Plaintext
Raw Normal View History

2021-11-03 16:25:14 +08:00
{
"properties" : { },
"id" : "72d080dc9ed540eebe17a11e4077d775",
"script" : null,
"groupId" : "7eeba36706c24c1484ee4e84ad829f9b",
"name" : "上传图片",
"createTime" : 1646490239417,
2021-11-03 16:25:14 +08:00
"updateTime" : 1635926424491,
"lock" : "0",
"createBy" : null,
"updateBy" : null,
2021-11-03 16:25:14 +08:00
"path" : "/uploadImage",
"method" : "POST",
2021-11-03 16:25:14 +08:00
"parameters" : [ ],
"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" : [ ]
} ]
}
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")));