فهرست منبع

feat:后端项目,在公共模块中定义内部使用获取用户关联对应接口信息的接口;定义获取用户关联接口信息的方法;定义接口调用次数+1的接口;

yang yi 9 ماه پیش
والد
کامیت
be894e280f

+ 33 - 0
open-api-commom/src/main/java/space/anyi/openAPI/comom/service/inside/InsideUserInterfaceInfoService.java

@@ -0,0 +1,33 @@
+package space.anyi.openAPI.comom.service.inside;
+
+import space.anyi.openAPI.comom.model.userInterfaceInfo.UserInterfaceInfo;
+
+/**
+ * @ProjectName: open-api-commom
+ * @FileName: InsideUserInterfaceInfoService
+ * @Author: 杨逸
+ * @Data:2025/12/3 20:02
+ * @Description: 服务内部使用的接口,RPC使用
+ */
+public interface InsideUserInterfaceInfoService {
+    /**
+     * @param userId 用户ID
+     * @param interfaceInfoId 接口信息ID
+     * @return {@code UserInterfaceInfo }
+     * @description: 根据用户ID和接口信息ID获取用户关联对应接口信息
+     * @author: 杨逸
+     * @data:2025/12/03 20:03:28
+     * @since 1.0.0
+     */
+    UserInterfaceInfo getUserInterfaceInfoByUserIdAndInterfaceInfoId(Long userId, Long interfaceInfoId);
+
+    /**
+     * @param id 用户关联接口信息的ID
+     * @return boolean
+     * @description: 调用成功,增加记录调用次数
+     * @author: 杨逸
+     * @data:2025/12/03 20:18:14
+     * @since 1.0.0
+     */
+    boolean invokeSuccess(Long id);
+}