Add GetUserInfo
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package top.fatweb.api.vo.authentication
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
|
||||
@Schema(description = "页面元素返回参数")
|
||||
data class ElementVo(
|
||||
val id: Long?,
|
||||
|
||||
@Schema(description = "元素名", example = "AddButton")
|
||||
val name: String?,
|
||||
|
||||
@Schema(description = "权限 ID")
|
||||
val powerId: Long?,
|
||||
|
||||
@Schema(description = "父 ID")
|
||||
val parentId: Long?,
|
||||
|
||||
@Schema(description = "菜单 ID")
|
||||
val menuId: Long?
|
||||
)
|
||||
20
src/main/kotlin/top/fatweb/api/vo/authentication/MenuVo.kt
Normal file
20
src/main/kotlin/top/fatweb/api/vo/authentication/MenuVo.kt
Normal file
@@ -0,0 +1,20 @@
|
||||
package top.fatweb.api.vo.authentication
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
|
||||
@Schema(description = "菜单返回参数")
|
||||
data class MenuVo(
|
||||
val id: Long?,
|
||||
|
||||
@Schema(description = "菜单名", example = "System")
|
||||
val name: String?,
|
||||
|
||||
@Schema(description = "URL", example = "/system")
|
||||
val url: String?,
|
||||
|
||||
@Schema(description = "权限 ID")
|
||||
val powerId: Long?,
|
||||
|
||||
@Schema(description = "父 ID")
|
||||
val parentId: Long?
|
||||
)
|
||||
@@ -0,0 +1,23 @@
|
||||
package top.fatweb.api.vo.authentication
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
|
||||
@Schema(description = "功能返回参数")
|
||||
data class OperationVo(
|
||||
val id: Long?,
|
||||
|
||||
@Schema(description = "功能名", example = "Add User")
|
||||
val name: String?,
|
||||
|
||||
@Schema(description = "功能编码", example = "system:user:add")
|
||||
val code: String?,
|
||||
|
||||
@Schema(description = "权限 ID")
|
||||
val powerId: Long?,
|
||||
|
||||
@Schema(description = "父 ID")
|
||||
val parentId: Long?,
|
||||
|
||||
@Schema(description = "页面元素 ID")
|
||||
val elementId: Long?
|
||||
)
|
||||
@@ -0,0 +1,45 @@
|
||||
package top.fatweb.api.vo.authentication
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
import java.time.LocalDateTime
|
||||
|
||||
@Schema(description = "获取用户信息返回参数")
|
||||
data class UserInfoVo(
|
||||
val id: Long?,
|
||||
|
||||
@Schema(description = "用户名", example = "User")
|
||||
val username: String?,
|
||||
|
||||
@Schema(description = "是否锁定", example = "false")
|
||||
val locking: Boolean?,
|
||||
|
||||
@Schema(description = "过期时间", example = "1900-01-01T00:00:00.000Z")
|
||||
val expiration: LocalDateTime?,
|
||||
|
||||
@Schema(description = "认证过期时间", example = "1900-01-01T00:00:00.000Z")
|
||||
val credentialsExpiration: LocalDateTime?,
|
||||
|
||||
@Schema(description = "是否启用", example = "true")
|
||||
val enable: Boolean?,
|
||||
|
||||
@Schema(description = "最后登录时间", example = "1900-01-01T00:00:00.000Z")
|
||||
val lastLoginTime: LocalDateTime?,
|
||||
|
||||
@Schema(description = "最后登录 IP", example = "1.1.1.1")
|
||||
val lastLoginIp: String?,
|
||||
|
||||
@Schema(description = "创建时间", example = "1900-01-01T00:00:00.000Z")
|
||||
val createTime: LocalDateTime?,
|
||||
|
||||
@Schema(description = "修改时间", example = "1900-01-01T00:00:00.000Z")
|
||||
val updateTime: LocalDateTime?,
|
||||
|
||||
@Schema(description = "菜单列表")
|
||||
val menus: List<MenuVo>?,
|
||||
|
||||
@Schema(description = "页面元素列表")
|
||||
val elements: List<ElementVo>?,
|
||||
|
||||
@Schema(description = "功能列表")
|
||||
val operations: List<OperationVo>?
|
||||
)
|
||||
Reference in New Issue
Block a user