| Line 8... |
Line 8... |
| 8 |
import com.spice.profitmandi.web.controller.UserModel;
|
8 |
import com.spice.profitmandi.web.controller.UserModel;
|
| 9 |
import com.spice.profitmandi.service.catalog.BiddingModel;
|
9 |
import com.spice.profitmandi.service.catalog.BiddingModel;
|
| 10 |
import com.spice.profitmandi.web.controller.StoreController;
|
10 |
import com.spice.profitmandi.web.controller.StoreController;
|
| 11 |
import com.spice.profitmandi.web.v2.response.ApiResponse;
|
11 |
import com.spice.profitmandi.web.v2.response.ApiResponse;
|
| 12 |
import org.springframework.beans.factory.annotation.Autowired;
|
12 |
import org.springframework.beans.factory.annotation.Autowired;
|
| - |
|
13 |
import org.springframework.cache.annotation.Cacheable;
|
| 13 |
import org.springframework.http.ResponseEntity;
|
14 |
import org.springframework.http.ResponseEntity;
|
| 14 |
import org.springframework.ui.Model;
|
15 |
import org.springframework.ui.Model;
|
| 15 |
import org.springframework.web.bind.annotation.*;
|
16 |
import org.springframework.web.bind.annotation.*;
|
| 16 |
|
17 |
|
| 17 |
import javax.servlet.http.HttpServletRequest;
|
18 |
import javax.servlet.http.HttpServletRequest;
|
| Line 172... |
Line 173... |
| 172 |
@RequestBody AddCartRequest cartRequest) throws Throwable {
|
173 |
@RequestBody AddCartRequest cartRequest) throws Throwable {
|
| 173 |
return wrapResponse(storeController.cart(request, cartRequest));
|
174 |
return wrapResponse(storeController.cart(request, cartRequest));
|
| 174 |
}
|
175 |
}
|
| 175 |
|
176 |
|
| 176 |
@GetMapping("/store/partnerStock")
|
177 |
@GetMapping("/store/partnerStock")
|
| - |
|
178 |
@Cacheable(value = "partnerStock", cacheManager = "fiveMintimeoutCacheManager")
|
| 177 |
public ResponseEntity<ApiResponse<?>> partnerStock(HttpServletRequest request,
|
179 |
public ResponseEntity<ApiResponse<?>> partnerStock(HttpServletRequest request,
|
| 178 |
@RequestParam(required = false, defaultValue = "3") String categoryId,
|
180 |
@RequestParam(required = false, defaultValue = "3") String categoryId,
|
| 179 |
@RequestParam int offset,
|
181 |
@RequestParam int offset,
|
| 180 |
@RequestParam int limit,
|
182 |
@RequestParam int limit,
|
| 181 |
@RequestParam(required = false) String sort,
|
183 |
@RequestParam(required = false) String sort,
|