package cn.flightfeather.supervision.lightshare.web
|
|
import cn.flightfeather.supervision.lightshare.service.WxUserService
|
import cn.flightfeather.supervision.lightshare.vo.AccessTokenWX
|
import io.swagger.annotations.Api
|
import io.swagger.annotations.ApiOperation
|
import io.swagger.annotations.ApiParam
|
import org.springframework.web.bind.annotation.PostMapping
|
import org.springframework.web.bind.annotation.RequestBody
|
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RestController
|
|
@Api(tags = ["微信用户信息API接口"])
|
@RestController
|
@RequestMapping("/wxuser")
|
class WxUserController(val wxUserService: WxUserService) {
|
|
@ApiOperation(value = "登录")
|
@PostMapping("/loginWx")
|
fun loginWx(
|
@ApiParam("登录信息") @RequestBody accessTokenWX: AccessTokenWX
|
) = wxUserService.loginWx(accessTokenWX)
|
}
|