CodexUserInfoView.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. private Date expiryTime;
  32. private Long renewOrderId;
  33. /**
  34. * 续费升级skuId
  35. */
  36. private Long renewSkuId;
  37. /**
  38. * 续费升级过期时间
  39. */
  40. private Date renewExpiryTime;
  41. /**
  42. * 座位ID
  43. */
  44. private Long relationId;
  45. /**
  46. * Claude Code套餐信息
  47. */
  48. private ClaudeCodeInfo claudeCodeInfo;
  49. /**
  50. * 是否是购买 默认false
  51. */
  52. private Boolean isPay;
  53. @Getter
  54. @Setter
  55. @Builder
  56. public static class ClaudeCodeInfo {
  57. @JsonIgnore
  58. private Long userId;
  59. /**
  60. * 套餐名
  61. */
  62. private String planName;
  63. private Long relationId;
  64. /**
  65. * claude code每日限额
  66. */
  67. private Integer claudeDailyLimit;
  68. /**
  69. * Claude code 服务总额度
  70. */
  71. private Integer claudeQuota;
  72. /**
  73. * code 有效期
  74. */
  75. private Date expiryTime;
  76. /**
  77. * 续费升级skuId
  78. */
  79. private Long renewSkuId;
  80. /**
  81. * 续费升级过期时间
  82. */
  83. private Date renewExpiryTime;
  84. }
  85. }