恢复余额功能 & 管理员修改余额功能
This commit is contained in:
@@ -20,7 +20,9 @@ func (s *productService) GetPrice(code string) {
|
||||
|
||||
// 获取所有产品
|
||||
func (s *productService) AllProducts() ([]*m.Product, error) {
|
||||
return q.Product.Find()
|
||||
return q.Product.
|
||||
Order(q.Product.Sort.Asc(), q.Product.CreatedAt.Desc()).
|
||||
Find()
|
||||
}
|
||||
|
||||
// 新增产品
|
||||
|
||||
Reference in New Issue
Block a user