package com.flightfeather.uav.lightshare.web
|
|
import com.flightfeather.uav.lightshare.service.VehicleService
|
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
|
|
/**
|
* @author riku
|
* Date: 2019/10/25
|
*/
|
@RestController
|
@RequestMapping("uav/vehicle")
|
class VehicleInfoController(val vehicleService: VehicleService) {
|
|
@GetMapping("/info")
|
fun getVehicleInfo(
|
@RequestParam("page", required = false) pageNum: Int?,
|
@RequestParam("per_page", required = false) pageSize: Int?
|
) = vehicleService.getVehicleInfo(pageNum, pageSize)
|
}
|