Documentation
¶
Index ¶
- Variables
- type NewsRepo
- func (n *NewsRepo) CreateNews(ctx context.Context, args model.News) (model.News, error)
- func (n *NewsRepo) DeleteNews(ctx context.Context, id int64) error
- func (n *NewsRepo) GetNews(ctx context.Context, id int64) (model.News, error)
- func (n *NewsRepo) ListNews(ctx context.Context) ([]model.News, error)
- func (n *NewsRepo) UpdateNews(ctx context.Context, args model.News) (model.News, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNewsNotFound = errors.Wrap(errors.ErrNotFound, "news are not found") ErrNewsAlreadyExist = errors.Wrap(errors.ErrForbidden, "news already exist") ErrNoReference = errors.Wrap(errors.ErrNotFound, "writer is not found") ErrToAddNewsLabel = errors.Wrap(errors.ErrInternal, "add news label") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.