1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cn.flightfeather.supervision.lightshare.web
 
import cn.flightfeather.supervision.config.IgnoreResponseAdvice
import cn.flightfeather.supervision.lightshare.service.ChangeAdviceService
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
 
@Api(tags = ["整改建议API接口"])
@RestController
//@IgnoreResponseAdvice
@RequestMapping("/changeadvice")
class ChangeAdviceController(val changeAdviceService: ChangeAdviceService) {
 
    @ApiOperation("获取所有整改建议")
    @GetMapping
    fun getAll() = changeAdviceService.findAll()
}