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.FollowCptLuckyDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.follow.cpt.FollowCptLuckySearchEntity;
import com.crm.rely.backend.core.entity.follow.cpt.FollowCptLuckyUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
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/lucky")
public interface FollowCptLuckyFeignService {

    @PostMapping("/search/list")
    BaseResultWithPagerDto<List<FollowCptLuckyDto>> searchList(@RequestBody FollowCptLuckySearchEntity entity) throws Exception;

    @PostMapping("/update/status")
    BaseResultDto<Object> updateStatus(@RequestBody FollowCptLuckyUpdateEntity entity) throws Exception;

    @PostMapping("/search/single")
    BaseResultDto<FollowCptLuckyDto> searchSingle(@RequestBody SingleLongEntity entity) throws Exception;
}
