package com.flightfeather.obd.lightshare.web
|
|
import com.flightfeather.obd.lightshare.bean.ThresholdValueVo
|
import com.flightfeather.obd.lightshare.service.ObdThresholdValueService
|
import org.springframework.web.bind.annotation.*
|
|
/**
|
* @author riku
|
* Date: 2019/9/5
|
*/
|
@RestController
|
@RequestMapping("obd/threshold")
|
class ObdThresholdController(val obdThresholdValueService: ObdThresholdValueService) {
|
|
@GetMapping("/{id}")
|
fun getDataByVinCode(
|
@PathVariable("id") id: String
|
) = obdThresholdValueService.getDataByVinCode(id)
|
|
@PostMapping("/update")
|
fun update(
|
@RequestBody thresholdValueVo: ThresholdValueVo
|
) = obdThresholdValueService.update(thresholdValueVo)
|
|
@PutMapping("/save")
|
fun save(
|
@RequestBody thresholdValueVo: ThresholdValueVo
|
) = obdThresholdValueService.save(thresholdValueVo)
|
|
}
|