Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ArticleRepository ¶
type ArticleRepository interface { Fetch(ctx context.Context, cursor string, num int64) (res []Article, nextCursor string, err error) GetById(ctx context.Context, id int64) (Article, error) GetByTitle(ctx context.Context, title string) (Article, error) Update(ctx context.Context, ar *Article) error Store(ctx context.Context, a *Article) error Delete(ctx context.Context, id int64) error }
type ArticleUsecase ¶
type ArticleUsecase interface { Fetch(ctx context.Context, cursor string, num int64) ([]Article, string, error) GetById(ctx context.Context, id int64) (Article, error) Update(ctx context.Context, ar *Article) error GetByTitle(ctx context.Context, title string) (Article, error) Store(context.Context, *Article) error Delete(ctx context.Context, id int64) error }
Click to show internal directories.
Click to hide internal directories.