Refactor uuid to id in message handling & processing. (#6)

This commit is contained in:
windyboy
2024-08-14 14:29:24 +08:00
committed by GitHub
parent 8538153cfe
commit bafbbf470c
7 changed files with 33 additions and 28 deletions
+3
View File
@@ -8,6 +8,8 @@ import (
"strings"
"sync"
"time"
"github.com/google/uuid"
)
const (
@@ -211,6 +213,7 @@ func Parse(rawText string) *domain.ParsedMessage {
}
message.Parsed = true
message.BodyData = bodyData
message.Uuid = uuid.New().String()
return &message
}