package cn.flightfeather.supervision.lightshare.web
|
|
import cn.flightfeather.supervision.lightshare.service.HazardousWasteService
|
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.RequestParam
|
import org.springframework.web.bind.annotation.RestController
|
|
@Api(tags = ["危废相关API接口"])
|
@RestController
|
@RequestMapping("/hw")
|
class HazardousWasteController(val hazardousWasteService: HazardousWasteService) {
|
|
@ApiOperation(value = "获取用户所属企业的危废备案信息")
|
@GetMapping("/file")
|
fun getFile(@RequestParam("userId") userId: String) = hazardousWasteService.getFile(userId)
|
|
@ApiOperation(value = "获取用户所属企业的危废处置记录")
|
@GetMapping("/record")
|
fun getRecord(
|
@RequestParam("userId") userId: String,
|
@RequestParam(value = "year", required = false) year: String?
|
) = hazardousWasteService.getRecord(userId, year)
|
}
|