CodexUserInfoView.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package com.cyksj.model.views;
  2. import com.fasterxml.jackson.annotation.JsonIgnore;
  3. import lombok.Builder;
  4. import lombok.Getter;
  5. import lombok.Setter;
  6. import java.util.Date;
  7. /**
  8. * 项目名: yhlxj11111111
  9. * 文件名: CodexUserInfoView
  10. * 创建者: Claude
  11. * 创建时间:2025/9/15
  12. */
  13. @Getter
  14. @Setter
  15. @Builder
  16. public class CodexUserInfoView {
  17. @JsonIgnore
  18. private Long userId;
  19. /**
  20. * 套餐名
  21. */
  22. private String planName;
  23. /**
  24. * 每日预算上限
  25. */
  26. private Integer openaiDailyLimit;
  27. /**
  28. * 每月预算上限
  29. */
  30. private Integer openaiQuota;
  31. /**
  32. * 座位ID
  33. */
  34. private Long relationId;
  35. /**
  36. * Claude Code套餐信息
  37. */
  38. private ClaudeCodeInfo claudeCodeInfo;
  39. @Getter
  40. @Setter
  41. @Builder
  42. public static class ClaudeCodeInfo {
  43. @JsonIgnore
  44. private Long userId;
  45. /**
  46. * 套餐名
  47. */
  48. private String planName;
  49. private Long relationId;
  50. /**
  51. * claude code积分上限
  52. */
  53. private Integer codePoints;
  54. /**
  55. * claude code每小时恢复积分
  56. */
  57. private Integer codeCreditRecovery;
  58. /**
  59. * code 有效期
  60. */
  61. private Date expiryTime;
  62. /**
  63. * 续费升级skuId
  64. */
  65. private Long renewSkuId;
  66. /**
  67. * 续费升级过期时间
  68. */
  69. private Date renewExpiryTime;
  70. }
  71. }