Documentation
¶
Index ¶
- type LevelRepository
- func (r *LevelRepository) Delete(ctx context.Context, id string) (err error)
- func (r *LevelRepository) Fetch(ctx context.Context) (val []pmbulbi.AdminLevel, err error)
- func (r *LevelRepository) GetById(ctx context.Context, id string) (val pmbulbi.AdminLevel, err error)
- func (r *LevelRepository) Insert(ctx context.Context, val pmbulbi.AdminLevel) (err error)
- func (r *LevelRepository) Update(ctx context.Context, id string, val pmbulbi.AdminLevel) (err error)
- type UserRepository
- func (r *UserRepository) CheckUserExists(ctx context.Context, email, phoneNum string) (data pmbulbi.Admin, err error)
- func (r *UserRepository) Delete(ctx context.Context, id string) (err error)
- func (r *UserRepository) Fetch(ctx context.Context) (val []pmbulbi.Admin, err error)
- func (r *UserRepository) GetByEmailPass(ctx context.Context, email, password string) (data pmbulbi.Admin, err error)
- func (r *UserRepository) GetById(ctx context.Context, id string) (val pmbulbi.Admin, err error)
- func (r *UserRepository) GetByPhoneNumPass(ctx context.Context, phoneNum, password string) (data pmbulbi.Admin, err error)
- func (r *UserRepository) Insert(ctx context.Context, val pmbulbi.Admin) (err error)
- func (r *UserRepository) Update(ctx context.Context, id string, val pmbulbi.Admin) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelRepository ¶ added in v0.4.3
type LevelRepository struct {
// contains filtered or unexported fields
}
func NewLevelRepository ¶ added in v0.4.3
func NewLevelRepository(db *gorm.DB) *LevelRepository
func (*LevelRepository) Delete ¶ added in v0.4.3
func (r *LevelRepository) Delete(ctx context.Context, id string) (err error)
func (*LevelRepository) Fetch ¶ added in v0.4.3
func (r *LevelRepository) Fetch(ctx context.Context) (val []pmbulbi.AdminLevel, err error)
func (*LevelRepository) GetById ¶ added in v0.4.3
func (r *LevelRepository) GetById(ctx context.Context, id string) (val pmbulbi.AdminLevel, err error)
func (*LevelRepository) Insert ¶ added in v0.4.3
func (r *LevelRepository) Insert(ctx context.Context, val pmbulbi.AdminLevel) (err error)
func (*LevelRepository) Update ¶ added in v0.4.3
func (r *LevelRepository) Update(ctx context.Context, id string, val pmbulbi.AdminLevel) (err error)
type UserRepository ¶ added in v0.4.3
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶ added in v0.4.3
func NewUserRepository(db *gorm.DB) *UserRepository
func (*UserRepository) CheckUserExists ¶ added in v0.4.3
func (*UserRepository) Delete ¶ added in v0.4.3
func (r *UserRepository) Delete(ctx context.Context, id string) (err error)
func (*UserRepository) GetByEmailPass ¶ added in v0.4.3
func (*UserRepository) GetByPhoneNumPass ¶ added in v0.4.3
Click to show internal directories.
Click to hide internal directories.