|
@@ -16,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -97,4 +98,9 @@ public class SceneController extends BaseController{
|
|
|
os.close();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping("/uploadObj")
|
|
|
+ public ResultData uploadObj(@RequestParam(required = false) MultipartFile file) throws Exception {
|
|
|
+ return ResultData.ok(sceneService.uploadObj(file,getUserName()));
|
|
|
+ }
|
|
|
}
|