Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidEmail = errors.New("invalid email format") ErrEmailAlreadyExists = errors.New("email already exists") )
Functions ¶
Types ¶
type CreateWishRequest ¶
type CreateWishResponse ¶
type CreateWishResponse struct {
Message string `json:"message"`
}
type Repository ¶
type Repository interface { CreateWish(wish *CreateWishRequest) error GetWishByEmail(email string) (*Wish, error) }
type Service ¶
type Service interface { CreateWish(*CreateWishRequest) error GetWishByEmail(email string) (*Wish, error) }
func NewService ¶
func NewService(r Repository) Service
Click to show internal directories.
Click to hide internal directories.