...
|
...
|
@@ -134,7 +134,7 @@ func (repository *ArticleRepository) Find(ctx context.Context, conn transaction. |
|
|
case "countLove descending":
|
|
|
tx = tx.Order("count_love desc")
|
|
|
default:
|
|
|
tx = tx.Order("id desc")
|
|
|
tx = tx.Order("created_at desc")
|
|
|
}
|
|
|
}
|
|
|
if v, ok := queryOptions["ids"]; ok {
|
...
|
...
|
|