Add get user list controller
This commit is contained in:
17
src/main/kotlin/top/fatweb/api/vo/permission/GroupVo.kt
Normal file
17
src/main/kotlin/top/fatweb/api/vo/permission/GroupVo.kt
Normal file
@@ -0,0 +1,17 @@
|
||||
package top.fatweb.api.vo.permission
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
|
||||
@Schema(description = "用户组返回参数")
|
||||
data class GroupVo(
|
||||
@JsonSerialize(using = ToStringSerializer::class)
|
||||
val id: Long?,
|
||||
|
||||
@Schema(description = "用户组名", example = "Group")
|
||||
val name: String?,
|
||||
|
||||
@Schema(description = "启用", example = "true")
|
||||
val enable: Boolean?
|
||||
)
|
||||
17
src/main/kotlin/top/fatweb/api/vo/permission/RoleVo.kt
Normal file
17
src/main/kotlin/top/fatweb/api/vo/permission/RoleVo.kt
Normal file
@@ -0,0 +1,17 @@
|
||||
package top.fatweb.api.vo.permission
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
|
||||
@Schema(description = "角色返回参数")
|
||||
data class RoleVo(
|
||||
@JsonSerialize(using = ToStringSerializer::class)
|
||||
val id: Long?,
|
||||
|
||||
@Schema(description = "角色名", example = "Role")
|
||||
val name: String?,
|
||||
|
||||
@Schema(description = "启用", example = "true")
|
||||
val enable: Boolean?
|
||||
)
|
||||
@@ -2,7 +2,7 @@ package top.fatweb.api.vo.permission
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
|
||||
@Schema(description = "Token")
|
||||
@Schema(description = "Token 返回参数")
|
||||
data class TokenVo(
|
||||
@Schema(
|
||||
description = "Token",
|
||||
|
||||
@@ -15,7 +15,7 @@ data class UserInfoVo(
|
||||
val userId: Long?,
|
||||
|
||||
@Schema(description = "昵称", example = "User")
|
||||
val nickName: String?,
|
||||
val nickname: String?,
|
||||
|
||||
@Schema(description = "头像")
|
||||
val avatar: String?,
|
||||
|
||||
@@ -5,8 +5,8 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
import java.time.LocalDateTime
|
||||
|
||||
@Schema(description = "获取用户信息返回参数")
|
||||
data class UserWithInfoVo(
|
||||
@Schema(description = "用户权限信息返回参数")
|
||||
data class UserWithPowerInfoVo(
|
||||
@JsonSerialize(using = ToStringSerializer::class)
|
||||
val id: Long?,
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package top.fatweb.api.vo.permission
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
import java.time.LocalDateTime
|
||||
|
||||
@Schema(description = "用户角色信息返回参数")
|
||||
data class UserWithRoleInfoVo(
|
||||
@JsonSerialize(using = ToStringSerializer::class)
|
||||
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 currentLoginTime: LocalDateTime?,
|
||||
|
||||
@Schema(description = "当前登录 IP", example = "1.1.1.1")
|
||||
val currentLoginIp: String?,
|
||||
|
||||
@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 userInfo: UserInfoVo?,
|
||||
|
||||
@Schema(description = "角色列表")
|
||||
val roles: List<RoleVo>?,
|
||||
|
||||
@Schema(description = "用户组列表")
|
||||
val groups: List<GroupVo>?
|
||||
)
|
||||
Reference in New Issue
Block a user