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.FollowCptSignDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.follow.cpt.FollowCptSignSearchEntity;
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/sign")
public interface FollowCptSignFeignService {

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

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

    @PostMapping("/kickout")
    BaseResultDto<Object> kickout(@RequestBody @Validated SingleLongEntity entity) throws Exception;

}
