|
@@ -0,0 +1,35 @@
|
|
|
+package cn.com.qmth.examcloud.exchange.inner.api.controller;
|
|
|
+
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.multipart.commons.CommonsMultipartFile;
|
|
|
+
|
|
|
+import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Upyun服务
|
|
|
+ *
|
|
|
+ * @author WANGWEI
|
|
|
+ * @date 2018年11月21日
|
|
|
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("${$rmp.ctr.exchange.inner}/upyun")
|
|
|
+public class UpyunController extends ControllerSupport {
|
|
|
+
|
|
|
+ @ApiOperation(value = "保存照片")
|
|
|
+ @PostMapping("put/{siteId}")
|
|
|
+ public String addPhoto(@PathVariable String siteId,
|
|
|
+ @RequestParam(required = true) CommonsMultipartFile file) {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|