...
|
...
|
@@ -77,15 +77,15 @@ public class ProductController { |
|
|
@IgnoreSession
|
|
|
@RequestMapping(params = "method=ufo.product.storage.leastprice")
|
|
|
//@Cachable(expire=600)
|
|
|
public StorageLeastPriceResp queryStorageLeastprice(
|
|
|
public ApiResponse queryStorageLeastprice(
|
|
|
@RequestParam(value = "storage_id", required = true) Integer storageId) {
|
|
|
|
|
|
return queryStorageLeastprice();
|
|
|
return new ApiResponse.ApiResponseBuilder().data(queryStorageLeastprice()).code(200).message("storage.leastprice").build();
|
|
|
}
|
|
|
|
|
|
|
|
|
private StorageLeastPriceResp queryStorageLeastprice(){
|
|
|
String mockJson = "{\"storage_least_price\":{\"storage_id\":2,\"least_price\":124.3}}";
|
|
|
String mockJson = "{\"storage_least_price\":[{\"storage_id\":2,\"least_price\":124.3}]}";
|
|
|
StorageLeastPriceResp resp = UfoJsonUtil.safelyParseObject(mockJson, StorageLeastPriceResp.class);
|
|
|
return resp;
|
|
|
}
|
...
|
...
|
@@ -95,10 +95,10 @@ public class ProductController { |
|
|
@IgnoreSession
|
|
|
@RequestMapping(params = "method=ufo.product.storage.data")
|
|
|
//@Cachable(expire=600)
|
|
|
public StorageDataResp queryStorageInfo(
|
|
|
public ApiResponse queryStorageInfo(
|
|
|
@RequestParam(value = "storage_id", required = true) Integer storageId) {
|
|
|
|
|
|
return queryStorageData();
|
|
|
return new ApiResponse.ApiResponseBuilder().data(queryStorageData()).code(200).message("storage.data").build();
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|