// Path: xbin-store-cloud-service-item-api/src/main/java/cn/binux/item/service/ItemService.java
// @FeignClient(value = "xbin-store-cloud-service-item",fallback = ItemServiceHystrix.class)
// public interface ItemService {
// 
//     @RequestMapping(value = "/getItemById/{id}",method = RequestMethod.POST)
//     TbItem getItemById(@PathVariable("id") Long itemId);
// 
//     @RequestMapping(value = "/getItemDescById/{id}",method = RequestMethod.POST)
//     TbItemDesc getItemDescById(@PathVariable("id") Long itemId);
// 
// 
// }


import cn.binux.item.service.ItemService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
package cn.binux.item.listener;


/**
 * 监听商品添加 生成商品页面静态文件
 *
 * @author xubin.
 * @create 2017-02-06 下午8:19
 */


public class ItemAddListener {

    private static final Logger logger = LoggerFactory.getLogger(ItemAddListener.class);

    @Autowired
// Path: xbin-store-cloud-service-item-api/src/main/java/cn/binux/item/service/ItemService.java
// @FeignClient(value = "xbin-store-cloud-service-item",fallback = ItemServiceHystrix.class)
// public interface ItemService {
// 
//     @RequestMapping(value = "/getItemById/{id}",method = RequestMethod.POST)
//     TbItem getItemById(@PathVariable("id") Long itemId);
// 
//     @RequestMapping(value = "/getItemDescById/{id}",method = RequestMethod.POST)
//     TbItemDesc getItemDescById(@PathVariable("id") Long itemId);
// 
// 
// }


// Path: xbin-store-cloud-service-item/src/main/java/cn/binux/item/listener/ItemAddListener.java
import cn.binux.item.service.ItemService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

package cn.binux.item.listener;


/**
 * 监听商品添加 生成商品页面静态文件
 *
 * @author xubin.
 * @create 2017-02-06 下午8:19
 */


public class ItemAddListener {

    private static final Logger logger = LoggerFactory.getLogger(ItemAddListener.class);

    @Autowired
    private ItemService itemService;