| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package com.ydtech.modules.protocol.service;
- import com.baomidou.mybatisplus.extension.service.IService;
- import com.ydtech.modules.protocol.entity.constants.PtlCrawlerApiType;
- import com.ydtech.modules.protocol.entity.po.PtlCrawlerApi;
- import java.util.List;
- /**
- * @author wenks
- * @description 针对表【ptl_crawler_api(python对接接口)】的数据库操作Service
- * @createDate 2023-07-03 18:10:03
- */
- public interface PtlCrawlerApiService extends IService<PtlCrawlerApi> {
- /**
- * 通过协议获取配置的请求地址
- *
- * @param agreementId 协议id
- * @param ptlCrawlerApiType 请求的业务类型
- * @return String
- */
- String getApiUrl(String agreementId, PtlCrawlerApiType ptlCrawlerApiType);
- /**
- * 通过模版id获取请求地址
- *
- * @param templateId 模版id
- * @param ptlCrawlerApiType 业务类型
- * @return String
- */
- String getByTemplateId(String templateId, PtlCrawlerApiType ptlCrawlerApiType);
- /**
- * 通过模版id获取请求
- *
- * @param templateId 模版id
- * @return PtlCrawlerApi
- */
- List<PtlCrawlerApi> getByTemplateIdList(String templateId);
- }
|