Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Permission ¶
func (Permission) TableName ¶
func (Permission) TableName() string
type Role ¶
type Token ¶
type Token struct {
ID int
UUID uuid.UUID
UserID int
Token string
Name string
LastUsedAt sql.Null[time.Time]
ExpiresAt sql.Null[time.Time]
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt
Permissions []Permission `gorm:"-"`
}
func (*Token) PermissionList ¶
type User ¶
type User struct {
ID int
UUID uuid.UUID
Email string
Password sql.Null[string]
Status string
IsSystem bool
Metadata json.RawMessage
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt
Roles []Role `gorm:"-"`
}
func (*User) PermissionList ¶
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.