Documentation ¶
Index ¶
- type UserService
- func (userService *UserService) CreateUser(user *models.User) (*models.User, error)
- func (userService *UserService) DeleteUser(id int64) error
- func (userService *UserService) GetUser(id int64) (*models.User, error)
- func (userService *UserService) ListUsers() ([]*models.User, error)
- func (userService *UserService) UpdateUser(id int64, user *models.User) (*models.User, error)
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
}
func NewUserService ¶
func NewUserService() (*UserService, error)
func (*UserService) CreateUser ¶
func (*UserService) DeleteUser ¶
func (userService *UserService) DeleteUser(id int64) error
func (*UserService) GetUser ¶
func (userService *UserService) GetUser(id int64) (*models.User, error)
func (*UserService) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.