|
|
@@ -17,6 +17,15 @@ func UserLevelInIDescByWeightLow(Db *xorm.Engine) ([]*model.UserLevel, error) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
func UserLevelInIDescByWeightLowV1(Db *xorm.Engine) ([]*model.UserLevel, error) { |
|
|
|
var ms []*model.UserLevel |
|
|
|
if err := Db.Where("is_use=1").Asc("level_weight").Limit(100).Find(&ms); err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return ms, nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//UserLevelByID is 根据用户id 获取对应的等级信息 |
|
|
|
func UserLevelByID(Db *xorm.Engine, id interface{}) (*model.UserLevel, error) { |
|
|
|
m := new(model.UserLevel) |
|
|
|