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

@@ -418,7 +418,7 @@ func (h *MessageHandler) HandleSendMessage(c *gin.Context) {
Type: "message",
DetailType: params.DetailType,
ConversationID: conversationID,
Seq: strconv.FormatInt(msg.Seq, 10),
Seq: msg.Seq,
Segments: params.Segments,
SenderID: userID,
}