package com.elink.esua.epdc.modules.analysis.service.impl;


import com.elink.esua.epdc.commons.tools.utils.Result;
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.feign.AnalysisItemFeignClient;
import com.elink.esua.epdc.modules.analysis.service.AnalysisItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 项目模块-移动app端
 * @Author LPF
 * @Date 2019/11/18 16:34
 */
@Service
public class AnalysisItemServiceImpl implements AnalysisItemService {

    @Autowired
    private AnalysisItemFeignClient analysisItemFeignClient;



    @Override
    public Result test() {
        return analysisItemFeignClient.test();
    }

    @Override
    public Result<ItemSurveyResultDTO> getItemSurvey(ItemSurveyFormDTO formDTO) {
        return analysisItemFeignClient.getItemSurvey(formDTO);
    }

    @Override
    public Result<List<ItemAnalysisResultDTO>> getItemAnalysis(ItemAnalysisFormDTO formDto) {
        return analysisItemFeignClient.getItemAnalysis(formDto);
    }

    @Override
    public Result<List<HotItemListResultDTO>> listHotItemList(HotItemListFormDTO formDto) {
        return analysisItemFeignClient.getHotItemList(formDto);
    }
}
