package com.crm.manager.service;

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.system.email.unsubscribe.SysEmailUnsubscribeSearchDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.system.email.unsubscribe.SysEmailUnsubscribeAddEntity;
import com.crm.rely.backend.core.entity.system.email.unsubscribe.SysEmailUnsubscribeDeleteEntity;
import com.crm.rely.backend.core.entity.system.email.unsubscribe.SysEmailUnsubscribeSearchListEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "EMAIL-SERVICE", path = "/email/unsubscribe/manager")
public interface SysEmailUnsubscribeFeignService {
    @PostMapping("/add")
    BaseResultDto add(SysEmailUnsubscribeAddEntity entity) throws Exception;

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

    @PostMapping("/search/list")
    ResultWithPagerDto<SysEmailUnsubscribeSearchDto> searchList(SysEmailUnsubscribeSearchListEntity entity) throws Exception;

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

}
