package com.flightfeather.obd.lightshare.web
|
|
import com.flightfeather.obd.lightshare.service.ObdUserService
|
import org.springframework.web.bind.annotation.GetMapping
|
import org.springframework.web.bind.annotation.PathVariable
|
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RestController
|
|
/**
|
* @author riku
|
* Date: 2019/9/6
|
*/
|
@RestController
|
@RequestMapping("obd/user")
|
class ObdUserController(val obdUserService: ObdUserService) {
|
|
@GetMapping("/info/{userId}")
|
fun getUserInfo(
|
@PathVariable("userId") userId: String
|
) = obdUserService.getUserInfo(userId)
|
|
}
|