package cn.flightfeather.supervision.lightshare.web
|
|
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 = ["ChangeAdviceController"], description = "整改建议API接口")
|
@RestController
|
@RequestMapping("/changeadvice")
|
class ChangeAdviceController(val changeAdviceService: ChangeAdviceService) {
|
|
@ApiOperation("获取所有整改建议")
|
@GetMapping
|
fun getAll() = changeAdviceService.findAll()
|
}
|