Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
AccessToken string `json:"token" gorm:"-"`
AuthState AuthState `json:"authState" gorm:"-"`
ExpiresIn int64 `json:"expiresIn" gorm:"-"`
RefreshToken string `json:"refreshToken" gorm:"-"`
RefreshTokenExpiresIn int64 `json:"refreshTokenExpiresIn" gorm:"-"`
AccessTokenUUID string `json:"-" gorm:"-"`
RefreshTokenUUID string `json:"-" gorm:"-"`
}
type EmailVerification ¶
type User ¶
type User struct {
ID string `gorm:"primaryKey"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
Avatar string
Name string
Email string
Password string
Bio string
EmailVerified bool
Followers []Follow `gorm:"foreignkey:FollowingID"`
Followings []Follow `gorm:"foreignkey:FollowerID"`
}
func (*User) FollowedBy ¶
FollowedBy Followings should be pre loaded
Click to show internal directories.
Click to hide internal directories.