package com.flightfeather.uav.lightshare.web
|
|
import com.flightfeather.uav.lightshare.service.EPWModelService
|
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("air/analysis")
|
class EPWModelController (private val epwModelService: EPWModelService){
|
|
@GetMapping("/epw")
|
fun epwModel(
|
@RequestParam(value = "deviceCode", required = true) deviceCode: String,
|
@RequestParam(value = "startTime", required = true) startTime: String,
|
@RequestParam(value = "endTime", required = true) endTime: String,
|
@RequestParam(value = "len", required = true) len: Double,
|
) = epwModelService.getEpwModelResult(deviceCode, startTime, endTime, len)
|
}
|