|
@@ -65,7 +65,7 @@ func (gs *GatewayService) List(req request.GatewayRequest) (list []response.Gate
|
|
db.Offset(req.PageSize * (req.Page - 1)).Limit(req.PageSize)
|
|
db.Offset(req.PageSize * (req.Page - 1)).Limit(req.PageSize)
|
|
}
|
|
}
|
|
err = db.Debug().Find(&list).Error
|
|
err = db.Debug().Find(&list).Error
|
|
- db.Where("is_deleted = 0").Count(&total)
|
|
|
|
|
|
+ global.Db.Table("gateway").Where("is_deleted = 0").Count(&total)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|