Documentation ¶
Index ¶
- type ParamsCreateArticle
- type ParamsUpdateArticle
- type Service
- func (s *Service) CreateArticle(ctx context.Context, params *ParamsCreateArticle) (int, error)
- func (s *Service) Delete(ctx context.Context, id int) error
- func (s *Service) GetArticle(ctx context.Context, id int) (*domain.Article, error)
- func (s *Service) GetArticles(ctx context.Context) (*domain.Articles, error)
- func (s *Service) UpdateArticle(ctx context.Context, params *ParamsUpdateArticle) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParamsCreateArticle ¶
type ParamsUpdateArticle ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo *repository.Repository) *Service
func (*Service) CreateArticle ¶
func (*Service) GetArticle ¶
func (*Service) GetArticles ¶
func (*Service) UpdateArticle ¶
func (s *Service) UpdateArticle(ctx context.Context, params *ParamsUpdateArticle) error
Click to show internal directories.
Click to hide internal directories.