ClaudeCodeService.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package com.cyksj.service.claude;
  2. import com.cyksj.model.entity.GoodsDonSku;
  3. import com.cyksj.model.request.ClaudeCodeApiKeysReq;
  4. import com.cyksj.model.request.ClaudeCodeApiKeysStatusReq;
  5. import com.cyksj.model.request.ClaudeCodeDelReq;
  6. import com.cyksj.model.response.ClaudeCodePointsHistoryResp;
  7. import com.cyksj.model.response.claudecode.ClaudeCodeResp;
  8. import com.cyksj.model.views.ClaudeCodeUserApiKeysView;
  9. import com.cyksj.model.views.ClaudeCodeUserPackageView;
  10. import java.util.List;
  11. /**
  12. * 项目名: yhlxj11111111
  13. * 文件名: ClaudeCodeService
  14. * 创建者: JavaZou
  15. * 创建时间:2025/8/8 10:55
  16. */
  17. public interface ClaudeCodeService {
  18. /**
  19. * 生成claude code用户套餐信息
  20. */
  21. void generateOrUpdateClaudeCodeUserInfo(Long orderId, Long relationId, Long userId, GoodsDonSku sku, Integer orderType);
  22. /**
  23. * 用户创建api keys
  24. */
  25. void createApiKeys(ClaudeCodeApiKeysReq req) throws Exception;
  26. /**
  27. * 用户更新api key状态
  28. */
  29. void updateApiKeysStatus(ClaudeCodeApiKeysStatusReq req) throws Exception;
  30. /**
  31. * 删除api key
  32. */
  33. void deleteApiKeysById(ClaudeCodeDelReq delReq) throws Exception;
  34. /**
  35. * 用户api keys列表
  36. */
  37. List<ClaudeCodeUserApiKeysView> getUserApiKeys(long userId) throws Exception;
  38. /**
  39. * 用户套餐信息
  40. */
  41. ClaudeCodeUserPackageView getUserPackage(long userId) throws Exception;
  42. ClaudeCodePointsHistoryResp getUserPointsDetail(Long userId, String type, Integer page, Integer limit) throws Exception;
  43. ClaudeCodeResp getUserPointsStatisticsData(Long userId) throws Exception;
  44. ClaudeCodeResp getUserDashboard(Long userId) throws Exception;
  45. ClaudeCodeResp getUserBalance(Long userId) throws Exception;
  46. ClaudeCodeResp getCreditsAnalytics(Long userId, String start, String end, String tz, String page, String limit, String order, String type) throws Exception;
  47. void invalidateUserCache(Long relationUserId);
  48. }