| | |
| | | import cn.flightfeather.supervision.lightshare.service.ComplaintService |
| | | import cn.flightfeather.supervision.lightshare.service.ProblemService |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | | import io.swagger.annotations.ApiParam |
| | | import org.springframework.web.bind.annotation.GetMapping |
| | | import org.springframework.web.bind.annotation.RequestMapping |
| | | import org.springframework.web.bind.annotation.RequestParam |
| | |
| | | @RequestMapping("/complaint") |
| | | class ComplaintController(val complaintService: ComplaintService) { |
| | | |
| | | @ApiOperation(value = "获取信访投诉信息") |
| | | @GetMapping("") |
| | | fun getComplaints( |
| | | @RequestParam("userId") userId: String |
| | | @ApiParam(value = "用户id") @RequestParam("userId") userId: String |
| | | ) = complaintService.getComplaints(userId) |
| | | |
| | | @ApiOperation(value = "获取行政处罚信息") |
| | | @GetMapping("/punishment") |
| | | fun getPunishment( |
| | | @RequestParam("userId") userId: String |
| | | @ApiParam(value = "用户id") @RequestParam("userId") userId: String |
| | | ) = complaintService.getPunishment(userId) |
| | | } |