Documentation ¶
Index ¶
- type AccountRepository
- type AccountRepositoryImpl
- func (r AccountRepositoryImpl) BeginTransaction() *gorm.DB
- func (r AccountRepositoryImpl) CreateAccount(account *model.Account) (model.Account, error)
- func (r AccountRepositoryImpl) DeleteAccount(account *model.Account) (bool, error)
- func (r AccountRepositoryImpl) FindAccountByUserID(userID uint) (model.Account, error)
- func (r AccountRepositoryImpl) UpdateAccount(newAccount *model.Account) (model.Account, error)
- type EmailVerificationRepository
- type EmailVerificationRepositoryImpl
- type LoginInfoRepository
- type LoginInfoRepositoryImpl
- func (r LoginInfoRepositoryImpl) CreateLoginInfo(info *model.LoginInfo) (model.LoginInfo, error)
- func (r LoginInfoRepositoryImpl) DeleteLoginInfo(info *model.LoginInfo) (bool, error)
- func (r LoginInfoRepositoryImpl) FindLoginInfo(info *model.LoginInfo) error
- func (r LoginInfoRepositoryImpl) UpdateLoginInfo(newInfo *model.LoginInfo) (model.LoginInfo, error)
- type RoleRepository
- type RoleRepositoryImpl
- func (r RoleRepositoryImpl) AssignRolePermissions(role *model.Role, permissions ...model.Permission) error
- func (r RoleRepositoryImpl) CreateRole(role *model.Role) (model.Role, error)
- func (r RoleRepositoryImpl) DeleteRole(role *model.Role) (bool, error)
- func (r RoleRepositoryImpl) UpdateRole(newRole *model.Role) (model.Role, error)
- type SessionRepository
- type SessionRepositoryImpl
- func (r SessionRepositoryImpl) CreateSession(userID uint, token string) (model.Session, error)
- func (r SessionRepositoryImpl) DeleteSessionByToken(authToken string) error
- func (r SessionRepositoryImpl) FindActiveSession(userID uint) (*model.Session, error)
- func (r SessionRepositoryImpl) UpdateSessionStatus(sessionID uint, status string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
type AccountRepositoryImpl ¶
type AccountRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewAccountRepository ¶
func NewAccountRepository(db *gorm.DB) *AccountRepositoryImpl
func (AccountRepositoryImpl) BeginTransaction ¶
func (r AccountRepositoryImpl) BeginTransaction() *gorm.DB
func (AccountRepositoryImpl) CreateAccount ¶
func (AccountRepositoryImpl) DeleteAccount ¶
func (r AccountRepositoryImpl) DeleteAccount(account *model.Account) (bool, error)
func (AccountRepositoryImpl) FindAccountByUserID ¶
func (r AccountRepositoryImpl) FindAccountByUserID(userID uint) (model.Account, error)
func (AccountRepositoryImpl) UpdateAccount ¶
type EmailVerificationRepository ¶
type EmailVerificationRepository interface { UpdateEmailVerification(verification *model.EmailVerification) (model.EmailVerification, error) DeleteEmailVerification(verification *model.EmailVerification) (bool, error) }
type EmailVerificationRepositoryImpl ¶
type EmailVerificationRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewEmailVerificationRepository ¶
func NewEmailVerificationRepository(db *gorm.DB) *EmailVerificationRepositoryImpl
func (EmailVerificationRepositoryImpl) DeleteEmailVerification ¶
func (r EmailVerificationRepositoryImpl) DeleteEmailVerification(verification *model.EmailVerification) (bool, error)
func (EmailVerificationRepositoryImpl) UpdateEmailVerification ¶
func (r EmailVerificationRepositoryImpl) UpdateEmailVerification(verification *model.EmailVerification) (model.EmailVerification, error)
type LoginInfoRepository ¶
type LoginInfoRepositoryImpl ¶
type LoginInfoRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewLoginInfoRepository ¶
func NewLoginInfoRepository(db *gorm.DB) *LoginInfoRepositoryImpl
func (LoginInfoRepositoryImpl) CreateLoginInfo ¶
func (LoginInfoRepositoryImpl) DeleteLoginInfo ¶
func (r LoginInfoRepositoryImpl) DeleteLoginInfo(info *model.LoginInfo) (bool, error)
func (LoginInfoRepositoryImpl) FindLoginInfo ¶
func (r LoginInfoRepositoryImpl) FindLoginInfo(info *model.LoginInfo) error
func (LoginInfoRepositoryImpl) UpdateLoginInfo ¶
type RoleRepository ¶
type RoleRepositoryImpl ¶
type RoleRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewRoleRepository ¶
func NewRoleRepository(db *gorm.DB) *RoleRepositoryImpl
func (RoleRepositoryImpl) AssignRolePermissions ¶
func (r RoleRepositoryImpl) AssignRolePermissions(role *model.Role, permissions ...model.Permission) error
func (RoleRepositoryImpl) CreateRole ¶
func (RoleRepositoryImpl) DeleteRole ¶
func (r RoleRepositoryImpl) DeleteRole(role *model.Role) (bool, error)
func (RoleRepositoryImpl) UpdateRole ¶
type SessionRepository ¶
type SessionRepositoryImpl ¶
type SessionRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewSessionRepository ¶
func NewSessionRepository(db *gorm.DB) *SessionRepositoryImpl
func (SessionRepositoryImpl) CreateSession ¶
func (SessionRepositoryImpl) DeleteSessionByToken ¶
func (r SessionRepositoryImpl) DeleteSessionByToken(authToken string) error
func (SessionRepositoryImpl) FindActiveSession ¶
func (r SessionRepositoryImpl) FindActiveSession(userID uint) (*model.Session, error)
func (SessionRepositoryImpl) UpdateSessionStatus ¶
func (r SessionRepositoryImpl) UpdateSessionStatus(sessionID uint, status string) (bool, error)
Click to show internal directories.
Click to hide internal directories.