ClaudeCodeUserApiKeysView.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package com.cyksj.model.views;
  2. import com.fasterxml.jackson.annotation.JsonProperty;
  3. import lombok.Getter;
  4. import lombok.Setter;
  5. import java.util.Date;
  6. /**
  7. * 项目名: yhlxj11111111
  8. * 文件名: ClaudeCodeUserApiKeysView
  9. * 创建者: JavaZou
  10. * 创建时间:2025/8/8 12:13
  11. */
  12. @Getter
  13. @Setter
  14. public class ClaudeCodeUserApiKeysView {
  15. /**
  16. * API Key ID
  17. */
  18. private Long id;
  19. /**
  20. * 用户ID
  21. */
  22. private Long userId;
  23. /**
  24. * API Key值(仅创建时返回)
  25. */
  26. @JsonProperty("key_value")
  27. private String keyValue;
  28. /**
  29. * 最后使用时间
  30. */
  31. @JsonProperty("last_used_at")
  32. private Date lastUsedAt;
  33. /**
  34. * 最后使用IP
  35. */
  36. @JsonProperty("last_used_ip")
  37. private String lastUsedIp;
  38. /**
  39. * API Key名称
  40. */
  41. private String name;
  42. /**
  43. * 前缀
  44. */
  45. private String prefix;
  46. /**
  47. * 状态
  48. * active(活跃), inactive(禁用), revoked(已撤销)
  49. */
  50. private String status;
  51. /**
  52. * 创建时间
  53. */
  54. @JsonProperty("created_at")
  55. private Date createdAt;
  56. /**
  57. * 过期时间
  58. */
  59. @JsonProperty("expires_at")
  60. private Date expiresAt;
  61. }