| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.errand.object.dto.app.AddFeedbackDTO; |
| | | import com.ruoyi.errand.object.dto.sys.FeedbackPageListDTO; |
| | | import com.ruoyi.errand.object.dto.sys.OrderPageListDTO; |
| | | import com.ruoyi.errand.object.vo.sys.FeedbackPageListVO; |
| | |
| | | @Validated |
| | | @RestController |
| | | @RequestMapping(value = "/app/feedback") |
| | | @Api(value = "用户反馈", tags = "用户反馈操作控制器") |
| | | @Slf4j |
| | | public class FeedbackController { |
| | | @Autowired |
| | |
| | | */ |
| | | @PostMapping("/add") |
| | | @ApiOperation(value = "意见反馈",tags = "app用户端-意见反馈") |
| | | public R<Integer> add(@RequestParam String content) { |
| | | feedbackService.add(content); |
| | | public R add(@RequestBody AddFeedbackDTO dto) { |
| | | feedbackService.add(dto); |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PostMapping("/list") |
| | | @PreAuthorize("@ss.hasPermi('system:feedback:list')") |
| | | @ApiOperation(value = "反馈管理-分页列表", tags = "系统后台-订单管理") |
| | | @ApiOperation(value = "反馈管理-分页列表", tags = "系统后台-意见反馈") |
| | | public R<IPage<FeedbackPageListVO>> getFeedbackPageList(@RequestBody @Valid FeedbackPageListDTO feedbackPageListDTO) { |
| | | return R.ok(feedbackService.getFeedbackPageList(feedbackPageListDTO)); |
| | | } |
| | |
| | | */ |
| | | @DeleteMapping("/delete") |
| | | @PreAuthorize("@ss.hasPermi('system:feedback:list')") |
| | | @ApiOperation(value = "反馈管理-删除", tags = "系统后台-订单管理") |
| | | @ApiOperation(value = "反馈管理-删除", tags = "系统后台-意见反馈") |
| | | public R delete(@RequestParam("id")Integer id) { |
| | | feedbackService.delete(id); |
| | | return R.ok(); |
| | |
| | | */ |
| | | @PutMapping("/dispose") |
| | | @PreAuthorize("@ss.hasPermi('system:feedback:list')") |
| | | @ApiOperation(value = "反馈管理-处理", tags = "系统后台-订单管理") |
| | | @ApiOperation(value = "反馈管理-处理", tags = "系统后台-意见反馈") |
| | | public R dispose(@RequestParam("id")Integer id) { |
| | | feedbackService.dispose(id); |
| | | return R.ok(); |