package es.uv.saic.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import es.uv.saic.dto.EmailDTO;

@FeignClient(name = "saic-core-service", contextId = "email-controller")
public interface EmailClient {
    @PostMapping("/emails/send")
	public void sendEmail(@RequestBody EmailDTO email);

    @PostMapping("/emails/add")
    public void addEmail(@RequestBody EmailDTO email);
}
