public static function filterByLimit($params)
 {
     $limit = $params->get('limit');
     $offset = $params->get('offset');
     try {
         $data = Logs::filterByLimit($limit, $offset);
     } catch (Exception $e) {
         throw new RpcException($e->getMessage(), -31001);
     }
     return $data;
 }
 private function byLimit($filter, $extra, $extensive)
 {
     try {
         $data = SourceLogs::filterByLimit(intval($filter), intval($extra));
     } catch (DatabaseException $de) {
         throw $de;
     } catch (Exception $e) {
         throw $e;
     }
     return $this->doShow($data, $extensive);
 }