repository

package
v0.0.0-...-cfa0982 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository struct {
	DB *gorm.DB
}

func New

func New(db *gorm.DB) UserRepository

func (UserRepository) CreateUserAuth

func (ur UserRepository) CreateUserAuth(trx *gorm.DB, userAuth *entity.UserAuth) error

func (UserRepository) GetCurrentDeviceID

func (ur UserRepository) GetCurrentDeviceID(userID int64) string

func (UserRepository) GetUserAuth

func (ur UserRepository) GetUserAuth(userID int64) *entity.UserAuth

func (UserRepository) GetUserByUsername

func (ur UserRepository) GetUserByUsername(username string) *entity.MasterUser

func (UserRepository) InsertUser

func (ur UserRepository) InsertUser(users *entity.MasterUser) (*gorm.DB, error)

func (UserRepository) UpdateDeviceIDLastLogin

func (ur UserRepository) UpdateDeviceIDLastLogin(deviceID string, userID int64) error

Jump to

Keyboard shortcuts

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