func (p *mockPostgres) SearchAvailabilityForAllLaptops(start, end time.Time) ([]models.Laptop, error) {
	var laptops []models.Laptop
	year, month, day := time.Now().Add(48 * time.Hour).Date()
	year2, month2, day2 := time.Now().Add(72 * time.Hour).Date()
	if start.Year() == year && start.Month() == month && start.Day() == day {
		laptops = append(laptops, models.Laptop{
			ID:         0,
			LaptopName: "",
			CreatedAt:  time.Now(),
			UpdatedAt:  time.Now(),
		})
		return laptops, nil
	} else if start.Year() == year2 && start.Month() == month2 && start.Day() == day2 {
		return laptops, nil
	}
	return laptops, errors.New("error")
}
// SearchAvailabilityForAllLaptops returns a slice of available laptops if any, for given date range
SearchAvailabilityForAllLaptops returns a slice of available laptops if any, for given date range
// SearchAvailabilityForAllLaptops returns a slice of available laptops if any for given date range
func (p *mockPostgres) SearchAvailabilityForAllLaptops(start, end time.Time) ([]models.Laptop, error) {
	var laptops []models.Laptop
	year, month, day := time.Now().Add(48 * time.Hour).Date()
	year2, month2, day2 := time.Now().Add(72 * time.Hour).Date()
	if start.Year() == year && start.Month() == month && start.Day() == day {
		laptops = append(laptops, models.Laptop{
			ID:         0,
			LaptopName: "",
			CreatedAt:  time.Now(),
			UpdatedAt:  time.Now(),
		})
		return laptops, nil
	} else if start.Year() == year2 && start.Month() == month2 && start.Day() == day2 {
		return laptops, nil
	}
	return laptops, errors.New("error")
}
func ( p * mockPostgres ) SearchAvailabilityForAllLaptops ( start , end time . Time ) ( [ ] models . Laptop , error ) { var laptops [ ] models . Laptop year , month , day := time . Now ( ) . Add ( 48 * time . Hour ) . Date ( ) year2 , month2 , day2 := time . Now ( ) . Add ( 72 * time . Hour ) . Date ( ) if start . Year ( ) == year && start . Month ( ) == month && start . Day ( ) == day { laptops = append ( laptops , models . Laptop { ID : 0 , LaptopName : " " , CreatedAt : time . Now ( ) , UpdatedAt : time . Now ( ) , } ) return laptops , nil } else if start . Year ( ) == year2 && start . Month ( ) == month2 && start . Day ( ) == day2 { return laptops , nil } return laptops , errors . New ( " " ) }
SearchAvailabilityForAllLaptops returns a slice of available laptops if any, for given date range
SearchAvailabilityForAllLaptops returns a slice of available laptops if any for given date range