| Line 5... |
Line 5... |
| 5 |
import com.spice.profitmandi.service.integrations.pinelabs.dto.OfferValidateRequest;
|
5 |
import com.spice.profitmandi.service.integrations.pinelabs.dto.OfferValidateRequest;
|
| 6 |
import com.spice.profitmandi.service.integrations.pinelabs.dto.PineLablsCreateOfferRequest;
|
6 |
import com.spice.profitmandi.service.integrations.pinelabs.dto.PineLablsCreateOfferRequest;
|
| 7 |
import com.spice.profitmandi.web.controller.DealsController;
|
7 |
import com.spice.profitmandi.web.controller.DealsController;
|
| 8 |
import com.spice.profitmandi.web.v2.response.ApiResponse;
|
8 |
import com.spice.profitmandi.web.v2.response.ApiResponse;
|
| 9 |
import org.springframework.beans.factory.annotation.Autowired;
|
9 |
import org.springframework.beans.factory.annotation.Autowired;
|
| - |
|
10 |
import org.springframework.cache.annotation.Cacheable;
|
| 10 |
import org.springframework.http.ResponseEntity;
|
11 |
import org.springframework.http.ResponseEntity;
|
| 11 |
import org.springframework.web.bind.annotation.*;
|
12 |
import org.springframework.web.bind.annotation.*;
|
| 12 |
|
13 |
|
| 13 |
import javax.servlet.http.HttpServletRequest;
|
14 |
import javax.servlet.http.HttpServletRequest;
|
| 14 |
import java.util.Map;
|
15 |
import java.util.Map;
|
| Line 153... |
Line 154... |
| 153 |
public ResponseEntity<ApiResponse<?>> getDealsBySkus(@PathVariable String skus) throws Throwable {
|
154 |
public ResponseEntity<ApiResponse<?>> getDealsBySkus(@PathVariable String skus) throws Throwable {
|
| 154 |
return wrapResponse(dealsController.getDealsBySkus(skus));
|
155 |
return wrapResponse(dealsController.getDealsBySkus(skus));
|
| 155 |
}
|
156 |
}
|
| 156 |
|
157 |
|
| 157 |
@GetMapping("/partner/listing")
|
158 |
@GetMapping("/partner/listing")
|
| - |
|
159 |
@Cacheable(value = "listing", cacheManager = "thirtyMinsTimeOutCacheManager")
|
| 158 |
public ResponseEntity<ApiResponse<?>> getPartnersListing(HttpServletRequest request) throws Throwable {
|
160 |
public ResponseEntity<ApiResponse<?>> getPartnersListing(HttpServletRequest request) throws Throwable {
|
| 159 |
return wrapResponse(dealsController.getPartnersListing(request));
|
161 |
return wrapResponse(dealsController.getPartnersListing(request));
|
| 160 |
}
|
162 |
}
|
| 161 |
|
163 |
|
| 162 |
@GetMapping("/combo")
|
164 |
@GetMapping("/combo")
|