| | |
| | | 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 = "反馈管理") |
| | |
| | | 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); |
| | | } |
| | | } |