package com.crm.manager.service.activity;

import com.crm.rely.backend.core.dto.activity.ActivityDubaiExhibitionCountryConfigDto;
import com.crm.rely.backend.core.dto.activity.ActivityDubaiExhibitionDto;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.entity.activity.ActivityDubaiExhibitionListSearchEntity;
import com.crm.rely.backend.exception.ServiceException;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(name = "ACTIVITY-SERVICE", path = "/activity/dubai/exhibition")
public interface ActivityDubaiExhibitionFeignService {

    @PostMapping("/search/list")
    BaseResultWithPagerDto<List<ActivityDubaiExhibitionDto>> searchList(ActivityDubaiExhibitionListSearchEntity entity) throws ServiceException;

    @PostMapping("/countries")
    BaseResultDto<List<ActivityDubaiExhibitionCountryConfigDto>> countryConfig() throws ServiceException;

    @PostMapping("/countryQrCodeDomain")
    BaseResultDto<String> countryQrCodeDomain(ActivityDubaiExhibitionListSearchEntity entity) throws ServiceException;
}
