admin

package
v0.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 (r *UserRepository) CheckUserExists(ctx context.Context, email, phoneNum string) (data pmbulbi.Admin, err error)

func (*UserRepository) Delete added in v0.4.3

func (r *UserRepository) Delete(ctx context.Context, id string) (err error)

func (*UserRepository) Fetch added in v0.4.3

func (r *UserRepository) Fetch(ctx context.Context) (val []pmbulbi.Admin, err error)

func (*UserRepository) GetByEmail added in v0.5.7

func (r *UserRepository) GetByEmail(ctx context.Context, email string) (data pmbulbi.Admin, err error)

func (*UserRepository) GetByEmailOrPhone added in v0.5.7

func (r *UserRepository) GetByEmailOrPhone(ctx context.Context, email, phoneNum string) (data pmbulbi.Admin, err error)

func (*UserRepository) GetByEmailPass added in v0.4.3

func (r *UserRepository) GetByEmailPass(ctx context.Context, email, password string) (data pmbulbi.Admin, err error)

func (*UserRepository) GetById added in v0.4.3

func (r *UserRepository) GetById(ctx context.Context, id string) (val pmbulbi.Admin, err error)

func (*UserRepository) GetByPhone added in v0.5.7

func (r *UserRepository) GetByPhone(ctx context.Context, phoneNum string) (data pmbulbi.Admin, err error)

func (*UserRepository) GetByPhoneNumPass added in v0.4.3

func (r *UserRepository) GetByPhoneNumPass(ctx context.Context, phoneNum, password string) (data pmbulbi.Admin, err error)

func (*UserRepository) Insert added in v0.4.3

func (r *UserRepository) Insert(ctx context.Context, val pmbulbi.Admin) (err error)

func (*UserRepository) Update added in v0.4.3

func (r *UserRepository) Update(ctx context.Context, id string, val pmbulbi.Admin) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL