Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
func (*Repository) Find ¶
func (r *Repository) Find(model interface{}, filter, value string) bool
func (*Repository) Save ¶
func (r *Repository) Save(model interface{}) bool
type UserRepository ¶
type UserRepository struct {
*Repository
}
func NewUserRepo ¶
func NewUserRepo(db *gorm.DB) *UserRepository
func (*UserRepository) FindByCredentials ¶
func (ur *UserRepository) FindByCredentials(user *models.User) bool
Click to show internal directories.
Click to hide internal directories.