From fb782c34e30f129abd410cc83b4b107f5c089760 Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期一, 06 二月 2023 11:31:16 +0800
Subject: [PATCH] bom反馈提交

---
 src/main/java/com/whyc/controller/BOMFeedbakController.java |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/whyc/controller/BOMFeedbakController.java b/src/main/java/com/whyc/controller/BOMFeedbakController.java
index 9c3fc0a..df5969b 100644
--- a/src/main/java/com/whyc/controller/BOMFeedbakController.java
+++ b/src/main/java/com/whyc/controller/BOMFeedbakController.java
@@ -1,14 +1,15 @@
 package com.whyc.controller;
 
 import com.whyc.dto.Response;
+import com.whyc.pojo.BOMFeedback;
 import com.whyc.service.BOMFeedbakService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-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.bind.annotation.*;
+
+import javax.mail.MessagingException;
+import java.io.IOException;
 
 @RestController
 @Api(tags = "鍙嶉绠$悊")
@@ -34,4 +35,10 @@
     public Response setconfirmFk(@RequestParam int id){
         return service.setconfirmFk(id);
     }
+
+    @ApiOperation("鎻愪氦鍙嶉")
+    @GetMapping("submitFeedback")
+    public Response submitFeedback(@RequestBody BOMFeedback feedback) throws IOException, MessagingException {
+        return service.submitFeedback(feedback);
+    }
 }

--
Gitblit v1.9.1