package com.crm.manager.service.follow;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.follow.cpt.FollowCptDailyDto;
import com.crm.rely.backend.core.dto.follow.cpt.FollowCptInfoDto;
import com.crm.rely.backend.core.dto.follow.cpt.FollowCptResultDto;
import com.crm.rely.backend.core.entity.follow.cpt.FollowCptRankSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "FOLLOW-TASK-SERVICE", path = "/manager/service/follow/cpt")
public interface FollowCptFeignService {

    @PostMapping("/info")
    BaseResultDto<List<FollowCptInfoDto>> cptInfo() throws Exception;

    @PostMapping("/result")
    BaseResultWithPagerDto<List<FollowCptResultDto>> cptResult(@RequestBody @Validated FollowCptRankSearchEntity entity) throws Exception;

    @PostMapping("/daily")
    BaseResultWithPagerDto<List<FollowCptDailyDto>> cptDaily(@RequestBody @Validated FollowCptRankSearchEntity entity) throws Exception;

}
