作者 tangxvhui

Merge branch 'dev' into test

@@ -125,13 +125,13 @@ func (repository *ArticleRepository) Find(ctx context.Context, conn transaction. @@ -125,13 +125,13 @@ func (repository *ArticleRepository) Find(ctx context.Context, conn transaction.
125 if v, ok := queryOptions["orderMode"]; ok { 125 if v, ok := queryOptions["orderMode"]; ok {
126 mode := v.(string) 126 mode := v.(string)
127 switch mode { 127 switch mode {
128 - case "CountComment ASC": 128 + case "countComment ascending":
129 tx = tx.Order("count_comment asc") 129 tx = tx.Order("count_comment asc")
130 - case "CountComment DESC": 130 + case "countComment descending":
131 tx = tx.Order("count_comment desc") 131 tx = tx.Order("count_comment desc")
132 - case "CountLove ASC": 132 + case "countLove ascending":
133 tx = tx.Order("count_love asc") 133 tx = tx.Order("count_love asc")
134 - case "CountLove DESC": 134 + case "countLove descending":
135 tx = tx.Order("count_love desc") 135 tx = tx.Order("count_love desc")
136 default: 136 default:
137 tx = tx.Order("id desc") 137 tx = tx.Order("id desc")