Documentation ¶
Index ¶
- func CreateUser(user *models.User, db *gorm.DB) error
- func CreateUserLogin(userLogin *models.UserLogin, db *gorm.DB) error
- func DeleteUserByUid(uid string, db *gorm.DB) error
- func DeleteUserByUids(uids []string, db *gorm.DB) error
- func DeleteUserLoginByUid(uid string, db *gorm.DB) error
- func DeleteUserLoginByUids(uids []string, db *gorm.DB) error
- func GetUser(account string, identityType string, db *gorm.DB) (*models.User, error)
- func GetUserByUid(uid string, db *gorm.DB) (*models.User, error)
- func GetUserLogin(uid string, account string, loginType config.LoginType, db *gorm.DB) (*models.UserLogin, error)
- func GetUsersCount(name string) (int64, error)
- func ListUserLogins(uids []string, db *gorm.DB) (*[]models.UserLogin, error)
- func ListUsers(page int, perPage int, name string, db *gorm.DB) ([]models.User, error)
- func ListUsersByIdentityType(identityType string, db *gorm.DB) ([]models.User, error)
- func ListUsersByUIDs(uids []string, db *gorm.DB) ([]models.User, error)
- func UpdateUser(uid string, user *models.User, db *gorm.DB) error
- func UpdateUserLogin(uid string, userLogin *models.UserLogin, db *gorm.DB) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUserLogin ¶
CreateUserLogin add a userLogin record
func DeleteUserByUid ¶
DeleteUserByUid Delete users based on uids
func DeleteUserByUids ¶
DeleteUserByUids Delete users based on uids
func DeleteUserLoginByUid ¶
DeleteUserLoginByUid Delete userLogin based on uids
func DeleteUserLoginByUids ¶
DeleteUserLoginByUids Delete userLogin based on uids
func GetUserByUid ¶
GetUserByUid Get a user based on uid
func GetUserLogin ¶
func GetUserLogin(uid string, account string, loginType config.LoginType, db *gorm.DB) (*models.UserLogin, error)
GetUserLogin Get a userLogin based on uid
func ListUserLogins ¶
ListUserLogins Get a userLogin based on uid list
func ListUsersByIdentityType ¶
ListUsersByIdentityType gets a list of users based on identityType
func ListUsersByUIDs ¶
ListUsersByUIDs gets a list of users based on paging constraints
func UpdateUser ¶
UpdateUser update user info
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.