DocumentEntity.java 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package com.dms.model;
  2. import java.time.LocalDateTime;
  3. import lombok.Data;
  4. /** doc_document 表实体(对齐 backend/dms/models/document.py)。 */
  5. @Data
  6. public class DocumentEntity {
  7. private Long id;
  8. private Long createdBy;
  9. private Long updatedBy;
  10. private LocalDateTime createdAt;
  11. private LocalDateTime updatedAt;
  12. private LocalDateTime deletedAt;
  13. private Boolean isDeleted;
  14. private Integer rowVersion;
  15. private String documentName;
  16. private String summary;
  17. private String description;
  18. private String documentType;
  19. private String documentStatus;
  20. private String securityLevel;
  21. private String visibilityType;
  22. private String attachmentType;
  23. private Long categoryId;
  24. private String categoryName;
  25. private String categoryPath;
  26. private Long organizationId;
  27. private String organizationName;
  28. private Long parentDocumentId;
  29. private Long rootDocumentId;
  30. /** JSON 数组字符串(tags),序列化由服务层处理。 */
  31. private String tags;
  32. private String originalFileName;
  33. private String fileRelativePath;
  34. private String fileExtension;
  35. private String mimeType;
  36. private Long fileSize;
  37. private String fileHash;
  38. private Integer sortNo;
  39. private Integer childCount;
  40. private Integer attachmentCount;
  41. private Long viewCount;
  42. private Long downloadCount;
  43. private String searchText;
  44. private String contentText;
  45. private String contentExtractStatus;
  46. /** 正文提取失败的脱敏原因(异常类型+首行信息),供管理员排障。 */
  47. private String contentExtractError;
  48. private LocalDateTime contentExtractedAt;
  49. private String createdByName;
  50. private String updatedByName;
  51. /** 方案密码锁:Argon2id 哈希(NULL=未设密)。 */
  52. private String passwordHash;
  53. private Boolean protectView;
  54. private Boolean protectDownload;
  55. private Boolean protectEdit;
  56. private Boolean protectDelete;
  57. private Boolean protectConfigPermission;
  58. private Boolean protectBindAttachment;
  59. private Boolean protectUnbindAttachment;
  60. }