|
@@ -52,7 +52,7 @@ func (u UserLevelDb) UserLevelAllByAsc() ([]*model.UserLevel, error) { |
|
|
|
|
|
|
|
|
func (u UserLevelDb) UserLevelAllByAscByPage(page, limit int) ([]*model.UserLevel, int64, error) { |
|
|
func (u UserLevelDb) UserLevelAllByAscByPage(page, limit int) ([]*model.UserLevel, int64, error) { |
|
|
var m []*model.UserLevel |
|
|
var m []*model.UserLevel |
|
|
total, err := u.Db.Where("is_use = ?", 1).Asc("level_weight").FindAndCount(&m) |
|
|
|
|
|
|
|
|
total, err := u.Db.Asc("level_weight").FindAndCount(&m) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, 0, zhios_order_relate_logx.Warn(err) |
|
|
return nil, 0, zhios_order_relate_logx.Warn(err) |
|
|
} |
|
|
} |
|
|