package com.yuchen.saas.message.api.feign.email;

import com.yuchen.saas.message.api.vo.InvoiceMailVo;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: 肖润飞
 * @CreateTime: 2022/11/16 14:22
 * @Description: TODO
 * @Version: 1.0
 */
@FeignClient(
        value = AppNameConstant.SAAS_MESSAGE,
        fallbackFactory = SendMailFallback.class
)
public interface SendMailFeignServer {

    @PostMapping("/email/send")
    R sendInvoiceMail(@RequestBody InvoiceMailVo invoiceMailVo);
}
