// List returns the items list.
List returns the items list.
// List returns the items list .
func (s Service) List(ctx context.Context) ([]Log, error) {
	items, err := s.repo.Query(ctx, 0, 0)
	if err != nil {
		if errors.Is(err, apperror.ErrNotFound) {
			return nil, err
		}
		return nil, errors.Wrapf(err, "error has occurred")
	}
	return items, nil
}
func ( s Service ) List ( ctx context . Context ) ( [ ] Log , error ) { items , err := s . repo . Query ( ctx , 0 , 0 ) if err != nil { if errors . Is ( err , apperror . ErrNotFound ) { return nil , err } return nil , errors . Wrapf ( err , " " ) } return items , nil }
List returns the items list.
List returns the items list .