Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IArticleRepo ¶
type IArticleRepo interface {
Fetch(ctx context.Context, createdDate time.Time, num int) (res []models.Article, err error)
}
func NewMysqlArticleRepository ¶
func NewMysqlArticleRepository(DB string) IArticleRepo
NewMysqlArticleRepository will create an object that represent the article.Repository interface
Click to show internal directories.
Click to hide internal directories.