Documentation ¶
Index ¶
- type Repos
- type UserRepo
- func (userRepo UserRepo) BeginTransaction(tx *gorm.DB) Repos
- func (userRepo *UserRepo) CommitTransaction() (bool, error)
- func (userRepo *UserRepo) Create(user *model.User) (bool, error)
- func (userRepo *UserRepo) FindActiveUser() ([]model.User, error)
- func (userRepo *UserRepo) FindAll() ([]model.User, error)
- func (userRepo *UserRepo) FindByPk(id uint) (*model.User, error)
- func (userRepo *UserRepo) FindByUsername(username string) (*model.User, error)
- func (userRepo *UserRepo) RollbackTransaction() (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func (*UserRepo) CommitTransaction ¶
func (*UserRepo) FindByUsername ¶
func (*UserRepo) RollbackTransaction ¶
Click to show internal directories.
Click to hide internal directories.