Documentation ¶
Index ¶
- type PostServiceImple
- func (ps *PostServiceImple) DeletePost(id int) (*entities.Post, []error)
- func (ps *PostServiceImple) Post(id int) (*entities.Post, []error)
- func (ps *PostServiceImple) Posts() ([]entities.Post, []error)
- func (ps *PostServiceImple) StorePost(pst *entities.Post) (*entities.Post, []error)
- func (ps *PostServiceImple) UpdatePost(pst *entities.Post) (*entities.Post, []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostServiceImple ¶
type PostServiceImple struct {
// contains filtered or unexported fields
}
func NewPostService ¶
func NewPostService(postrepo post.PostRepository) *PostServiceImple
func (*PostServiceImple) DeletePost ¶
func (ps *PostServiceImple) DeletePost(id int) (*entities.Post, []error)
func (*PostServiceImple) UpdatePost ¶
Click to show internal directories.
Click to hide internal directories.