|
@@ -0,0 +1,30 @@
|
|
|
|
|
+package com.ydtech.modules.order.controller;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+import com.ydtech.core.page.HttpResult;
|
|
|
|
|
+import com.ydtech.modules.order.entity.po.InsUploadFiles;
|
|
|
|
|
+import com.ydtech.modules.order.service.InsUploadFilesService;
|
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
+
|
|
|
|
|
+@Api(tags = "文件管理")
|
|
|
|
|
+@RequestMapping("/sys/files")
|
|
|
|
|
+@RestController
|
|
|
|
|
+@RequiredArgsConstructor
|
|
|
|
|
+public class InsUploadFilesController {
|
|
|
|
|
+
|
|
|
|
|
+ private final InsUploadFilesService insUploadFilesService;
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/{fileId}")
|
|
|
|
|
+ @ApiOperation(value = "通过id查询文件信息")
|
|
|
|
|
+ public HttpResult<InsUploadFiles> queryById(@PathVariable String fileId) {
|
|
|
|
|
+ InsUploadFiles insUploadFiles = this.insUploadFilesService.queryById(fileId);
|
|
|
|
|
+ return HttpResult.ok(insUploadFiles);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|