fix: validate explicit migrations and preserve large business ids

This commit is contained in:
Yvan
2026-11-06 07:00:05 +08:00
parent f6f2a4745e
commit 0f0ec2e6d7
53 changed files with 2653 additions and 1445 deletions
+9 -9
View File
@@ -22,25 +22,25 @@ type LedgerQuery struct {
type RegistrationResponse struct {
SourceDB string `json:"sourceDb"`
SourceDBLabel string `json:"sourceDbLabel"`
ID uint64 `json:"id"`
UserID uint64 `json:"userId"`
ID uint64 `json:"id,string"`
UserID uint64 `json:"userId,string"`
RegisterTime *int64 `json:"registerTime"`
FirstGameID *int64 `json:"fgameId"`
FirstGameID *int64 `json:"fgameId,string"`
FirstGameName string `json:"fgameName"`
TotalPayAmount *string `json:"totalPayAmount"`
RegisterIP string `json:"registerIp"`
DeviceName string `json:"deviceName"`
PromoteAccount string `json:"promoteAccount"`
PromoteID *int64 `json:"promoteId"`
PromoteID *int64 `json:"promoteId,string"`
BusierName string `json:"busierName"`
}
type SpendResponse struct {
SourceDB string `json:"sourceDb"`
SourceDBLabel string `json:"sourceDbLabel"`
ID uint64 `json:"id"`
UserID *int64 `json:"userId"`
ID uint64 `json:"id,string"`
UserID *int64 `json:"userId,string"`
OrderNumber string `json:"payOrderNumber"`
GameID *int64 `json:"gameId"`
GameID *int64 `json:"gameId,string"`
GameName string `json:"gameName"`
ServerID string `json:"serverId"`
ServerName string `json:"serverName"`
@@ -51,7 +51,7 @@ type SpendResponse struct {
PayStatus *int `json:"payStatus"`
IP string `json:"spendIp"`
PromoteAccount string `json:"promoteAccount"`
PromoteID *int64 `json:"promoteId"`
PromoteID *int64 `json:"promoteId,string"`
BusierName string `json:"busierName"`
}
type RegistrationPage struct {
@@ -73,6 +73,6 @@ type GameOptionQuery struct {
type GameOptionResponse struct {
SourceDB string `json:"sourceDb"`
SourceDBLabel string `json:"sourceDbLabel"`
GameID uint64 `json:"gameId"`
GameID uint64 `json:"gameId,string"`
GameName string `json:"gameName"`
}