fix: int64 ID 字段序列化为 JSON string

This commit is contained in:
zetaloop
2026-05-03 05:54:48 +08:00
parent 83fa982749
commit cf639f1bca
22 changed files with 86 additions and 82 deletions
+5 -5
View File
@@ -57,7 +57,7 @@ type (
}
InvitationReq {
Id int64 `path:"id"`
PlayerId int64 `json:"playerId"`
PlayerId int64 `json:"playerId,string"`
}
)
@@ -101,11 +101,11 @@ type (
Id int64 `path:"id"`
}
ShopInvitation {
Id int64 `json:"id"`
ShopId int64 `json:"shopId"`
PlayerId int64 `json:"playerId"`
Id int64 `json:"id,string"`
ShopId int64 `json:"shopId,string"`
PlayerId int64 `json:"playerId,string"`
Status string `json:"status"`
InvitedBy int64 `json:"invitedBy"`
InvitedBy int64 `json:"invitedBy,string"`
CreatedAt int64 `json:"createdAt"`
RespondedAt int64 `json:"respondedAt,optional"`
}