Documentation ¶
Index ¶
Constants ¶
View Source
const (
SERVICE_NAME = "gapi_users"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserService ¶
type UserService struct { User models.User UserRepos providers.UserRepository }
func NewUserServiceWithUser ¶
func NewUserServiceWithUser(user models.User) (UserService, error)
NewUserServiceWithUser create user service
func (*UserService) CreateUser ¶
func (us *UserService) CreateUser(user models.User) error
CreateUser creates a new user
func (*UserService) FindUsersByUsernameOrEmail ¶
func (us *UserService) FindUsersByUsernameOrEmail(q string, page int) []models.User
FindUsersByUsernameOrEmail search user by email or username
func (*UserService) GetUserByUsername ¶
func (us *UserService) GetUserByUsername(username string) []models.User
GetUserByUsername search user by username
func (*UserService) UpdateUser ¶
func (us *UserService) UpdateUser(user models.User) error
UpdateUser update an existing user
Click to show internal directories.
Click to hide internal directories.