PtlCrawlerApiService.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.ydtech.modules.protocol.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.ydtech.modules.protocol.entity.constants.PtlCrawlerApiType;
  4. import com.ydtech.modules.protocol.entity.po.PtlCrawlerApi;
  5. import java.util.List;
  6. /**
  7. * @author wenks
  8. * @description 针对表【ptl_crawler_api(python对接接口)】的数据库操作Service
  9. * @createDate 2023-07-03 18:10:03
  10. */
  11. public interface PtlCrawlerApiService extends IService<PtlCrawlerApi> {
  12. /**
  13. * 通过协议获取配置的请求地址
  14. *
  15. * @param agreementId 协议id
  16. * @param ptlCrawlerApiType 请求的业务类型
  17. * @return String
  18. */
  19. String getApiUrl(String agreementId, PtlCrawlerApiType ptlCrawlerApiType);
  20. /**
  21. * 通过模版id获取请求地址
  22. *
  23. * @param templateId 模版id
  24. * @param ptlCrawlerApiType 业务类型
  25. * @return String
  26. */
  27. String getByTemplateId(String templateId, PtlCrawlerApiType ptlCrawlerApiType);
  28. /**
  29. * 通过模版id获取请求
  30. *
  31. * @param templateId 模版id
  32. * @return PtlCrawlerApi
  33. */
  34. List<PtlCrawlerApi> getByTemplateIdList(String templateId);
  35. }