riku
2019-09-11 a0694aba52b4fb590039ff69e1625938ebef1041
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
 
}