AccountConfigService.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. package jnpf.message.service;
  2. import jnpf.base.service.SuperService;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import java.util.*;
  5. import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
  6. import jnpf.base.ActionResult;
  7. import jnpf.exception.DataException;
  8. import jnpf.message.entity.AccountConfigEntity;
  9. import jnpf.message.model.accountconfig.*;
  10. /**
  11. * 账号配置功能
  12. * 版本: V3.2.0
  13. * 版权: 引迈信息技术有限公司(https://www.jnpfsoft.com)
  14. * 作者: JNPF开发平台组
  15. * 日期: 2022-08-18
  16. */
  17. public interface AccountConfigService extends SuperService<AccountConfigEntity> {
  18. List<AccountConfigEntity> getList(AccountConfigPagination accountConfigPagination);
  19. List<AccountConfigEntity> getTypeList(AccountConfigPagination accountConfigPagination, String dataType);
  20. AccountConfigEntity getInfo(String id);
  21. void delete(AccountConfigEntity entity);
  22. void create(AccountConfigEntity entity);
  23. boolean update(String id, AccountConfigEntity entity);
  24. /**
  25. *
  26. * @param type 配置类型 1:站内信,2:邮件,3:短信,4:钉钉,5:企业微信,6:webhook
  27. * @return
  28. */
  29. List<AccountConfigEntity> getListByType(String type);
  30. /**
  31. * 验证名称
  32. *
  33. * @param fullName 名称
  34. * @param id 主键值
  35. * @return ignore
  36. */
  37. boolean isExistByFullName(String fullName, String id);
  38. /**
  39. * 验证编码
  40. *
  41. * @param enCode 编码
  42. * @param id 主键值
  43. * @return ignore
  44. */
  45. boolean isExistByEnCode(String enCode, String id,String type);
  46. /**
  47. * 账号配置导入
  48. *
  49. * @param entity 实体对象
  50. * @return ignore
  51. * @throws DataException ignore
  52. */
  53. ActionResult ImportData(AccountConfigEntity entity) throws DataException;
  54. // 子表方法
  55. //列表子表数据方法
  56. //验证表单
  57. boolean checkForm(AccountConfigForm form, int i,String type,String id);
  58. /**
  59. * 验证微信公众号原始id唯一性
  60. * @param gzhId 微信公众号原始id
  61. * @param i
  62. * @param type
  63. * @param id
  64. * @return
  65. */
  66. boolean checkGzhId(String gzhId, int i,String type,String id);
  67. AccountConfigEntity getInfoByType(String appKey, String type);
  68. AccountConfigEntity getInfoByEnCode(String enCode,String type);
  69. }