huliguo
2025-07-03 e3a2245265516fef78b4737d6fffc939e7c5e0af
pt-admin/src/main/java/com/ruoyi/web/controller/errand/FeedbackController.java
@@ -2,6 +2,7 @@
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;
@@ -21,7 +22,6 @@
@Validated
@RestController
@RequestMapping(value = "/app/feedback")
@Api(value = "用户反馈", tags = "用户反馈操作控制器")
@Slf4j
public class FeedbackController {
    @Autowired
@@ -32,8 +32,8 @@
     */
    @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();
    }
@@ -43,7 +43,7 @@
     */
    @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));
    }
@@ -52,7 +52,7 @@
     */
    @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();
@@ -63,7 +63,7 @@
     */
    @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();