mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
16 lines
393 B
Go
16 lines
393 B
Go
package useCases
|
|
|
|
import "RenewCMS/internal/domain/article"
|
|
|
|
type DeleteArticleUseCase struct {
|
|
articleRepository article.Repository
|
|
}
|
|
|
|
func NewDeleteArticleUseCase(articleRepository article.Repository) *DeleteArticleUseCase {
|
|
return &DeleteArticleUseCase{articleRepository}
|
|
}
|
|
|
|
func (g *DeleteArticleUseCase) DeleteArticle(userId uint32) error {
|
|
return g.articleRepository.Delete(userId)
|
|
}
|