Add table t_user_info

This commit is contained in:
2023-10-30 18:39:52 +08:00
parent d4e4ec6cbc
commit c1326f5e7e
11 changed files with 159 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RestController
import top.fatweb.api.converter.UserConverter
import top.fatweb.api.entity.common.ResponseResult
import top.fatweb.api.service.permission.IUserService
import top.fatweb.api.vo.authentication.UserInfoVo
import top.fatweb.api.vo.authentication.UserWithInfoVo
/**
* <p>
@@ -22,7 +22,7 @@ class UserController(
private val userService: IUserService
) {
@GetMapping("info")
fun getInfo(): ResponseResult<UserInfoVo> {
fun getInfo(): ResponseResult<UserWithInfoVo> {
userService.getInfo()?.let {
return ResponseResult.databaseSuccess(data = UserConverter.userToUserInfoVo(it))
} ?: let { return ResponseResult.databaseFail() }