Browse Source

# 邮件发送feign接口调用报错bug

zhongwei
haungxing 1 year ago
parent
commit
7c4c2c4ff8
  1. 8
      hzims-service/message/src/main/java/com/hnac/hzims/message/push/feign/PushMsgClient.java

8
hzims-service/message/src/main/java/com/hnac/hzims/message/push/feign/PushMsgClient.java

@ -28,8 +28,8 @@ import org.springframework.web.bind.annotation.RestController;
public class PushMsgClient implements IPushMsgClient { public class PushMsgClient implements IPushMsgClient {
@Override @Override
@PostMapping("/sendMail") @PostMapping("/sendSms")
@ApiOperation("发送邮件") @ApiOperation("发送短信")
@ApiOperationSupport(order=1) @ApiOperationSupport(order=1)
public R<String> sendSms(SmsPushDto smsPushDto) { public R<String> sendSms(SmsPushDto smsPushDto) {
IPushService pushService = SpringUtil.getBean("smsPushService"); IPushService pushService = SpringUtil.getBean("smsPushService");
@ -37,8 +37,8 @@ public class PushMsgClient implements IPushMsgClient {
} }
@Override @Override
@PostMapping("/sendSms") @PostMapping("/sendMail")
@ApiOperation("发送短信") @ApiOperation("发送邮件")
@ApiOperationSupport(order=2) @ApiOperationSupport(order=2)
public R<String> sendMail(MailPushDto mailPushDto) { public R<String> sendMail(MailPushDto mailPushDto) {
IPushService pushService = SpringUtil.getBean("mailPushService"); IPushService pushService = SpringUtil.getBean("mailPushService");

Loading…
Cancel
Save