...
|
...
|
@@ -136,7 +136,9 @@ func (repository *ArticleRepository) Find(ctx context.Context, conn transaction. |
|
|
if v, ok := queryOptions["endCreatedAt"]; ok {
|
|
|
tx = tx.Where("created_at < ?", v)
|
|
|
}
|
|
|
|
|
|
if v, ok := queryOptions["authorId"]; ok {
|
|
|
tx = tx.Where("author_id=?", v)
|
|
|
}
|
|
|
if total, tx = transaction.PaginationAndCount(ctx, tx, queryOptions, &ms); tx.Error != nil {
|
|
|
return dms, tx.Error
|
|
|
}
|
...
|
...
|
|