Package net.risesoft.service.impl
Class InterfaceServiceImpl
- java.lang.Object
-
- net.risesoft.service.impl.InterfaceServiceImpl
-
- All Implemented Interfaces:
InterfaceService
@Service public class InterfaceServiceImpl extends Object implements InterfaceService
- Author:
- zhangchongjie
- Date:
- 2024/05/23
-
-
Constructor Summary
Constructors Constructor Description InterfaceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<InterfaceInfo>findAll()获取所有接口信息InterfaceInfofindById(String id)根据id获取接口信息List<InterfaceInfo>findByInterfaceName(String interfaceName)根据接口名称获取接口信息List<ItemInterfaceBind>listInterfaceById(String id)获取接口绑定事项列表List<InterfaceInfo>listInterfaces(String name, String type, String address)获取接口列表List<InterfaceRequestParams>listRequestParams(String name, String type, String id)获取接口请求参数列表List<InterfaceResponseParams>listResponseParamsByNameAndId(String name, String id)获取接口响应参数列表voidremoveInterface(String id)移除接口信息voidremoveReqParams(String[] ids)移除接口请求参数voidremoveResParams(String[] ids)移除接口响应参数voidsaveAllResponseParams(String interfaceId, String jsonData)一键保存响应参数InterfaceInfosaveInterfaceInfo(InterfaceInfo info)保存接口信息voidsaveRequestParams(InterfaceRequestParams info)保存接口请求参数voidsaveResponseParams(InterfaceResponseParams info)保存接口响应参数
-
-
-
Method Detail
-
findById
public InterfaceInfo findById(String id)
Description copied from interface:InterfaceService根据id获取接口信息- Specified by:
findByIdin interfaceInterfaceService- Returns:
-
findByInterfaceName
public List<InterfaceInfo> findByInterfaceName(String interfaceName)
Description copied from interface:InterfaceService根据接口名称获取接口信息- Specified by:
findByInterfaceNamein interfaceInterfaceService- Returns:
-
findAll
public List<InterfaceInfo> findAll()
Description copied from interface:InterfaceService获取所有接口信息- Specified by:
findAllin interfaceInterfaceService- Returns:
-
listInterfaceById
public List<ItemInterfaceBind> listInterfaceById(String id)
Description copied from interface:InterfaceService获取接口绑定事项列表- Specified by:
listInterfaceByIdin interfaceInterfaceService- Returns:
-
listInterfaces
public List<InterfaceInfo> listInterfaces(String name, String type, String address)
Description copied from interface:InterfaceService获取接口列表- Specified by:
listInterfacesin interfaceInterfaceService- Returns:
-
listRequestParams
public List<InterfaceRequestParams> listRequestParams(String name, String type, String id)
Description copied from interface:InterfaceService获取接口请求参数列表- Specified by:
listRequestParamsin interfaceInterfaceService- Returns:
-
listResponseParamsByNameAndId
public List<InterfaceResponseParams> listResponseParamsByNameAndId(String name, String id)
Description copied from interface:InterfaceService获取接口响应参数列表- Specified by:
listResponseParamsByNameAndIdin interfaceInterfaceService- Returns:
-
removeInterface
@Transactional public void removeInterface(String id)
Description copied from interface:InterfaceService移除接口信息- Specified by:
removeInterfacein interfaceInterfaceService
-
removeReqParams
@Transactional public void removeReqParams(String[] ids)
Description copied from interface:InterfaceService移除接口请求参数- Specified by:
removeReqParamsin interfaceInterfaceService
-
removeResParams
@Transactional public void removeResParams(String[] ids)
Description copied from interface:InterfaceService移除接口响应参数- Specified by:
removeResParamsin interfaceInterfaceService
-
saveAllResponseParams
@Transactional public void saveAllResponseParams(String interfaceId, String jsonData)
Description copied from interface:InterfaceService一键保存响应参数- Specified by:
saveAllResponseParamsin interfaceInterfaceService
-
saveInterfaceInfo
@Transactional public InterfaceInfo saveInterfaceInfo(InterfaceInfo info)
Description copied from interface:InterfaceService保存接口信息- Specified by:
saveInterfaceInfoin interfaceInterfaceService
-
saveRequestParams
@Transactional public void saveRequestParams(InterfaceRequestParams info)
Description copied from interface:InterfaceService保存接口请求参数- Specified by:
saveRequestParamsin interfaceInterfaceService
-
saveResponseParams
@Transactional public void saveResponseParams(InterfaceResponseParams info)
Description copied from interface:InterfaceService保存接口响应参数- Specified by:
saveResponseParamsin interfaceInterfaceService
-
-