users

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(db *gorm.DB, config *config.Config, token *jwt.JWT, form model.CreateUserForm, log_data *middleware.LogData) (*model.User, error)

func DeleteUser

func DeleteUser(db *gorm.DB, config *config.Config, token *jwt.JWT, id string) (*model.User, error)

func InviteEmail

func InviteEmail(db *gorm.DB, config *config.Config, token *jwt.JWT, name string, email string, log_data *middleware.LogData) (*model.User, error)

func InvitePhone

func InvitePhone(db *gorm.DB, config *config.Config, token *jwt.JWT, name string, phone string, log_data *middleware.LogData) (*model.User, error)

func User

func User(db *gorm.DB, config *config.Config, token *jwt.JWT, id string) (*model.User, error)

func Users

func Users(db *gorm.DB, config *config.Config, token *jwt.JWT, fields []string, where map[string]interface{}, order_by []model.Object, offset, limit int) ([]*model.User, error)

func UsersCount added in v0.6.0

func UsersCount(db *gorm.DB, config *config.Config, token *jwt.JWT, where map[string]interface{}) (int, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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