repo

package
v0.0.0-...-5d940fb Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb() (*gorm.DB, error)

Types

type SQLUserRepo

type SQLUserRepo struct {
	DB *gorm.DB
}

func (SQLUserRepo) Create

func (s SQLUserRepo) Create(user *model.User) error

func (SQLUserRepo) DeleteUserByID

func (s SQLUserRepo) DeleteUserByID(userID string) error

func (SQLUserRepo) FindUserByNationalID

func (s SQLUserRepo) FindUserByNationalID(nationalID string) (*model.User, error)

func (SQLUserRepo) ListAll

func (s SQLUserRepo) ListAll(page int) ([]model.User, error)

func (SQLUserRepo) ListAllWithFilter

func (s SQLUserRepo) ListAllWithFilter(page int, cancelled bool) ([]model.User, error)

func (SQLUserRepo) SetUserCancelledToTrue

func (s SQLUserRepo) SetUserCancelledToTrue(userID string) error

Jump to

Keyboard shortcuts

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