Documentation ¶
Index ¶
- type ArticleUsecase
- func (_m *ArticleUsecase) Delete(id int64) (bool, error)
- func (_m *ArticleUsecase) Fetch(cursor string, num int64) ([]*article.Article, string, error)
- func (_m *ArticleUsecase) GetByID(id int64) (*article.Article, error)
- func (_m *ArticleUsecase) GetByTitle(title string) (*article.Article, error)
- func (_m *ArticleUsecase) Store(_a0 *article.Article) (*article.Article, error)
- func (_m *ArticleUsecase) Update(ar *article.Article) (*article.Article, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleUsecase ¶
ArticleUsecase is an autogenerated mock type for the ArticleUsecase type
func (*ArticleUsecase) Delete ¶
func (_m *ArticleUsecase) Delete(id int64) (bool, error)
Delete provides a mock function with given fields: id
func (*ArticleUsecase) GetByID ¶
func (_m *ArticleUsecase) GetByID(id int64) (*article.Article, error)
GetByID provides a mock function with given fields: id
func (*ArticleUsecase) GetByTitle ¶
func (_m *ArticleUsecase) GetByTitle(title string) (*article.Article, error)
GetByTitle provides a mock function with given fields: title
Click to show internal directories.
Click to hide internal directories.