Documentation ¶
Index ¶
- type UsersRepository
- func (this *UsersRepository) CleanUser(db *gorm.DB, maps interface{}) error
- func (this *UsersRepository) Create(db *gorm.DB, data map[string]interface{}) error
- func (this *UsersRepository) DeleteUser(db *gorm.DB, maps interface{}) error
- func (this *UsersRepository) ExistUserByID(db *gorm.DB, id int) (*users_mysql.UsersMode, error)
- func (this *UsersRepository) ExistUserByUsername(db *gorm.DB, username string) (bool, error)
- func (this *UsersRepository) GetUserByID(db *gorm.DB, id int) (*users_mysql.UsersMode, error)
- func (this *UsersRepository) GetUserByUsername(db *gorm.DB, username string) (*users_mysql.UsersMode, error)
- func (this *UsersRepository) GetUsers(db *gorm.DB, pageNum int, pageSize int, maps interface{}) ([]*users_mysql.UsersMode, error)
- func (this *UsersRepository) GetUsersTotal(db *gorm.DB, maps interface{}) (int, error)
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 (*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)
Click to show internal directories.
Click to hide internal directories.