Documentation ¶
Index ¶
- type Service
- func (service *Service) Create(post model.BlogPost) gloBalModel.Response
- func (service *Service) Delete(id string) gloBalModel.Response
- func (service *Service) Get(id string) gloBalModel.Response
- func (service *Service) GetAll() gloBalModel.Response
- func (service *Service) GetMore(lastID string) gloBalModel.Response
- func (service *Service) Update(post model.BlogPost) gloBalModel.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents the regular service layer for blog posts.
func (*Service) Create ¶
func (service *Service) Create(post model.BlogPost) gloBalModel.Response
Create creates a new blog post.
func (*Service) Delete ¶
func (service *Service) Delete(id string) gloBalModel.Response
Delete deletes a blog post.
func (*Service) Get ¶
func (service *Service) Get(id string) gloBalModel.Response
Get fetches a blog post.
func (*Service) GetAll ¶
func (service *Service) GetAll() gloBalModel.Response
GetAll fetches all blog posts (limit is 10).
Click to show internal directories.
Click to hide internal directories.