whycxzp
2023-02-06 fb782c34e30f129abd410cc83b4b107f5c089760
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);
    }
}