package com.flightfeather.obd.lightshare.web
|
|
import com.flightfeather.obd.lightshare.service.ObdDataService
|
import org.springframework.web.bind.annotation.*
|
|
/**
|
* @author riku
|
* Date: 2019/8/27
|
*/
|
@RestController
|
@RequestMapping("obd/data")
|
class ObdDataController(val obdDataService: ObdDataService) {
|
|
@GetMapping("/{vinCode}")
|
fun getById(
|
@PathVariable("vinCode") vinCode: String,
|
@RequestParam("page", required = false) pageNum: Int?,
|
@RequestParam("per_page", required = false) pageSize: Int?
|
) = obdDataService.getDataByVinCode(vinCode, pageNum, pageSize)
|
}
|