|
|
@@ -0,0 +1,29 @@
|
|
|
+package space.anyi.openAPI.service.impl.inside;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import org.apache.dubbo.config.annotation.DubboService;
|
|
|
+import space.anyi.openAPI.comom.model.interfaceInfo.InterfaceInfo;
|
|
|
+import space.anyi.openAPI.comom.service.inside.InsideInterfaceInfoService;
|
|
|
+import space.anyi.openAPI.mapper.InterfaceInfoMapper;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ProjectName: yangyi-open-api-platform
|
|
|
+ * @FileName: InsideInterfaceInfoServiceImpl
|
|
|
+ * @Author: 杨逸
|
|
|
+ * @Data:2025/11/21 16:29
|
|
|
+ * @Description: RPC接口提供
|
|
|
+ */
|
|
|
+@DubboService(registry = "nacos-registry")
|
|
|
+public class InsideInterfaceInfoServiceImpl implements InsideInterfaceInfoService {
|
|
|
+ private final InterfaceInfoMapper interfaceInfoMapper;
|
|
|
+
|
|
|
+ public InsideInterfaceInfoServiceImpl(InterfaceInfoMapper interfaceInfoMapper) {
|
|
|
+ this.interfaceInfoMapper = interfaceInfoMapper;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public InterfaceInfo getInterfaceInfoByUrlAndMethod(String url, String method) {
|
|
|
+ LambdaQueryWrapper<InterfaceInfo> lambdaQueryWrapper = new LambdaQueryWrapper<InterfaceInfo>().eq(InterfaceInfo::getUrl, url).eq(InterfaceInfo::getMethod, method);
|
|
|
+ return interfaceInfoMapper.selectOne(lambdaQueryWrapper);
|
|
|
+ }
|
|
|
+}
|