package com.crm.manager.service.activity;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.dto.web.activity.country.WebActivityCountryListDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.web.activity.country.WebActivityCountryAddEntity;
import com.crm.rely.backend.core.entity.web.activity.country.WebActivityCountryDeleteEntity;
import com.crm.rely.backend.core.entity.web.activity.country.WebActivityCountrySearchEntity;
import com.crm.rely.backend.core.entity.web.activity.country.WebActivityCountryUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "ACTIVITY-SERVICE", path = "/web/activity/country/manager")
public interface WebActivityCountryFeignService {

    @PostMapping("/add")
    BaseResultDto add(WebActivityCountryAddEntity entity) throws Exception;

    @PostMapping("/delete")
    BaseResultDto delete(WebActivityCountryDeleteEntity entity) throws Exception;

    @PostMapping("/update")
    BaseResultDto update(WebActivityCountryUpdateEntity entity) throws Exception;

    @PostMapping("/search/list")
    ResultWithPagerDto<WebActivityCountryListDto> list(WebActivityCountrySearchEntity entity) throws Exception;

    @PostMapping("/search/single")
    BaseResultDto<WebActivityCountryListDto> single(SingleLongEntity entity) throws Exception;

}
