SmsTemplateService.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package jnpf.base.service;
  2. import jnpf.base.service.SuperService;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import jnpf.base.Page;
  5. import jnpf.base.Pagination;
  6. import jnpf.base.entity.SmsTemplateEntity;
  7. import jnpf.base.SmsModel;
  8. import java.util.List;
  9. /**
  10. * @author Administrator
  11. * @description 针对表【base_sms_template】的数据库操作Service
  12. * @createDate 2021-12-09 10:12:52
  13. */
  14. public interface SmsTemplateService extends SuperService<SmsTemplateEntity> {
  15. /**
  16. * 列表(不分页)
  17. *
  18. * @return
  19. */
  20. List<SmsTemplateEntity> getList(String keyword);
  21. /**
  22. * 列表
  23. *
  24. * @param pagination 条件
  25. * @return 单据规则列表
  26. */
  27. List<SmsTemplateEntity> getList(Pagination pagination);
  28. /**
  29. * 信息
  30. *
  31. * @param id 主键值
  32. * @return 单据规则
  33. */
  34. SmsTemplateEntity getInfo(String id);
  35. /**
  36. * 创建
  37. *
  38. * @param entity 实体
  39. */
  40. void create(SmsTemplateEntity entity);
  41. /**
  42. * 更新
  43. *
  44. * @param id 主键值
  45. * @param entity 实体对象
  46. * @return ignore
  47. */
  48. boolean update(String id, SmsTemplateEntity entity);
  49. /**
  50. * 删除
  51. *
  52. * @param entity 实体
  53. */
  54. void delete(SmsTemplateEntity entity);
  55. /**
  56. * 判断模板编号是否重复
  57. *
  58. * @param templateName
  59. * @param id
  60. * @return
  61. */
  62. boolean isExistByTemplateName(String templateName, String id);
  63. /**
  64. * 判断模板编号是否重复
  65. *
  66. * @param enCode
  67. * @param id
  68. * @return
  69. */
  70. boolean isExistByEnCode(String enCode, String id);
  71. /**
  72. * 获取短信配置
  73. * @return
  74. */
  75. SmsModel getSmsConfig();
  76. }