文章新增了排序值字段111
This commit is contained in:
@@ -196,6 +196,10 @@ func (r *ArticleScienceDao) GetArticleSciencePageSearch(req requests.GetArticleS
|
||||
if req.Order.UpdatedAt != "" {
|
||||
query = query.Order("updated_at " + req.Order.UpdatedAt)
|
||||
}
|
||||
|
||||
if req.Order.Sort != "" {
|
||||
query = query.Order("sort " + req.Order.Sort)
|
||||
}
|
||||
}
|
||||
|
||||
// 排序
|
||||
|
||||
Reference in New Issue
Block a user