...
|
...
|
@@ -6,14 +6,20 @@ import com.yohoufo.product.response.ProductDetailResp; |
|
|
import com.yohoufo.product.response.ProductSeriesTemplateResp;
|
|
|
import com.yohoufo.product.response.StorageDataResp;
|
|
|
import com.yohoufo.product.response.StorageLeastPriceResp;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
import com.yohoufo.common.ApiResponse;
|
|
|
import com.yohoufo.common.annotation.IgnoreSession;
|
|
|
import com.yohoufo.common.annotation.IgnoreSignature;
|
|
|
import com.yohoufo.common.caller.UfoServiceCaller;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
...
|
...
|
@@ -21,6 +27,9 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
public class ProductController {
|
|
|
|
|
|
private final Logger LOG = LoggerFactory.getLogger(ProductController.class);
|
|
|
|
|
|
@Autowired
|
|
|
UfoServiceCaller serviceCaller;
|
|
|
|
|
|
@ApiOperation(name = "ufo.product.data", desc="商品详情")
|
|
|
@IgnoreSignature
|
...
|
...
|
@@ -125,6 +134,7 @@ public class ProductController { |
|
|
@RequestMapping(params = "method=ufo.product.cancelSaleSkup")
|
|
|
public ApiResponse cancelSaleSkup(
|
|
|
@RequestParam(value = "skup", required = false) Integer skup) {
|
|
|
serviceCaller.call("ufo.product.data", 99);
|
|
|
return new ApiResponse(200, "取消卖出成功!", Boolean.TRUE);
|
|
|
}
|
|
|
|
...
|
...
|
|