|
@@ -1,4 +1,25 @@
|
|
|
package com.css.simulation.resource.video.controller;
|
|
|
|
|
|
+import org.springframework.http.MediaType;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestPart;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.multipart.MultipartFile;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/video")
|
|
|
public class VideoController {
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 接受 xosc 文件
|
|
|
+ * @param file
|
|
|
+ */
|
|
|
+ @PostMapping(value = "/generate", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
|
+ public void generateVideo(@RequestPart("file") MultipartFile file) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|