package com.crm.manager.service.custom;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.entity.country.SysCountryEntity;
import com.crm.rely.backend.core.entity.country.SysCountryStateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "CUSTOM-SERVICE", path = "/country/manager")
public interface SysCountryFeignService {

    @PostMapping("/get")
    BaseResultDto getAllCountry(SysCountryEntity entity) throws Exception;

    @PostMapping("/get/state")
    BaseResultDto getStates(SysCountryStateEntity entity) throws Exception;

}
