package com.crm.manager.service.emial;

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.record.SysEmailRecordSearchDto;
import com.crm.rely.backend.core.entity.system.email.SupplementSendEmailEntity;
import com.crm.rely.backend.core.entity.system.email.SysEmailTestSendEntity;
import com.crm.rely.backend.core.entity.system.email.record.SysEmailRecordSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "EMAIL-SERVICE", path = "/email/manager")
public interface EmailSendFeignService {

    @PostMapping("/test/send")
    BaseResultDto sendEmailTest(SysEmailTestSendEntity entity) throws Exception;

    @PostMapping("/supplement/send")
    BaseResultDto managerSupplementSendEmail(SupplementSendEmailEntity sysEmailEntity) throws Exception;

    @PostMapping("/search/list")
    ResultWithPagerDto<SysEmailRecordSearchDto> searchList(SysEmailRecordSearchEntity entity) throws Exception;
}
