package cn.flightfeather.supervision.lightshare.web
|
|
import cn.flightfeather.supervision.lightshare.service.ComplaintService
|
import cn.flightfeather.supervision.lightshare.service.ProblemService
|
import io.swagger.annotations.Api
|
import org.springframework.web.bind.annotation.GetMapping
|
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RequestParam
|
import org.springframework.web.bind.annotation.RestController
|
|
@Api(tags = ["信访投诉及行政处罚相关API接口"])
|
@RestController
|
@RequestMapping("/complaint")
|
class ComplaintController(val complaintService: ComplaintService) {
|
|
@GetMapping("")
|
fun getComplaints(
|
@RequestParam("userId") userId: String
|
) = complaintService.getComplaints(userId)
|
|
@GetMapping("/punishment")
|
fun getPunishment(
|
@RequestParam("userId") userId: String
|
) = complaintService.getPunishment(userId)
|
}
|