// Path: xbin-store-cloud-service-portal-api/src/main/java/cn/binux/portal/service/PortalContentService.java
// @FeignClient(value = "xbin-store-cloud-service-portal",fallback = PortalContentServiceHystrix.class)
// public interface PortalContentService {
// 
//     @RequestMapping(value = "/getContentByCid",method = RequestMethod.POST)
//     List<TbContent> getContentByCid(@RequestParam("bigAdIndex") Long bigAdIndex);
// }


import cn.binux.portal.service.PortalContentService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
package cn.binux.portal.controller;


/**
 * 首页 Controller
 * @create 2017-05-04
 */

@Api(value = "API - IndexController", description = "首页Controller")
@Controller
@RefreshScope
public class IndexController {

    @Autowired
// Path: xbin-store-cloud-service-portal-api/src/main/java/cn/binux/portal/service/PortalContentService.java
// @FeignClient(value = "xbin-store-cloud-service-portal",fallback = PortalContentServiceHystrix.class)
// public interface PortalContentService {
// 
//     @RequestMapping(value = "/getContentByCid",method = RequestMethod.POST)
//     List<TbContent> getContentByCid(@RequestParam("bigAdIndex") Long bigAdIndex);
// }


// Path: xbin-store-cloud-web-portal/src/main/java/cn/binux/portal/controller/IndexController.java
import cn.binux.portal.service.PortalContentService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

package cn.binux.portal.controller;


/**
 * 首页 Controller
 * @create 2017-05-04
 */

@Api(value = "API - IndexController", description = "首页Controller")
@Controller
@RefreshScope
public class IndexController {

    @Autowired
    private PortalContentService portalContentService;