gamelife 自定义客户端集成游戏任务接口
This commit is contained in:
@ -293,6 +293,9 @@ func (s *sReward) List(ctx context.Context, in *model.RewardListIn) (out *model.
|
||||
if in.Name != "" {
|
||||
orm = orm.WhereLike(dao.Rewards.Columns().Name, "%"+in.Name+"%")
|
||||
}
|
||||
if in.RewardTypeId != 0 {
|
||||
orm = orm.Where(do.Rewards{RewardTypeId: in.RewardTypeId})
|
||||
}
|
||||
|
||||
total, err := orm.Count()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user