|
@@ -16,6 +16,7 @@ import org.springblade.core.mp.support.Query;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
@@ -193,5 +194,16 @@ public class StandardInfoController {
|
|
|
return R.data(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 上传文件接口
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "上传文件")
|
|
|
+ @ApiImplicitParam(name = "file", value = "文件", required = true)
|
|
|
+ @PostMapping("/upload-file")
|
|
|
+ public R<String> uploadFile(MultipartFile file) {
|
|
|
+// String url = this.uStandardInfoService.uploadFile(file);
|
|
|
+ return R.data("http://test.pdf");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|