refactor(dto): change seq field type from string to int64
All checks were successful
Build Backend / build (push) Successful in 2m2s
Build Backend / build-docker (push) Successful in 1m48s

Update the `Seq` field in `WSEventResponse` and its usages across message and websocket handlers to use `int64` instead of `string`. This aligns the data transfer object with the underlying message sequence type and removes unnecessary string conversions.
This commit is contained in:
2026-05-25 02:31:13 +08:00
parent 6bf87fec46
commit 3fc8b38184
4 changed files with 4 additions and 5 deletions

View File

@@ -242,7 +242,7 @@ func (s *pushServiceImpl) pushViaWebSocket(ctx context.Context, userID string, m
Type: "message",
DetailType: detailType,
ConversationID: message.ConversationID,
Seq: fmt.Sprintf("%d", message.Seq),
Seq: message.Seq,
Segments: segments,
SenderID: message.SenderID,
}