Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
AuthService interface
type Base ¶
type Base struct { ID uuid.UUID `gorm:"type:uuid;primary_key;" json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `gorm:"index" json:"deleted_at"` }
Base model
type CreateTokenDTO ¶
type CreateTokenDTO struct { UserID uuid.UUID `json:"user_id,omitempty"` Token string `json:"token,omitempty"` ExpiredAt int `json:"expired_at,omitempty"` }
CreateTokenDTO model
type JWTService ¶
JWTService interface
type Token ¶
type Token struct { Base UserID uuid.UUID `json:"user_id,omitempty"` Token string `json:"token,omitempty"` ExpiredAt *time.Time `json:"expired_at,omitempty"` }
Token model
type TokenRepository ¶
type TokenRepository interface { Create(*Token) (*Token, error) FindByUserID(uuid.UUID) (*Token, error) FindByToken(string) (*Token, error) }
TokenRepository interface
type TokenService ¶
type TokenService interface { Create(*Token) (*Token, error) FindByUserID(uuid.UUID) (*Token, error) FindByToken(string) (*Token, error) }
TokenService interface
type UserChangePasswordDTO ¶
type UserChangePasswordDTO struct {
Password string `json:"password"`
}
UserChangePasswordDTO struct
type UserLoginDTO ¶
UserLoginDTO struct
Click to show internal directories.
Click to hide internal directories.