Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
UserService handles user-related business logic
func NewUserService ¶
func NewUserService(logger *zap.Logger) *UserService
NewUserService creates a new user service
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser(name, email string) User
CreateUser creates a new user
func (*UserService) GetUserByID ¶
func (s *UserService) GetUserByID(id string) (*User, bool)
GetUserByID returns a user by ID
Click to show internal directories.
Click to hide internal directories.