Documentation
¶
Index ¶
- func ArticleSource(req component.BetterRequest[ArticleSourceReq]) component.Response
- func ArticlesList(req component.BetterRequest[ArticlesListReq]) component.Response
- func BadgeList(req component.BetterRequest[component.Null]) component.Response
- func ChangePassword(req component.BetterRequest[ChangePasswordReq]) component.Response
- func DeleteBadge(req component.BetterRequest[BadgeDeleteReq]) component.Response
- func DeleteCategory(req ...) component.Response
- func DeleteChat(req component.BetterRequest[DeleteChatReq]) component.Response
- func DeleteNotification(req component.BetterRequest[DeleteNotificationReq]) component.Response
- func EditArticle(req component.BetterRequest[EditArticleReq]) component.Response
- func EditArticleCategories(req component.BetterRequest[EditArticleCategoriesReq]) component.Response
- func EditUser(req component.BetterRequest[EditUserReq]) component.Response
- func EditUserEmail(req component.BetterRequest[EditUserEmailReq]) component.Response
- func EditUserInfo(req component.BetterRequest[EditUserInfoReq]) component.Response
- func EditUsername(req component.BetterRequest[EditUsernameReq]) component.Response
- func ForgotPassword(req component.BetterRequest[ForgotPasswordReq]) component.Response
- func GetAllRoleItem(req component.BetterRequest[GetAllRoleItemReq]) component.Response
- func GetAnnouncement(req component.BetterRequest[component.Null]) component.Response
- func GetCaptcha(req component.BetterRequest[component.Null]) component.Response
- func GetCategoryList(req component.BetterRequest[CategoryListReq]) component.Response
- func GetChatList(req component.BetterRequest[GetChatListReq]) component.Response
- func GetFileByFileName(c *gin.Context)
- func GetFriendLinks(req component.BetterRequest[component.Null]) component.Response
- func GetLastUnread(req component.BetterRequest[GetUnreadCountReq]) component.Response
- func GetMailSettings(req component.BetterRequest[component.Null]) component.Response
- func GetMessages(req component.BetterRequest[GetMessagesReq]) component.Response
- func GetNotificationList(req component.BetterRequest[GetNotificationListReq]) component.Response
- func GetNotificationTypes(req component.BetterRequest[GetNotificationTypesReq]) component.Response
- func GetPermissionList(req component.BetterRequest[PermissionListReq]) component.Response
- func GetPostingSettings(req component.BetterRequest[component.Null]) component.Response
- func GetSecuritySettings(req component.BetterRequest[component.Null]) component.Response
- func GetSiteSettings(req component.BetterRequest[component.Null]) component.Response
- func GetSponsors(req component.BetterRequest[component.Null]) component.Response
- func GetSuggestedUsers(req component.BetterRequest[component.Null]) component.Response
- func GetTrafficOverview(req component.BetterRequest[TrafficOverviewReq]) component.Response
- func GetUnreadCount(req component.BetterRequest[GetUnreadCountReq]) component.Response
- func GetUnreadStatus(req component.BetterRequest[GetUnreadCountReq]) component.Response
- func GetUserActivities(req component.BetterRequest[GetUserActivitiesReq]) component.Response
- func GetUserCard(req component.BetterRequest[GetUserCardReq]) component.Response
- func GetUserHoverCard(req component.BetterRequest[GetUserCardReq]) component.Response
- func Invitation(req component.BetterRequest[component.Null]) component.Response
- func MarkAllAsRead(req component.BetterRequest[MarkAllAsReadReq]) component.Response
- func MarkAsRead(req component.BetterRequest[MarkAsReadReq]) component.Response
- func MarkChatRead(req component.BetterRequest[MarkReadReq]) component.Response
- func OptRecordPage(req component.BetterRequest[OptRecordPageReq]) component.Response
- func QueryNotificationList(req component.BetterRequest[QueryNotificationListReq]) component.Response
- func ResetPassword(req component.BetterRequest[ResetPasswordReq]) component.Response
- func RoleDel(req component.BetterRequest[RoleSaveDel]) component.Response
- func RoleList(req component.BetterRequest[RoleListReq]) component.Response
- func RoleSave(req component.BetterRequest[RoleSaveReq]) component.Response
- func SaveAnnouncement(req component.BetterRequest[SaveAnnouncementReq]) component.Response
- func SaveBadge(req component.BetterRequest[BadgeSaveReq]) component.Response
- func SaveCategory(req component.BetterRequest[CategorySaveReq]) component.Response
- func SaveFriendLinks(req component.BetterRequest[SaveFriendLinksReq]) component.Response
- func SaveImgByGinContext(c *gin.Context)
- func SaveMailSettings(req component.BetterRequest[SaveMailSettingsReq]) component.Response
- func SavePostingSettings(req component.BetterRequest[SavePostingSettingsReq]) component.Response
- func SaveSecuritySettings(req component.BetterRequest[SaveSecuritySettingsReq]) component.Response
- func SaveSiteSettings(req component.BetterRequest[SaveSiteSettingsReq]) component.Response
- func SaveSponsors(req component.BetterRequest[SaveSponsorsReq]) component.Response
- func SaveUser(userEntity *users.EntityComplete) error
- func SaveUserBadges(req component.BetterRequest[SaveUserBadgesReq]) component.Response
- func SendMessage(req component.BetterRequest[SendMessageReq]) component.Response
- func ServerVersion(req component.BetterRequest[component.Null]) component.Response
- func TestMailConnection(req component.BetterRequest[TestMailConnectionReq]) component.Response
- func UploadAvatar(c *gin.Context)
- func UserBadgeOptions(req component.BetterRequest[UserBadgeOptionsReq]) component.Response
- func UserInfo(req component.BetterRequest[component.Null]) component.Response
- func UserList(req component.BetterRequest[UserListReq]) component.Response
- type ArticleSourceReq
- type ArticleSourceVo
- type ArticlesInfoAdminVo
- type ArticlesInfoVo
- type ArticlesListReq
- type BadgeDeleteReq
- type BadgeSaveReq
- type CategoryItem
- type CategoryListReq
- type CategorySaveReq
- type ChangePasswordReq
- type DailyTraffic
- type DeleteChatReq
- type DeleteNotificationReq
- type EditArticleCategoriesReq
- type EditArticleReq
- type EditUserEmailReq
- type EditUserInfoReq
- type EditUserReq
- type EditUsernameReq
- type ForgotPasswordReq
- type GetAllRoleItemReq
- type GetChatListReq
- type GetMessagesReq
- type GetNotificationListReq
- type GetNotificationTypesReq
- type GetUnreadCountReq
- type GetUserActivitiesReq
- type GetUserCardReq
- type MarkAllAsReadReq
- type MarkAsReadReq
- type MarkReadReq
- type OptRecordPageReq
- type PermissionItem
- type PermissionListReq
- type QueryNotificationListReq
- type ResetPasswordReq
- type RoleItem
- type RoleListReq
- type RoleSaveDel
- type RoleSaveReq
- type SaveAnnouncementReq
- type SaveFriendLinksReq
- type SaveMailSettingsReq
- type SavePostingSettingsReq
- type SaveSecuritySettingsReq
- type SaveSiteSettingsReq
- type SaveSponsorsReq
- type SaveUserBadgesReq
- type SendMessageReq
- type TestMailConnectionReq
- type TestMailConnectionResp
- type TrafficOverviewReq
- type UserBadgeOptionsReq
- type UserBadgeOptionsResp
- type UserItem
- type UserListReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArticleSource ¶ added in v0.2.5
func ArticleSource(req component.BetterRequest[ArticleSourceReq]) component.Response
func ArticlesList ¶
func ArticlesList(req component.BetterRequest[ArticlesListReq]) component.Response
func ChangePassword ¶
func ChangePassword(req component.BetterRequest[ChangePasswordReq]) component.Response
ChangePassword updates the current user's password.
func DeleteBadge ¶ added in v0.2.2
func DeleteBadge(req component.BetterRequest[BadgeDeleteReq]) component.Response
func DeleteCategory ¶
func DeleteCategory(req component.BetterRequest[struct { Id uint64 `json:"id"` }]) component.Response
DeleteCategory 删除分类
func DeleteChat ¶ added in v0.1.1
func DeleteChat(req component.BetterRequest[DeleteChatReq]) component.Response
DeleteChat 删除对话
func DeleteNotification ¶
func DeleteNotification(req component.BetterRequest[DeleteNotificationReq]) component.Response
DeleteNotification 删除通知
func EditArticle ¶
func EditArticle(req component.BetterRequest[EditArticleReq]) component.Response
EditArticle 文章状态管理
func EditArticleCategories ¶ added in v0.2.2
func EditArticleCategories(req component.BetterRequest[EditArticleCategoriesReq]) component.Response
EditArticleCategories 文章分类管理
func EditUser ¶
func EditUser(req component.BetterRequest[EditUserReq]) component.Response
func EditUserEmail ¶
func EditUserEmail(req component.BetterRequest[EditUserEmailReq]) component.Response
EditUserEmail updates the current user's email and resets activation state.
func EditUserInfo ¶
func EditUserInfo(req component.BetterRequest[EditUserInfoReq]) component.Response
EditUserInfo updates the current user's profile fields.
func EditUsername ¶
func EditUsername(req component.BetterRequest[EditUsernameReq]) component.Response
EditUsername updates the current user's username.
func ForgotPassword ¶
func ForgotPassword(req component.BetterRequest[ForgotPasswordReq]) component.Response
ForgotPassword 忘记密码 - 发送重置邮件
func GetAllRoleItem ¶
func GetAllRoleItem(req component.BetterRequest[GetAllRoleItemReq]) component.Response
func GetAnnouncement ¶
GetAnnouncement 获取公告设置
func GetCaptcha ¶
func GetCategoryList ¶
func GetCategoryList(req component.BetterRequest[CategoryListReq]) component.Response
GetCategoryList 获取分类列表
func GetChatList ¶ added in v0.1.1
func GetChatList(req component.BetterRequest[GetChatListReq]) component.Response
GetChatList 获取私信列表
func GetFileByFileName ¶
func GetFriendLinks ¶
func GetLastUnread ¶
func GetLastUnread(req component.BetterRequest[GetUnreadCountReq]) component.Response
GetLastUnread 获取未读通知数量
func GetMailSettings ¶
GetMailSettings 获取邮件设置
func GetMessages ¶ added in v0.1.1
func GetMessages(req component.BetterRequest[GetMessagesReq]) component.Response
GetMessages 获取消息记录
func GetNotificationList ¶
func GetNotificationList(req component.BetterRequest[GetNotificationListReq]) component.Response
GetNotificationList 获取通知列表
func GetNotificationTypes ¶
func GetNotificationTypes(req component.BetterRequest[GetNotificationTypesReq]) component.Response
GetNotificationTypes 获取所有通知类型
func GetPermissionList ¶
func GetPermissionList(req component.BetterRequest[PermissionListReq]) component.Response
func GetPostingSettings ¶ added in v0.1.1
GetPostingSettings 获取发布内容设置
func GetSecuritySettings ¶ added in v0.1.1
GetSecuritySettings 获取安全与注册设置
func GetSiteSettings ¶
GetSiteSettings 获取站点设置
func GetSponsors ¶
GetSponsors 获取赞助商配置
func GetSuggestedUsers ¶ added in v0.1.1
GetSuggestedUsers 获取推荐用户(关注的人)
func GetTrafficOverview ¶ added in v0.1.1
func GetTrafficOverview(req component.BetterRequest[TrafficOverviewReq]) component.Response
func GetUnreadCount ¶
func GetUnreadCount(req component.BetterRequest[GetUnreadCountReq]) component.Response
GetUnreadCount 获取未读通知数量
func GetUnreadStatus ¶ added in v0.2.2
func GetUnreadStatus(req component.BetterRequest[GetUnreadCountReq]) component.Response
func GetUserActivities ¶ added in v0.1.1
func GetUserActivities(req component.BetterRequest[GetUserActivitiesReq]) component.Response
GetUserActivities returns a user's activity timeline.
func GetUserCard ¶ added in v0.1.1
func GetUserCard(req component.BetterRequest[GetUserCardReq]) component.Response
func GetUserHoverCard ¶ added in v0.2.1
func GetUserHoverCard(req component.BetterRequest[GetUserCardReq]) component.Response
func Invitation ¶
func MarkAllAsRead ¶
func MarkAllAsRead(req component.BetterRequest[MarkAllAsReadReq]) component.Response
MarkAllAsRead 标记所有通知为已读
func MarkAsRead ¶
func MarkAsRead(req component.BetterRequest[MarkAsReadReq]) component.Response
MarkAsRead 标记通知为已读
func MarkChatRead ¶ added in v0.1.1
func MarkChatRead(req component.BetterRequest[MarkReadReq]) component.Response
MarkChatRead 标记已读
func OptRecordPage ¶
func OptRecordPage(req component.BetterRequest[OptRecordPageReq]) component.Response
func QueryNotificationList ¶
func QueryNotificationList(req component.BetterRequest[QueryNotificationListReq]) component.Response
func ResetPassword ¶
func ResetPassword(req component.BetterRequest[ResetPasswordReq]) component.Response
ResetPassword 重置密码
func RoleDel ¶
func RoleDel(req component.BetterRequest[RoleSaveDel]) component.Response
func RoleList ¶
func RoleList(req component.BetterRequest[RoleListReq]) component.Response
func RoleSave ¶
func RoleSave(req component.BetterRequest[RoleSaveReq]) component.Response
func SaveAnnouncement ¶
func SaveAnnouncement(req component.BetterRequest[SaveAnnouncementReq]) component.Response
SaveAnnouncement 保存公告设置
func SaveBadge ¶ added in v0.2.2
func SaveBadge(req component.BetterRequest[BadgeSaveReq]) component.Response
func SaveCategory ¶
func SaveCategory(req component.BetterRequest[CategorySaveReq]) component.Response
SaveCategory 保存分类
func SaveFriendLinks ¶
func SaveFriendLinks(req component.BetterRequest[SaveFriendLinksReq]) component.Response
SaveFriendLinks 保存友情链接
func SaveImgByGinContext ¶
SaveImgByGinContext handles image uploads with size and content checks.
func SaveMailSettings ¶
func SaveMailSettings(req component.BetterRequest[SaveMailSettingsReq]) component.Response
SaveMailSettings 保存邮件设置
func SavePostingSettings ¶ added in v0.1.1
func SavePostingSettings(req component.BetterRequest[SavePostingSettingsReq]) component.Response
SavePostingSettings 保存发布内容设置
func SaveSecuritySettings ¶ added in v0.1.1
func SaveSecuritySettings(req component.BetterRequest[SaveSecuritySettingsReq]) component.Response
SaveSecuritySettings 保存安全与注册设置
func SaveSiteSettings ¶
func SaveSiteSettings(req component.BetterRequest[SaveSiteSettingsReq]) component.Response
SaveSiteSettings 保存站点设置
func SaveSponsors ¶
func SaveSponsors(req component.BetterRequest[SaveSponsorsReq]) component.Response
SaveSponsors 保存赞助商配置
func SaveUser ¶
func SaveUser(userEntity *users.EntityComplete) error
func SaveUserBadges ¶ added in v0.2.2
func SaveUserBadges(req component.BetterRequest[SaveUserBadgesReq]) component.Response
func SendMessage ¶ added in v0.1.1
func SendMessage(req component.BetterRequest[SendMessageReq]) component.Response
SendMessage 发送私信
func ServerVersion ¶ added in v0.2.6
func TestMailConnection ¶
func TestMailConnection(req component.BetterRequest[TestMailConnectionReq]) component.Response
TestMailConnection 测试邮件连接
func UploadAvatar ¶
UploadAvatar stores a new avatar for the current user.
func UserBadgeOptions ¶ added in v0.2.2
func UserBadgeOptions(req component.BetterRequest[UserBadgeOptionsReq]) component.Response
func UserList ¶
func UserList(req component.BetterRequest[UserListReq]) component.Response
Types ¶
type ArticleSourceReq ¶ added in v0.2.5
type ArticleSourceReq struct {
Id uint64 `json:"id" validate:"required"`
}
type ArticleSourceVo ¶ added in v0.2.5
type ArticleSourceVo struct {
Id uint64 `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Content string `json:"content"`
Type int8 `json:"type"`
CategoryId []uint64 `json:"categoryId"`
UserId uint64 `json:"userId"`
ArticleStatus int8 `json:"articleStatus"`
ProcessStatus int8 `json:"processStatus"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type ArticlesInfoAdminVo ¶ added in v0.1.1
type ArticlesInfoAdminVo struct {
Id uint64 `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Type int8 `json:"type"`
CategoryId []uint64 `json:"categoryId"`
UserId uint64 `json:"userId"`
Username string `json:"username"`
UserAvatarUrl string `json:"userAvatarUrl"`
ArticleStatus int8 `json:"articleStatus"`
ProcessStatus int8 `json:"processStatus"`
ViewCount uint64 `json:"viewCount"`
ReplyCount uint64 `json:"replyCount"`
LikeCount uint64 `json:"likeCount"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type ArticlesInfoVo ¶ added in v0.1.1
type ArticlesInfoVo struct {
Id uint64 `json:"id"`
Title string `json:"title"`
Type int8 `json:"type"`
UserId uint64 `json:"userId"`
Username string `json:"username"`
ArticleStatus int8 `json:"articleStatus"`
ProcessStatus int8 `json:"processStatus"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type ArticlesListReq ¶
type BadgeDeleteReq ¶ added in v0.2.2
type BadgeDeleteReq struct {
Code string `json:"code"`
}
type BadgeSaveReq ¶ added in v0.2.2
type BadgeSaveReq struct {
Code string `json:"code"`
Type string `json:"type"`
GrantMode string `json:"grantMode"`
Name string `json:"name"`
Description string `json:"description"`
IconType string `json:"iconType"`
IconKey string `json:"iconKey"`
IconURL string `json:"iconUrl"`
Color string `json:"color"`
Level string `json:"level"`
IsEnabled bool `json:"isEnabled"`
SortOrder int `json:"sortOrder"`
}
type CategoryItem ¶
type CategoryListReq ¶
type CategorySaveReq ¶
type ChangePasswordReq ¶
type ChangePasswordReq struct {
OldPassword string `json:"oldPassword" validate:"required"`
NewPassword string `json:"newPassword" validate:"required"`
}
ChangePasswordReq is the password change request.
type DailyTraffic ¶ added in v0.1.1
type DeleteChatReq ¶ added in v0.1.1
type DeleteChatReq struct {
ConvId uint64 `json:"convId" validate:"required"`
}
DeleteChatReq 删除对话请求
type DeleteNotificationReq ¶
type DeleteNotificationReq struct {
NotificationId uint64 `json:"notificationId" validate:"required"`
}
DeleteNotificationReq 删除通知请求
type EditArticleCategoriesReq ¶ added in v0.2.2
type EditArticleReq ¶
type EditUserEmailReq ¶
type EditUserEmailReq struct {
Email string `json:"email" validate:"required,email"`
}
type EditUserInfoReq ¶
type EditUserReq ¶
type EditUsernameReq ¶
type EditUsernameReq struct {
Username string `json:"username" validate:"required"`
}
type ForgotPasswordReq ¶
type ForgotPasswordReq struct {
Email string `json:"email" validate:"required,email"`
CaptchaId string `json:"captchaId" validate:"required"`
CaptchaCode string `json:"captchaCode" validate:"required"`
}
ForgotPasswordReq is the password reset email request.
type GetAllRoleItemReq ¶
type GetAllRoleItemReq struct {
}
type GetMessagesReq ¶ added in v0.1.1
type GetMessagesReq struct {
ConvId uint64 `json:"convId" validate:"required"`
Page int `json:"page" validate:"required,min=1"`
PageSize int `json:"pageSize" validate:"required,min=1,max=100"`
}
GetMessagesReq 获取消息记录请求
type GetNotificationListReq ¶
type GetNotificationListReq struct {
Page int `json:"page" validate:"required,min=1"`
PageSize int `json:"pageSize" validate:"required,min=1,max=100"`
UnreadOnly bool `json:"unreadOnly"`
}
GetNotificationListReq 获取通知列表请求
type GetNotificationTypesReq ¶
type GetNotificationTypesReq struct{}
GetNotificationTypesReq 获取通知类型请求
type GetUserActivitiesReq ¶ added in v0.1.1
type GetUserCardReq ¶ added in v0.1.1
type GetUserCardReq struct {
UserId uint64 `form:"userId" json:"userId" binding:"required"`
}
type MarkAsReadReq ¶
type MarkAsReadReq struct {
NotificationId uint64 `json:"notificationId" validate:"required"`
}
MarkAsReadReq 标记通知已读请求
type MarkReadReq ¶ added in v0.1.1
type MarkReadReq struct {
ConvId uint64 `json:"convId" validate:"required"`
}
MarkReadReq 标记已读请求
type OptRecordPageReq ¶
type OptRecordPageReq struct {
}
type PermissionItem ¶
type PermissionListReq ¶
type PermissionListReq struct {
}
type QueryNotificationListReq ¶
type QueryNotificationListReq struct {
StartId int `json:"startId"`
PageSize int `json:"pageSize" validate:"required,min=1,max=100"`
UnreadOnly bool `json:"unreadOnly"`
}
QueryNotificationListReq 获取通知列表请求
type ResetPasswordReq ¶
type ResetPasswordReq struct {
Token string `json:"token" validate:"required"`
NewPassword string `json:"newPassword" validate:"required"`
}
ResetPasswordReq is the password reset confirmation request.
type RoleItem ¶
type RoleItem struct {
RoleId uint64 `json:"roleId"`
RoleName string `json:"roleName"`
Effective int `json:"effective"`
Permissions []PermissionItem `json:"permissions"`
CreateTime string `json:"createTime"`
}
type RoleListReq ¶
type RoleListReq struct {
}
type RoleSaveDel ¶
type RoleSaveDel struct {
Id uint `json:"id"`
}
type RoleSaveReq ¶
type SaveAnnouncementReq ¶
type SaveAnnouncementReq struct {
Settings pageConfig.AnnouncementConfig `json:"settings" validate:"required"`
}
type SaveFriendLinksReq ¶
type SaveFriendLinksReq struct {
LinksInfo []pageConfig.FriendLinksGroup `json:"linksInfo"`
}
type SaveMailSettingsReq ¶
type SaveMailSettingsReq struct {
Settings pageConfig.MailSettingsConfig `json:"settings" validate:"required"`
}
type SavePostingSettingsReq ¶ added in v0.1.1
type SavePostingSettingsReq struct {
Settings pageConfig.PostingContent `json:"settings" validate:"required"`
}
type SaveSecuritySettingsReq ¶ added in v0.1.1
type SaveSecuritySettingsReq struct {
Settings pageConfig.SecurityAndRegistration `json:"settings" validate:"required"`
}
type SaveSiteSettingsReq ¶
type SaveSiteSettingsReq struct {
Settings pageConfig.SiteSettingsConfig `json:"settings"`
}
type SaveSponsorsReq ¶
type SaveSponsorsReq struct {
SponsorsInfo pageConfig.SponsorsConfig `json:"sponsorsInfo"`
}
type SaveUserBadgesReq ¶ added in v0.2.2
type SendMessageReq ¶ added in v0.1.1
type SendMessageReq struct {
PeerId uint64 `json:"peerId" validate:"required"`
Content string `json:"content" validate:"required"`
MsgType int8 `json:"msgType" validate:"oneof=1 2 3"` // 1: Text, 2: Image, 3: Voice
}
SendMessageReq 发送私信请求
type TestMailConnectionReq ¶
type TestMailConnectionReq struct {
Settings pageConfig.MailSettingsConfig `json:"settings" validate:"required"`
TestEmail string `json:"testEmail" validate:"required,email"`
}
type TestMailConnectionResp ¶
type TrafficOverviewReq ¶ added in v0.1.1
type UserBadgeOptionsReq ¶ added in v0.2.2
type UserBadgeOptionsReq struct {
UserId uint64 `json:"userId"`
}
type UserBadgeOptionsResp ¶ added in v0.2.2
type UserBadgeOptionsResp struct {
Options []badgeservice.Badge `json:"options"`
Active []badgeservice.UserBadge `json:"active"`
}
type UserItem ¶
type UserItem struct {
UserId uint64 `json:"userId"`
Username string `json:"username"`
AvatarUrl string `json:"avatarUrl"`
Email string `json:"email"`
Status int8 `json:"status"`
Validate int8 `json:"validate"`
Prestige int64 `json:"prestige"`
RoleList []datastruct.Option[string, uint64] `json:"roleList"`
RoleId uint64 `json:"roleId,omitempty"`
CreateTime string `json:"createTime"`
LastActiveTime string `json:"lastActiveTime"`
Badges []badgeservice.UserBadge `json:"badges"`
}