avalon
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
avalon
avalon-authorization
/
io.github.lishangbu.avalon.authorization.model
/
UserWithRoles
User
With
Roles
data
class
UserWithRoles
(
val
id
:
Long
?
,
val
username
:
String
?
,
val
avatar
:
String
?
,
val
roles
:
Set
<
UserWithRoles.PlainRole
>
)
用户及角色信息
Author
lishangbu
Since
2025/9/19
Members
Constructors
User
With
Roles
Link copied to clipboard
constructor
(
id
:
Long
?
,
username
:
String
?
,
avatar
:
String
?
,
roles
:
Set
<
UserWithRoles.PlainRole
>
)
constructor
(
user
:
User
)
Types
Plain
Role
Link copied to clipboard
data
class
PlainRole
(
var
id
:
Long
?
=
null
,
var
code
:
String
?
=
null
,
var
name
:
String
?
=
null
,
var
enabled
:
Boolean
?
=
null
)
Properties
avatar
Link copied to clipboard
val
avatar
:
String
?
头像
id
Link copied to clipboard
val
id
:
Long
?
ID
roles
Link copied to clipboard
val
roles
:
Set
<
UserWithRoles.PlainRole
>
角色列表
username
Link copied to clipboard
val
username
:
String
?
用户名