feat: add 4 and 5 track 2

This commit is contained in:
TAskMAster339
2026-10-01 20:46:42 +03:00
parent a9dda20540
commit b0fe7350c8
135 changed files with 45120 additions and 145 deletions
+4
View File
@@ -30,6 +30,8 @@ func (s *MessageStore) Create(
senderID string,
text string,
) (Message, error) {
ctx, cancel := boundedQuery(ctx)
defer cancel()
message := Message{
ID: uuid.New().String(),
ChatID: chatID,
@@ -48,6 +50,8 @@ func (s *MessageStore) ListPageByChat(
cursor *MessageCursor,
limit int,
) ([]Message, bool, error) {
ctx, cancel := boundedQuery(ctx)
defer cancel()
afterTime := time.Time{}
afterID := "00000000-0000-0000-0000-000000000000"
if cursor != nil {