This commit is contained in:
2026-07-15 21:44:13 +08:00
parent 024b6614ba
commit 4794be896c
22 changed files with 1041 additions and 74 deletions

View File

@@ -43,8 +43,12 @@ type UserProfileResponse struct {
Phone string `json:"phone" example:"13800138000"`
Username string `json:"username,omitempty" example:"admin"`
UserType string `json:"user_type" example:"user"`
IsActive bool `json:"is_active" example:"true"`
LastLoginAt *time.Time `json:"last_login_at,omitempty" example:"2024-01-01T00:00:00Z"`
IsActive bool `json:"is_active" example:"true"`
IsBlacklisted bool `json:"is_blacklisted" example:"false"`
BlacklistReason string `json:"blacklist_reason,omitempty"`
BlacklistSource string `json:"blacklist_source,omitempty"`
BlacklistedAt *time.Time `json:"blacklisted_at,omitempty"`
LastLoginAt *time.Time `json:"last_login_at,omitempty" example:"2024-01-01T00:00:00Z"`
LoginCount int `json:"login_count" example:"10"`
Permissions []string `json:"permissions,omitempty" example:"['user:read','user:write']"`
EnterpriseInfo *EnterpriseInfoResponse `json:"enterprise_info,omitempty"`