This commit is contained in:
2026-11-24 19:50:03 +03:00
parent 20afc2c790
commit fd932c6de4
84 changed files with 3738 additions and 15 deletions
@@ -0,0 +1,16 @@
package ru.mtusi.messenger.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.UUID;
public record Message(
@JsonProperty("id") UUID id,
@JsonProperty("chat_id") UUID chatId,
@JsonProperty("sender_id") UUID senderId,
@JsonProperty("text") String text,
@JsonProperty("attachment_ids") List<UUID> attachmentIds,
@JsonProperty("created_at") OffsetDateTime createdAt
) {}