Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateUserRequest ¶
type SQLUserRepo ¶
type SQLUserRepo interface {
Create(user *model.User) error
ListAllWithFilter(page int, cancelled bool) ([]model.User, error)
ListAll(page int) ([]model.User, error)
FindUserByNationalID(nationalID string) (*model.User, error)
DeleteUserByID(userID string) error
SetUserCancelledToTrue(userID string) error
}
type Service ¶
type Service struct {
Repo SQLUserRepo
}
func (Service) CancelUserSignup ¶
func (Service) CreateUser ¶
func (s Service) CreateUser(req CreateUserRequest) (*model.User, error)
func (Service) DeleteUser ¶
Click to show internal directories.
Click to hide internal directories.