| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | public XpFeedbackTypeController(IXpFeedbackTypeService xpFeedbackTypeService) { |
| | | this.xpFeedbackTypeService = xpFeedbackTypeService; |
| | | } |
| | | |
| | | /** |
| | | * 获取反馈类型 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getFeedbackTypeById/{id}") |
| | | public R<XpFeedbackType> getFeedbackTypeById(@PathVariable("id")Long id){ |
| | | return R.ok(xpFeedbackTypeService.getById(id)); |
| | | } |
| | | |
| | | @GetMapping("/feedback-type/getList") |
| | | @ApiOperation(value = "获取意见反馈类型列表",tags = {"意见反馈类型列表"},response = XpFeedbackType.class) |