riku
2020-06-02 9a5f9bfc4f4b153dd0175c63f563d8047e1e2515
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.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)
}