package com.flightfeather.uav.lightshare.web
|
|
import com.flightfeather.uav.lightshare.service.RealTimeDataService
|
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
|
|
@RestController
|
@RequestMapping("air/realtime")
|
class RealTimeDataController(val realTimeDataService: RealTimeDataService) {
|
|
@GetMapping("/sec")
|
fun getSecondData(
|
@RequestParam(value = "deviceCode", required = false) deviceCode: String?,
|
@RequestParam(value = "page", required = false) page: Int?,
|
@RequestParam(value = "perPage", required = false) perPage: Int?
|
) = realTimeDataService.getSecondData(deviceCode,page, perPage)
|
}
|