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.topic.form.HotTopicFormDTO;
import com.elink.esua.epdc.dto.topic.form.NewHotTopicFormDTO;
import com.elink.esua.epdc.modules.analysis.service.impl.fallback.AnalysisTopicFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;

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



    /**
     * 测试
     * @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();

    @GetMapping(value = "analysis/apptopic/getHotTopicList", consumes = MediaType.APPLICATION_JSON_VALUE)
    Result getHotTopicList(HotTopicFormDTO hotTopicFormDTO);

    @GetMapping(value = "analysis/apptopic/getNewTopicList", consumes = MediaType.APPLICATION_JSON_VALUE)
    Result getNewTopicList(NewHotTopicFormDTO newHotTopicFormDTO);



}
