Browse Source

新增客户领取日志上传图片接口

anderx 8 months ago
parent
commit
8fccf47dc6

+ 10 - 0
src/main/java/com/goafanti/customer/controller/UserReceiveLogApiController.java

@@ -9,9 +9,11 @@ import com.goafanti.customer.bo.UserReceiveLogListBo;
 import com.goafanti.customer.service.UserReceiveLogService;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 
 import javax.annotation.Resource;
+import javax.servlet.http.HttpServletRequest;
 
 @RestController
 @RequestMapping("/api/admin/userRecevieLog")
@@ -37,4 +39,12 @@ public class UserReceiveLogApiController extends BaseApiController {
         res.setData(userReceiveLogService.list(in, pageNo, pageSize));
         return res;
     }
+
+    /** 上传图片 **/
+    @RequestMapping(value = "/upload", method = RequestMethod.POST)
+    public Result uploadOrderInvoiceFile(HttpServletRequest req){
+        Result res = new Result();
+        res.setData(handleFile(res, "/UserReceiveLog/", false, req, "UserReceiveLog"));
+        return res;
+    }
 }