Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostService ¶
type PostService interface { Validate(post *entity.Post) error Create(post *entity.Post) (*entity.Post, error) FindAll() ([]entity.Post, error) FindByID(id int) (*entity.Post, error) Delete(id int) error }
func NewPostService ¶
func NewPostService(repo repositorty.PostRepository) PostService
Click to show internal directories.
Click to hide internal directories.