feiyu02
2025-07-04 9c797fa0d704ef8ffb65cd1716b8eb694b4c46c3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
}