riku
2022-06-09 9867f6d5c5bccfe52b878c344c536905dd6b309e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 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
import org.springframework.web.bind.annotation.RestController
 
@Api(tags = ["信访投诉及行政处罚相关API接口"])
@RestController
@RequestMapping("/complaint")
class ComplaintController(val complaintService: ComplaintService) {
 
    @ApiOperation(value = "获取信访投诉信息")
    @GetMapping("")
    fun getComplaints(
        @ApiParam(value = "用户id") @RequestParam("userId") userId: String
    ) = complaintService.getComplaints(userId)
 
    @ApiOperation(value = "获取行政处罚信息")
    @GetMapping("/punishment")
    fun getPunishment(
        @ApiParam(value = "用户id") @RequestParam("userId") userId: String
    ) = complaintService.getPunishment(userId)
}