ClaudeCodeController.java 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. package com.cyksj.web.controller.claude;
  2. import cn.hutool.core.collection.CollUtil;
  3. import cn.hutool.core.date.DateTime;
  4. import cn.hutool.core.util.StrUtil;
  5. import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  6. import com.cyksj.common.constant.Constant;
  7. import com.cyksj.common.exception.BusinessRuntimeException;
  8. import com.cyksj.common.util.Jsons;
  9. import com.cyksj.dto.Result;
  10. import com.cyksj.dto.UserSharedDto;
  11. import com.cyksj.enums.GatewayResponse;
  12. import com.cyksj.mapper.ClaudeCodeUserMapper;
  13. import com.cyksj.mapper.GroupsMapper;
  14. import com.cyksj.mapper.GroupsRelationMapper;
  15. import com.cyksj.mapper.manage.coupon.*;
  16. import com.cyksj.mapper.manage.distribute.UserDistributeMapper;
  17. import com.cyksj.model.entity.*;
  18. import com.cyksj.model.manage.views.OrderDonView;
  19. import com.cyksj.model.request.ClaudeCodeApiKeysReq;
  20. import com.cyksj.model.request.ClaudeCodeDelReq;
  21. import com.cyksj.model.response.ClaudeCodePointsHistoryResp;
  22. import com.cyksj.model.response.TimeRateConfigsResp;
  23. import com.cyksj.model.response.claudecode.ClaudeCodeResp;
  24. import com.cyksj.model.views.*;
  25. import com.cyksj.service.claude.AnnouncementService;
  26. import com.cyksj.service.claude.ClaudeCodeService;
  27. import com.cyksj.service.claude.OAuthClaudeCodeService;
  28. import com.cyksj.service.claude.RelayService;
  29. import com.cyksj.service.user.UserBindRelationService;
  30. import com.cyksj.service.user.UserService;
  31. import com.cyksj.web.util.StpUserUtil;
  32. import com.ejlchina.searcher.BeanSearcher;
  33. import com.ejlchina.searcher.SearchResult;
  34. import com.ejlchina.searcher.param.Operator;
  35. import com.ejlchina.searcher.util.MapBuilder;
  36. import com.ejlchina.searcher.util.MapUtils;
  37. import lombok.RequiredArgsConstructor;
  38. import lombok.extern.slf4j.Slf4j;
  39. import org.springframework.validation.annotation.Validated;
  40. import org.springframework.web.bind.annotation.*;
  41. import javax.servlet.http.HttpServletRequest;
  42. import java.util.ArrayList;
  43. import java.util.HashMap;
  44. import java.util.List;
  45. import java.util.Map;
  46. import java.util.stream.Collectors;
  47. /**
  48. * server/claude code
  49. * 项目名: yhlxj11111111
  50. * 文件名: ClaudeCodeController
  51. * 创建者: JavaZou
  52. * 创建时间:2025/8/8 11:37
  53. */
  54. @Slf4j
  55. @RestController
  56. @RequestMapping("/applet/claude/code")
  57. @RequiredArgsConstructor
  58. public class ClaudeCodeController {
  59. private final OAuthClaudeCodeService oAuthClaudeCodeService;
  60. private final ClaudeCodeService claudeCodeService;
  61. private final BeanSearcher beanSearcher;
  62. private final HttpServletRequest request;
  63. private final UserBindRelationService userBindRelationService;
  64. private final AnnouncementService announcementService;
  65. private final RelayService relayService;
  66. private final ClaudeCodeUserMapper claudeCodeUserMapper;
  67. private final GroupsRelationMapper relationMapper;
  68. private final GroupsMapper groupsMapper;
  69. private final UserService userService;
  70. private final UserDistributeMapper userDistributeMapper;
  71. private final CouponDistributePopularizeMapper couponDistributePopularizeMapper;
  72. private final CouponMapper couponMapper;
  73. private final CouponSkuMapper couponSkuMapper;
  74. private final CouponRecommendMapper couponRecommendMapper;
  75. private final CouponUserMapper couponUserMapper;
  76. /**
  77. * 用户创建API KEY
  78. */
  79. @PostMapping("/create/apiKeys")
  80. public ClaudeCodeResp createApiKeys(@RequestBody @Validated ClaudeCodeApiKeysReq req) throws Exception {
  81. long userId = StpUserUtil.getLoginIdAsLong();
  82. req.setUserId(userId);
  83. ClaudeCodeResp resp = claudeCodeService.createApiKeys(req);
  84. return resp;
  85. }
  86. /**
  87. * 用户api keys列表
  88. */
  89. @GetMapping("/get/apiKeys")
  90. public Result<List<ClaudeCodeUserApiKeysView>> getUserApiKeys() throws Exception {
  91. long userId = StpUserUtil.getLoginIdAsLong();
  92. List<ClaudeCodeUserApiKeysView> userApiKeys = claudeCodeService.getUserApiKeys(userId);
  93. return GatewayResponse.SUCCESS.newBuilder().toResult(userApiKeys);
  94. }
  95. /**
  96. * 删除api key
  97. */
  98. @DeleteMapping("/delete/apiKeys")
  99. public Result<String> deleteApiKeysById(@RequestBody ClaudeCodeDelReq delReq) throws Exception {
  100. long userId = StpUserUtil.getLoginIdAsLong();
  101. delReq.setUserId(userId);
  102. claudeCodeService.deleteApiKeysById(delReq);
  103. return GatewayResponse.SUCCESS.newBuilder().toResult();
  104. }
  105. //================================================用户============================================================
  106. /**
  107. * 用户订阅车票信息
  108. */
  109. @GetMapping("/get/user/subs/info")
  110. public Result<ClaudeCodeUserInfoView> getUserSubsInfo() {
  111. long userId = StpUserUtil.getLoginIdAsLong();
  112. ClaudeCodeUserInfoView claudeCodeUserInfoView = claudeCodeService.getClaudeCodeUserSubsInfo(userId);
  113. return GatewayResponse.SUCCESS.newBuilder().toResult(claudeCodeUserInfoView);
  114. }
  115. /**
  116. * 用户订阅历史
  117. */
  118. @GetMapping("/get/user/orders")
  119. public Result<SearchResult<OrderDonView>> getUserOrders() {
  120. long userId = StpUserUtil.getLoginIdAsLong();
  121. List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
  122. SearchResult<OrderDonView> search = beanSearcher.search(OrderDonView.class, MapUtils.flatBuilder(request.getParameterMap())
  123. .field(OrderDonView::getUserId, userIdList).op(Operator.InList)
  124. .field(OrderDonView::getGoodsId, Constant.CLAUDE_CODE_GOODS_ID)
  125. .field(OrderDonView::getStatus, Constant.noOrderAllStatus).op(Operator.NotIn)
  126. .build());
  127. return GatewayResponse.SUCCESS.newBuilder().toResult(search);
  128. }
  129. /**
  130. * 用户积分明细
  131. * - `page` (int, optional): 页码,默认1
  132. * - `limit` (int, optional): 每页数量,默认20,最大100
  133. * - `type` (string, optional): 积分类型过滤
  134. */
  135. @GetMapping("/get/user/points/detail")
  136. public ClaudeCodePointsHistoryResp getUserPointsDetail(@RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "10") Integer limit, String type) throws Exception {
  137. long userId = StpUserUtil.getLoginIdAsLong();
  138. ClaudeCodePointsHistoryResp resp = claudeCodeService.getUserPointsDetail(userId, type, page, limit);
  139. return resp;
  140. }
  141. /**
  142. * 仪表盘聚合
  143. * 返回 当前订阅/余额卡片 + 今日汇总 + 今日请求列表
  144. */
  145. @GetMapping("/get/dashboard")
  146. public ClaudeCodeResp getUserDashboard() throws Exception {
  147. long userId = StpUserUtil.getLoginIdAsLong();
  148. ClaudeCodeResp resp = claudeCodeService.getUserDashboard(userId);
  149. return resp;
  150. }
  151. /**
  152. * 余额卡片
  153. * 单独返回余额卡片数据
  154. */
  155. @GetMapping("/get/balance")
  156. public ClaudeCodeResp getUserBalance() throws Exception {
  157. long userId = StpUserUtil.getLoginIdAsLong();
  158. ClaudeCodeResp resp = claudeCodeService.getUserBalance(userId);
  159. return resp;
  160. }
  161. /**
  162. * 图表 + 明细联动(每小时聚合)
  163. * - `start` (string, required): `YYYY-MM-DD HH:MM:SS`,例如 `2025-08-08 12:00:00`
  164. * - `end` (string, required): `YYYY-MM-DD HH:MM:SS`,需大于 `start`
  165. * - `tz` (string, optional): 时区,默认 `Asia/Shanghai`
  166. * - `page` (int, optional): 明细页码,默认 1
  167. * - `limit` (int, optional): 明细每页数量,默认 20,最大 100
  168. * - `order` (string, optional): `asc|desc`,默认 `desc`
  169. * - `type` (string, optional): 明细类型过滤,`consume|purchase|recovery|refund|reward|adjustment|all`,默认 `all`
  170. */
  171. @GetMapping("/get/credits/analytics")
  172. public ClaudeCodeResp getCreditsAnalytics(String start, String end, @RequestParam(defaultValue = "Asia/Shanghai") String tz, @RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "10") Integer limit, @RequestParam(defaultValue = "desc") String order, @RequestParam(defaultValue = "all") String type) throws Exception {
  173. long userId = StpUserUtil.getLoginIdAsLong();
  174. ClaudeCodeResp resp = claudeCodeService.getCreditsAnalytics(userId, start, end, tz, page, limit, order, type);
  175. return resp;
  176. }
  177. /**
  178. * claude code可选套餐
  179. */
  180. @GetMapping("/get/packages")
  181. public Result<ClaudeCodePackageView> getClaudeCodePackages(String dsCode) {
  182. Long userId = StpUserUtil.getUserIdAfterLogin();
  183. ClaudeCodePackageView claudeCodePackageView = new ClaudeCodePackageView();
  184. if (userId != null) {
  185. List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
  186. ClaudeCodeUser user = claudeCodeUserMapper.selectOne(Wrappers.lambdaQuery(ClaudeCodeUser.class)
  187. .in(ClaudeCodeUser::getUserId, userIdList)
  188. .last("limit 1"));
  189. if (user != null) {
  190. Integer userCodePoints = user.getCodePoints();
  191. GroupsRelation relation = relationMapper.selectById(user.getRelationId());
  192. GroupsTrips groupsTrips = groupsMapper.selectById(relation.getGroupsId());
  193. Long skuId = groupsTrips.getSkuId();
  194. List<RenewUpgradePackageFrontView> renewUpgradePackageFrontViews = beanSearcher.searchAll(RenewUpgradePackageFrontView.class, MapUtils.builder().field(RenewUpgradePackageFrontView::getSkuId, skuId).build());
  195. renewUpgradePackageFrontViews.forEach(renew -> {
  196. try {
  197. List<Long> upgradeSkuIds = Jsons.parseList(renew.getUpgradeSkuIds(), Long.class);
  198. if (user.getRenewSkuId() != null) {
  199. upgradeSkuIds.remove(user.getRenewSkuId());
  200. }
  201. List<RenewUpgradePackageFrontView.RenewSkuView> renewSkuViews = new ArrayList<>();
  202. if (CollUtil.isNotEmpty(upgradeSkuIds)) {
  203. renewSkuViews = beanSearcher.searchAll(RenewUpgradePackageFrontView.RenewSkuView.class, MapUtils.builder()
  204. //高套餐
  205. .field(RenewUpgradePackageFrontView.RenewSkuView::getCodePoints, userCodePoints).op(Operator.GreaterThan)
  206. .field(RenewUpgradePackageFrontView.RenewSkuView::getSkuId, upgradeSkuIds).op(Operator.InList)
  207. .build());
  208. }
  209. renew.setRenewSkus(renewSkuViews);
  210. } catch (Exception e) {
  211. }
  212. });
  213. claudeCodePackageView.setUpgrades(renewUpgradePackageFrontViews);
  214. }
  215. }
  216. List<GoodsDonSkuView> goodsDonSkuViews = beanSearcher.searchAll(GoodsDonSkuView.class, MapUtils.builder().field(GoodsDonSkuView::getGoodsId, Constant.CLAUDE_CODE_GOODS_ID).field(GoodsDonSkuView::getUserOwns).op(Operator.IsNull).build());
  217. //渠道推广
  218. setClaudeCodeSkuCouponInfo(dsCode, userId, goodsDonSkuViews);
  219. claudeCodePackageView.setSkus(goodsDonSkuViews);
  220. return GatewayResponse.SUCCESS.newBuilder().toResult(claudeCodePackageView);
  221. }
  222. //================================================Claude Code OAuth接口============================================================
  223. /**
  224. * OAuth认证验证方法
  225. */
  226. private Long authenticateOAuth(HttpServletRequest request) {
  227. String authHeader = request.getHeader("Authorization");
  228. if (authHeader == null || !authHeader.startsWith("Bearer ")) {
  229. throw BusinessRuntimeException.getInstance("OAuth token required");
  230. }
  231. String tokenValue = authHeader.substring(7); // 移除"Bearer "前缀
  232. // 验证token
  233. OAuthToken token = oAuthClaudeCodeService.validateToken(null, tokenValue);
  234. if (token == null) {
  235. throw BusinessRuntimeException.getInstance("Invalid or expired token");
  236. }
  237. return token.getUserId();
  238. }
  239. /**
  240. * OAuth授权端点
  241. */
  242. @GetMapping("/authorize")
  243. public Result<String> authorize(@RequestParam(name = "client_id") String clientId,
  244. @RequestParam String state) throws Exception {
  245. // 验证参数
  246. if (clientId == null || clientId.isEmpty() ||
  247. state == null || state.isEmpty()) {
  248. throw BusinessRuntimeException.getInstance("缺少必填参数");
  249. }
  250. if (!StpUserUtil.isLogin()) {
  251. throw BusinessRuntimeException.getInstance("请先登录");
  252. } else {
  253. Long userId = StpUserUtil.getLoginIdAsLong();
  254. String token = oAuthClaudeCodeService.generateAccessToken(userId, clientId);
  255. if (StrUtil.isNotBlank(token)) {
  256. log.info("OAuth授权成功: userId={}, clientId={}, token={}", userId, clientId, token.substring(0, 8) + "...");
  257. }
  258. return GatewayResponse.SUCCESS.newBuilder().toResult(token);
  259. }
  260. }
  261. /**
  262. * Token验证端点
  263. */
  264. @PostMapping("/verify-token")
  265. public Map<String, Object> verifyToken(@RequestBody Map<String, String> request) {
  266. try {
  267. String token = request.get("token");
  268. String code = request.get("code");
  269. String clientId = request.get("client_id");
  270. String clientSecret = request.get("client_secret");
  271. // 验证客户端凭据
  272. OAuthClient client = oAuthClaudeCodeService.validateClient(clientId, clientSecret);
  273. if (client == null) {
  274. throw BusinessRuntimeException.getInstance("Invalid client credentials");
  275. }
  276. // 验证token
  277. OAuthToken oauthToken = oAuthClaudeCodeService.validateToken(code, token);
  278. if (oauthToken == null) {
  279. throw BusinessRuntimeException.getInstance("Invalid or expired token");
  280. }
  281. User user = userService.getById(oauthToken.getUserId());
  282. // 返回用户信息
  283. Map<String, Object> result = new HashMap<>();
  284. result.put("authenticated", true);
  285. result.put("userId", oauthToken.getUserId());
  286. result.put("nickName", user.getNickname());
  287. result.put("headImg", user.getHeadimgurl());
  288. result.put("token", oauthToken.getKeyValue());
  289. result.put("email", getUserEmail(oauthToken.getUserId()));
  290. log.info("Token验证成功: userId={}, clientId={}", oauthToken.getUserId(), clientId);
  291. return result;
  292. } catch (Exception e) {
  293. log.error("Token验证失败", e);
  294. throw BusinessRuntimeException.getInstance("Token verification failed");
  295. }
  296. }
  297. /**
  298. * 验证客户端ID是否有效
  299. */
  300. private boolean isValidClientId(String clientId) {
  301. // 这里可以添加更严格的客户端ID验证逻辑
  302. return "vvxked850tk1ikvhpk07s47a2vnppa7t".equals(clientId);
  303. }
  304. /**
  305. * 获取用户邮箱
  306. */
  307. private String getUserEmail(Long userId) {
  308. // 这里需要根据实际的用户表结构来获取用户邮箱
  309. return "user" + userId + "@example.com";
  310. }
  311. /**
  312. * 获取公告列表
  313. */
  314. @GetMapping("/announcements")
  315. public Result<List<Announcement>> getAnnouncements(@RequestHeader(value = "Accept-Language", defaultValue = "zh-CN") String language) {
  316. try {
  317. // OAuth认证
  318. authenticateOAuth(request);
  319. // 处理语言参数
  320. if (language.startsWith("en")) {
  321. language = "en";
  322. } else {
  323. language = "zh-CN";
  324. }
  325. List<Announcement> announcements = announcementService.getActiveAnnouncements(language);
  326. return GatewayResponse.SUCCESS.newBuilder().toResult(announcements);
  327. } catch (Exception e) {
  328. throw BusinessRuntimeException.getInstance("Failed to fetch announcements");
  329. }
  330. }
  331. /**
  332. * 获取中继服务器列表
  333. */
  334. @GetMapping("/relays")
  335. public Result<List<RelayServer>> getRelays(@RequestParam(required = false) String domain) {
  336. try {
  337. // OAuth认证
  338. authenticateOAuth(request);
  339. List<RelayServer> relays = relayService.getAvailableRelays(domain);
  340. return GatewayResponse.SUCCESS.newBuilder().toResult(relays);
  341. } catch (Exception e) {
  342. throw BusinessRuntimeException.getInstance("Failed to fetch relay servers");
  343. }
  344. }
  345. /**
  346. * 获取中继服务器信息
  347. */
  348. @GetMapping("/relays/info")
  349. public Result<List<RelayServer>> getRelaysInfo(@RequestParam(required = false) String domain) {
  350. long userId = StpUserUtil.getLoginIdAsLong();
  351. MapBuilder builder = MapUtils.builder();
  352. if (StrUtil.isNotBlank(domain)) {
  353. builder.field(RelayServer::getHost, domain).op(Operator.Contain);
  354. }
  355. List<RelayServer> relayServers = beanSearcher.searchAll(RelayServer.class, builder.field(RelayServer::getStatus, 1).onlySelect(RelayServer::getHost, RelayServer::getLatencyMs).build());
  356. return GatewayResponse.SUCCESS.newBuilder().toResult(relayServers);
  357. }
  358. public void setClaudeCodeSkuCouponInfo(String dsCode, Long userId, List<GoodsDonSkuView> goodsDonSkuViews) {
  359. //渠道推广
  360. Coupon coupon = null;
  361. if (dsCode != null) {
  362. UserSharedDto popularizeDto = userService.getUserShredDtoByDsCode(dsCode);
  363. if (popularizeDto != null) {
  364. UserDistribute userDistribute = userDistributeMapper.selectOne(Wrappers.lambdaQuery(UserDistribute.class).eq(UserDistribute::getUserId, popularizeDto.getSharedId()).eq(UserDistribute::getDeleted, Boolean.TRUE).last("limit 1"));
  365. //渠道推广
  366. if (userDistribute != null) {
  367. Integer selectCount = couponDistributePopularizeMapper.selectCount(Wrappers.lambdaQuery(CouponDistributePopularize.class)
  368. .eq(CouponDistributePopularize::getDistributeId, userDistribute.getId())
  369. .eq(CouponDistributePopularize::getCouponId, Constant.DISTRIBUTE_CLAUDE_CODE_COUPON_ID)
  370. .eq(CouponDistributePopularize::getDeleted, Boolean.TRUE));
  371. //已配置使用渠道优惠码 未配置使用推荐优惠券
  372. coupon = couponMapper.selectById(selectCount > 0 ? Constant.DISTRIBUTE_CLAUDE_CODE_COUPON_ID : Constant.DISTRIBUTE_CLAUDE_CODE_NO_CODE_COUPON_ID);
  373. }
  374. }
  375. }
  376. Boolean isTjB = false;
  377. //非推广链接
  378. if (dsCode == null && coupon == null) {
  379. coupon = couponRecommendMapper.getRecommendCouponByGoodsId(Constant.CLAUDE_CODE_GOODS_ID);
  380. isTjB = true;
  381. }
  382. if (coupon == null) {
  383. return;
  384. }
  385. if (isTjB || coupon.getId().intValue() == Constant.DISTRIBUTE_CLAUDE_CODE_NO_CODE_COUPON_ID.intValue()) {
  386. int isTj = couponRecommendMapper.checkPresentRecommendByCouponId(coupon.getId());
  387. if (isTj == 0) {
  388. return;
  389. }
  390. }
  391. List<Long> couponSkuIds = couponSkuMapper.selectList(Wrappers.lambdaQuery(CouponSku.class).eq(CouponSku::getCouponId, coupon.getId()).eq(CouponSku::getDeleted, Boolean.TRUE)).stream().map(CouponSku::getSkuId).collect(Collectors.toList());
  392. //该优惠券是否已经使用
  393. if (userId != null) {
  394. Integer selectCount = couponUserMapper.selectCount(Wrappers.lambdaQuery(CouponUser.class).eq(CouponUser::getCouponId, coupon.getId()).eq(CouponUser::getUserId, userId));
  395. if (selectCount > 0) {
  396. Integer isUsed = couponUserMapper.selectCount(Wrappers.lambdaQuery(CouponUser.class)
  397. .eq(CouponUser::getCouponId, coupon.getId())
  398. .eq(CouponUser::getStatus, CouponUser.Status.unused)
  399. .eq(CouponUser::getUserId, userId)
  400. .lt(CouponUser::getValidStartTime, DateTime.now())
  401. .gt(CouponUser::getValidEndTime, DateTime.now()));
  402. if (isUsed == 0) {
  403. return;
  404. }
  405. }
  406. }
  407. for (GoodsDonSkuView sku : goodsDonSkuViews) {
  408. if (couponSkuIds.contains(sku.getSkuId())) {
  409. sku.setCouponId(coupon.getId());
  410. if (coupon.getType() == Coupon.Type.discount) {
  411. sku.setDiscount(coupon.getDiscount());
  412. sku.setDiscountPrice(sku.getMoney().multiply(coupon.getDiscount()));
  413. } else {
  414. sku.setReduceMoney(coupon.getReduceMoney());
  415. }
  416. }
  417. }
  418. }
  419. //======================================================================时间倍率===============================================================================
  420. /**
  421. * 获取系统中所有的时间倍率配置列表(包括已启用和已禁用的配置)
  422. */
  423. @GetMapping("/timeRate/configs")
  424. public Result<TimeRateConfigsResp> getAllConfigs() {
  425. TimeRateConfigsResp resp = claudeCodeService.getAllConfigs();
  426. if (resp != null && CollUtil.isNotEmpty(resp.getConfigs())) {
  427. resp.setConfigs(resp.getConfigs().stream().filter(time -> time.getIsActive()).collect(Collectors.toList()));
  428. }
  429. return GatewayResponse.SUCCESS.newBuilder().toResult(resp);
  430. }
  431. /**
  432. * claude code模型倍率
  433. */
  434. @GetMapping("/get/multiplier")
  435. public Result<List<ClaudeCodeMultiplier>> getMultiplier() {
  436. List<ClaudeCodeMultiplier> claudeCodeMultipliers = beanSearcher.searchAll(ClaudeCodeMultiplier.class, MapUtils.builder().build());
  437. return GatewayResponse.SUCCESS.newBuilder().toResult(claudeCodeMultipliers);
  438. }
  439. }