riku
2019-09-05 197d6766d056fda4fdf9e1f9ee26de9f9a480ef5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.flightfeather.obd.lightshare.web
 
import com.flightfeather.obd.lightshare.service.ObdAlarmService
import org.springframework.web.bind.annotation.*
 
/**
 * @author riku
 * Date: 2019/9/5
 */
@RestController
@RequestMapping("obd/alarm")
class ObdAlarmController(val obdAlarmService: ObdAlarmService) {
 
    @GetMapping("/{id}")
    fun getAlarmByVinCode(
            @PathVariable("id") id: String,
            @RequestParam("page", required = false) pageNum: Int?,
            @RequestParam("per_page", required = false) pageSize: Int?
    ) = obdAlarmService.getAlarmByVinCode(id, pageNum, pageSize)
 
}