作者 庄敏学

文章默认create_at 降序

... ... @@ -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 {
... ...