diff --git a/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/SmsService.java b/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/SmsService.java index dfc2af7bc..78f52b9aa 100644 --- a/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/SmsService.java +++ b/system/system-service-api/src/main/java/cn/iocoder/mall/admin/api/SmsService.java @@ -8,6 +8,7 @@ import cn.iocoder.mall.admin.api.dto.sms.PageQuerySmsSignDTO; import cn.iocoder.mall.admin.api.dto.sms.PageQuerySmsTemplateDTO; import java.util.List; +import java.util.Map; /** * 短信服务 @@ -93,12 +94,12 @@ public interface SmsService { * * @return */ - void singleSend(String mobile, Integer smsTemplateId); + void singleSend(String mobile, Integer smsTemplateId, Map params); /** * 短信发送 - 批量 * * @return */ - void batchSend(List mobileList, Integer smsTemplateId); + void batchSend(List mobileList, Integer smsTemplateId, Map params); } diff --git a/system/system-service-impl/src/main/java/cn/iocoder/mall/admin/service/SmsServiceImpl.java b/system/system-service-impl/src/main/java/cn/iocoder/mall/admin/service/SmsServiceImpl.java index c86f0fbc8..77f342799 100644 --- a/system/system-service-impl/src/main/java/cn/iocoder/mall/admin/service/SmsServiceImpl.java +++ b/system/system-service-impl/src/main/java/cn/iocoder/mall/admin/service/SmsServiceImpl.java @@ -29,6 +29,7 @@ import org.springframework.util.StringUtils; import java.util.Date; import java.util.List; +import java.util.Map; /** * 短信 @@ -267,7 +268,9 @@ public class SmsServiceImpl implements SmsService { } @Override - public void singleSend(String mobile, Integer smsTemplateId) { + public void singleSend(String mobile, Integer smsTemplateId, Map params) { + + // TODO: 2019/5/21 Sin params 参数为特换到模板中 SmsTemplateDO smsTemplateDO = smsTemplateMapper.selectOne( new QueryWrapper().eq("id", smsTemplateId)); @@ -285,7 +288,9 @@ public class SmsServiceImpl implements SmsService { } @Override - public void batchSend(List mobileList, Integer smsTemplateId) { + public void batchSend(List mobileList, Integer smsTemplateId, Map params) { + // TODO: 2019/5/21 Sin params 参数为特换到模板中 + SmsTemplateDO smsTemplateDO = smsTemplateMapper.selectOne( new QueryWrapper().eq("id", smsTemplateId));