// 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 cn.binux.item.vo.TbItemVO;
import cn.binux.pojo.TbItemDesc;
import io.swagger.annotations.Api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
package cn.binux.item.controller;



/**
 * 商品查询 Controller
 *
 * @author xubin.
 * @create 2017-05-04
 */

@Api(value = "API - ItemController", description = "商品 Controller")
@Controller
public class ItemController {

    private static final Logger logger = LoggerFactory.getLogger(ItemController.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-web-item/src/main/java/cn/binux/item/controller/ItemController.java
import cn.binux.item.service.ItemService;
import cn.binux.item.vo.TbItemVO;
import cn.binux.pojo.TbItemDesc;
import io.swagger.annotations.Api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

package cn.binux.item.controller;



/**
 * 商品查询 Controller
 *
 * @author xubin.
 * @create 2017-05-04
 */

@Api(value = "API - ItemController", description = "商品 Controller")
@Controller
public class ItemController {

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

    @Autowired
    private ItemService itemService;