package com.panzhihua.sangeshenbian.controller;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.panzhihua.common.controller.BaseController;
|
import com.panzhihua.common.model.vos.LoginUserInfoVO;
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.sangeshenbian.model.query.SuperviseQuery;
|
import com.panzhihua.sangeshenbian.model.vo.AppComplaintRejectVO;
|
import com.panzhihua.sangeshenbian.model.vo.ComplaintVO;
|
import com.panzhihua.sangeshenbian.service.impl.SuperviseService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.RequiredArgsConstructor;
|
import org.springframework.context.annotation.Lazy;
|
import org.springframework.validation.annotation.Validated;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.validation.Valid;
|
|
/**
|
* @author mitao
|
* @date 2025/5/7
|
*/
|
@Api(tags = {"小程序-诉求监督"})
|
@Validated
|
@RestController
|
@RequestMapping("/applet/supervise")
|
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
|
public class SuperviseController extends BaseController {
|
private final SuperviseService superviseService;
|
@PostMapping("/processing-record-page")
|
@ApiOperation("诉求监督-处理记录")
|
public R<Page<ComplaintVO>> queryProcessingRecordPage(@RequestBody SuperviseQuery query) {
|
LoginUserInfoVO loginUserInfo = super.getLoginUserInfo();
|
return R.ok(superviseService.queryProcessingRecordPage(query,loginUserInfo));
|
}
|
@PostMapping("/reject-record-page")
|
@ApiOperation("诉求监督-问题驳回池")
|
public R<Page<AppComplaintRejectVO>> queryRejectRecordPage(@RequestBody SuperviseQuery query) {
|
LoginUserInfoVO loginUserInfo = super.getLoginUserInfo();
|
return R.ok(superviseService.queryRejectRecordPage(query,loginUserInfo));
|
}
|
}
|