github.com/ars0915/glossika-exercise@v0.0.0-20240904180321-a5617a00d892/repo/db/product.go (about)

     1  package db
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/ars0915/glossika-exercise/entity"
     7  )
     8  
     9  func (s *AppRepo) RecommendProduct() ([]entity.Product, error) {
    10  	time.Sleep(3 * time.Second)
    11  
    12  	products := []entity.Product{
    13  		{ID: 1, Name: "Product 1", Price: 100},
    14  		{ID: 2, Name: "Product 2", Price: 200},
    15  	}
    16  	return products, nil
    17  }