|
|
@ -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"); |
|
|
|