root 2 rokov pred
rodič
commit
47f6294ee6

+ 21 - 0
simulation-resource-video/src/main/java/com/css/simulation/resource/video/controller/VideoController.java

@@ -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) {
+
+    }
+
+
 }