|
@@ -4,6 +4,7 @@ import java.util.Objects;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -24,7 +25,7 @@ public class FeignMailController {
|
|
|
|
|
|
@ApiOperation(value="发送邮件")
|
|
|
@PostMapping("/send")
|
|
|
- public void send(MailSendVo mailSendVo) {
|
|
|
+ public void send(@RequestBody MailSendVo mailSendVo) {
|
|
|
String[] emails = mailSendVo.getEmails();
|
|
|
if (Objects.isNull(emails) || emails.length<=0) { // 发送到默认系统管理员
|
|
|
mailService.sendMail(mailSendVo.getSubject(), mailSendVo.getText());
|