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


import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.issue.form.HotIssueFormDTO;
import com.elink.esua.epdc.dto.issue.form.IssueStatisticsInfoFormDTO;
import com.elink.esua.epdc.dto.issue.form.NewIssueFormDTO;
import com.elink.esua.epdc.dto.issue.result.HotIssueResultDTO;
import com.elink.esua.epdc.dto.issue.result.IssueStatisticsInfoResultDTO;
import com.elink.esua.epdc.dto.issue.result.NewIssueResultDTO;
import com.elink.esua.epdc.modules.analysis.feign.AnalysisIssueFeignClient;
import com.elink.esua.epdc.modules.analysis.service.AnalysisIssueService;
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 AnalysisIssueServiceImpl implements AnalysisIssueService {

    @Autowired
    private AnalysisIssueFeignClient analysisIssueFeignClient;



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

    @Override
    public Result<List<IssueStatisticsInfoResultDTO>> listStatisticsByCategory(IssueStatisticsInfoFormDTO formDto) {
        return analysisIssueFeignClient.getStatisticsByCategory(formDto);
    }

    @Override
    public Result<List<NewIssueResultDTO>> getNewIssueList(NewIssueFormDTO formDto) {
        return analysisIssueFeignClient.getNewIssueList(formDto);
    }

    @Override
    public Result<List<HotIssueResultDTO>> getHotIssueList(HotIssueFormDTO formDto) {
        return analysisIssueFeignClient.getHotIssueList(formDto);
    }
}
