Activiti7精讲&Java通用型工作流开发实战
v: ititit111222333
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import xyz.staffjoy.common.api.BaseResponse;
import xyz.staffjoy.mail.MailConstant;
import xyz.staffjoy.mail.dto.EmailRequest;
import javax.validation.Valid;
@FeignClient(name = MailConstant.SERVICE_NAME, path = "/v1", url = "${staffjoy.email-service-endpoint}")
public interface MailClient {
@PostMapping(path = "/send")
BaseResponse send(@RequestBody @Valid EmailRequest request);
}