| | |
| | | @RequestMapping("obd/threshold") |
| | | class ObdThresholdController(val obdThresholdValueService: ObdThresholdValueService) { |
| | | |
| | | @GetMapping("/{id}") |
| | | @GetMapping("/{vinCode}") |
| | | fun getDataByVinCode( |
| | | @PathVariable("id") id: String |
| | | ) = obdThresholdValueService.getDataByVinCode(id) |
| | | @PathVariable("vinCode") vinCode: String |
| | | ) = obdThresholdValueService.getDataByVinCode(vinCode) |
| | | |
| | | @PostMapping("/update") |
| | | fun update( |
| | | @RequestParam("userId") userId: String, |
| | | @RequestBody thresholdValueVo: ThresholdValueVo |
| | | ) = obdThresholdValueService.update(thresholdValueVo) |
| | | ) = obdThresholdValueService.update(userId, thresholdValueVo) |
| | | |
| | | @PutMapping("/save") |
| | | fun save( |
| | | @RequestParam("userId") userId: String, |
| | | @RequestBody thresholdValueVo: ThresholdValueVo |
| | | ) = obdThresholdValueService.save(thresholdValueVo) |
| | | ) = obdThresholdValueService.save(userId, thresholdValueVo) |
| | | |
| | | } |