tarmogoyf

dto

Aug 22nd, 2023
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. @Data
  2. @AllArgsConstructor
  3. @NoArgsConstructor
  4. public class UserRequestDto {
  5. private UUID id;
  6. /**
  7. * Тип заявки
  8. */
  9. @NotNull
  10. private UserRequestType type;
  11. /**
  12. * Статус заявки
  13. */
  14. private UserRequestStatus status;
  15. /**
  16. * Пользователь создавший заявку
  17. */
  18. private UUID createdUserId;
  19.  
  20. /**
  21. * Компания создавшая заявку
  22. */
  23. private UUID companyId;
  24.  
  25. /**
  26. * Дата создания заявки
  27. */
  28. private LocalDateTime createdDateTime;
  29.  
  30. /**
  31. * Дата последнего обновления заявки
  32. */
  33. private LocalDateTime lastUpdatedDateTime;
  34.  
  35. /**
  36. * Описание заявки
  37. */
  38. private String description;
  39.  
  40. /**
  41. * Заголовок заявки
  42. */
  43. private String title;
  44.  
  45. private Map<String, Object> additionalInfo = new HashMap<>();
  46.  
  47. @NotEmpty
  48. private Map<String, Object> body = new HashMap<>();
  49.  
  50. private RequestSignatureScheme requestSignatureScheme;
  51.  
  52. private LocalDateTime expirationDate;
  53.  
  54. private UserRequestHistoryDto latestAction;
  55.  
  56. /**
  57. * Used by internal services. Don't use the field to transfer data to applications
  58. */
  59. @JsonIgnore
  60. @Valid
  61. private UserRequestBody transformedBody;
  62.  
  63. private UUID materializedObjectId;
  64.  
  65. private boolean read;
  66.  
  67. private String materializedObjectStatus;
  68.  
  69. }
  70.  
Advertisement
Add Comment
Please, Sign In to add comment