| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.common.constant.ChannelCode; |
| | | import com.ycl.dto.message.MessageParam; |
| | | import com.ycl.entity.message.Message; |
| | | import com.ycl.exception.ApiException; |
| | |
| | | switch (messageParam.getChannelCode()) |
| | | { |
| | | //内站发送 |
| | | case "01": |
| | | case ChannelCode.INNER: |
| | | provider = new InnerFactory(); |
| | | break; |
| | | //邮件发送 |
| | | case "02": |
| | | case ChannelCode.SMS: |
| | | provider = new MailFactory(); |
| | | //id换成邮箱号 |
| | | String targetToMail = adminService.getTargetTo(messageParam.getTargetTo(), messageParam.getChannelCode()); |
| | |
| | | |
| | | break; |
| | | //短信发送 |
| | | case "03": |
| | | case ChannelCode.MAIL: |
| | | provider = new SmsFactory(); |
| | | //id换成手机号 |
| | | String targetToPhone = adminService.getTargetTo(messageParam.getTargetTo(), messageParam.getChannelCode()); |