SendSmsService.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.fuint.common.service;
  2. import com.fuint.framework.exception.BusinessCheckException;
  3. import com.fuint.framework.pagination.PaginationRequest;
  4. import com.fuint.framework.pagination.PaginationResponse;
  5. import com.fuint.repository.model.MtSmsSendedLog;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * 发送短信接口
  10. *
  11. * Created by FSQ
  12. * CopyRight https://www.fuint.cn
  13. */
  14. public interface SendSmsService {
  15. /**
  16. * 发送短信方法
  17. *
  18. * @param merchantId 商户ID
  19. * @param tUname 短信模板英文名称
  20. * @param phones 手机号码集合
  21. * @return Map<Boolean,List<String>> TRUE:推送成功的手机号码集合;
  22. * FALSE:推送失败的手机号码集合
  23. * @throws Exception
  24. */
  25. Map<Boolean, List<String>> sendSms(Integer merchantId, String tUname, List<String> phones, Map<String, String> contentParams) throws BusinessCheckException;
  26. /**
  27. * 分页已发短信列表
  28. *
  29. * @param paginationRequest
  30. * @return
  31. */
  32. PaginationResponse<MtSmsSendedLog> querySmsListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;
  33. }