InterfaceOauthService.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. package jnpf.base.service;
  2. import jnpf.base.service.SuperService;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import jnpf.base.entity.InterfaceOauthEntity;
  5. import jnpf.base.model.InterfaceOauth.PaginationOauth;
  6. import jnpf.exception.DataException;
  7. import java.util.List;
  8. /**
  9. * 接口认证服务
  10. *
  11. * @author JNPF开发平台组
  12. * @version V3.4.2
  13. * @copyright 引迈信息技术有限公司
  14. * @date 2022/6/8 9:26
  15. */
  16. public interface InterfaceOauthService extends SuperService<InterfaceOauthEntity> {
  17. /**
  18. * 判断接口认证名称是否重复
  19. *
  20. * @param appName 名称
  21. * @param id 主键
  22. * @return ignore
  23. */
  24. boolean isExistByAppName(String appName, String id);
  25. /**
  26. * 判断appId是否重复
  27. *
  28. * @param appId 名称
  29. * @param id 主键
  30. * @return ignore
  31. */
  32. boolean isExistByAppId(String appId, String id);
  33. /**
  34. * 获取接口列表(分页)
  35. *
  36. * @param pagination 分页参数
  37. * @return ignore
  38. */
  39. List<InterfaceOauthEntity> getList(PaginationOauth pagination);
  40. /**
  41. * 获取接口认证数据
  42. *
  43. * @param id 主键
  44. * @return ignore
  45. */
  46. InterfaceOauthEntity getInfo(String id);
  47. /**
  48. * 添加接口认证数据
  49. *
  50. * @param entity 实体
  51. */
  52. void create(InterfaceOauthEntity entity);
  53. /**
  54. * 修改接口
  55. *
  56. * @param entity 实体
  57. * @param id 主键
  58. * @return 实体
  59. * @throws DataException ignore
  60. */
  61. boolean update(InterfaceOauthEntity entity, String id) throws DataException;
  62. /**
  63. * 删除接口
  64. *
  65. * @param entity 实体
  66. */
  67. void delete(InterfaceOauthEntity entity);
  68. /**
  69. * 获取接口认证数据
  70. *
  71. * @param appId 主键
  72. * @return ignore
  73. */
  74. InterfaceOauthEntity getInfoByAppId(String appId);
  75. }