- 短信模板 添加 params,未实现

pull/1/head
sin 2019-05-21 17:06:16 +08:00
parent 733433e722
commit e0ce00f71d
2 changed files with 10 additions and 4 deletions

View File

@ -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<String, String> params);
/**
* -
*
* @return
*/
void batchSend(List<String> mobileList, Integer smsTemplateId);
void batchSend(List<String> mobileList, Integer smsTemplateId, Map<String, String> params);
}

View File

@ -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<String, String> params) {
// TODO: 2019/5/21 Sin params 参数为特换到模板中
SmsTemplateDO smsTemplateDO = smsTemplateMapper.selectOne(
new QueryWrapper<SmsTemplateDO>().eq("id", smsTemplateId));
@ -285,7 +288,9 @@ public class SmsServiceImpl implements SmsService {
}
@Override
public void batchSend(List<String> mobileList, Integer smsTemplateId) {
public void batchSend(List<String> mobileList, Integer smsTemplateId, Map<String, String> params) {
// TODO: 2019/5/21 Sin params 参数为特换到模板中
SmsTemplateDO smsTemplateDO = smsTemplateMapper.selectOne(
new QueryWrapper<SmsTemplateDO>().eq("id", smsTemplateId));