package com.elink.esua.epdc.modules.analysis.feign;

import com.elink.esua.epdc.commons.tools.constant.ServiceConstant;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.config.FeignRequestInterceptor;
import com.elink.esua.epdc.dto.item.form.HotItemListFormDTO;
import com.elink.esua.epdc.dto.item.form.ItemAnalysisFormDTO;
import com.elink.esua.epdc.dto.item.form.ItemSurveyFormDTO;
import com.elink.esua.epdc.dto.item.result.HotItemListResultDTO;
import com.elink.esua.epdc.dto.item.result.ItemAnalysisResultDTO;
import com.elink.esua.epdc.dto.item.result.ItemSurveyResultDTO;
import com.elink.esua.epdc.modules.analysis.service.impl.fallback.AnalysisItemFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 评价模块调用-移动app端
 * @Author LPF
 * @Date 2019/11/18 16:39
 */
@FeignClient(name = ServiceConstant.EPDC_ANALYSIS_SERVER, fallback = AnalysisItemFeignClientFallback.class, configuration = FeignRequestInterceptor.class)
public interface AnalysisItemFeignClient {



    /**
     * 测试
     * @Return: com.elink.esua.epdc.commons.tools.utils.Result
     * @Author: lipengfei
     * @Date: 2019/11/19 16:42
     */
    @GetMapping(value = "analysis/item/test", consumes = MediaType.APPLICATION_JSON_VALUE)
    Result test();

    /**
     * @Description: 重点项目概况
     * @Param: [formDTO]
     * @return: com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.item.result.ItemSurveyResultDTO>
     * @Author: zy
     * @Date: 2020-02-11
     */
    @GetMapping(value = "analysis/appitem/getItemSurvey")
    Result<ItemSurveyResultDTO> getItemSurvey(ItemSurveyFormDTO formDto);

    /**
     * @Description: 疑难项目分析
     * @Param: [formDto]
     * @return: com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.item.result.ItemAnalysisResultDTO>>
     * @Author: zy
     * @Date: 2020-02-11
     */
    @GetMapping(value = "analysis/appitem/getItemAnalysis")
    Result<List<ItemAnalysisResultDTO>> getItemAnalysis(ItemAnalysisFormDTO formDto);

    /**
     * @Description: 最热项目接口 :最热讨论分析
     * @Param: [formDto]
     * @return: com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.item.result.HotItemListResultDTO>>
     * @Author: zy
     * @Date: 2020-02-12
     */
    @GetMapping(value = "analysis/appitem/getHotItemList")
    Result<List<HotItemListResultDTO>> getHotItemList(HotItemListFormDTO formDto);
}
