users_repository

package
v0.0.0-...-7f422e9 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersRepository

type UsersRepository struct{}

func New

func New() *UsersRepository

func (*UsersRepository) CleanUser

func (this *UsersRepository) CleanUser(db *gorm.DB, maps interface{}) error

func (*UsersRepository) Create

func (this *UsersRepository) Create(db *gorm.DB, data map[string]interface{}) error

func (*UsersRepository) DeleteUser

func (this *UsersRepository) DeleteUser(db *gorm.DB, maps interface{}) error

func (*UsersRepository) ExistUserByID

func (this *UsersRepository) ExistUserByID(db *gorm.DB, id int) (*users_mysql.UsersMode, error)

func (*UsersRepository) ExistUserByUsername

func (this *UsersRepository) ExistUserByUsername(db *gorm.DB, username string) (bool, error)

func (*UsersRepository) GetUserByID

func (this *UsersRepository) GetUserByID(db *gorm.DB, id int) (*users_mysql.UsersMode, error)

func (*UsersRepository) GetUserByUsername

func (this *UsersRepository) GetUserByUsername(db *gorm.DB, username string) (*users_mysql.UsersMode, error)

func (*UsersRepository) GetUsers

func (this *UsersRepository) GetUsers(db *gorm.DB, pageNum int, pageSize int, maps interface{}) ([]*users_mysql.UsersMode, error)

func (*UsersRepository) GetUsersTotal

func (this *UsersRepository) GetUsersTotal(db *gorm.DB, maps interface{}) (int, error)

Jump to

Keyboard shortcuts

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