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
+6 -6
View File
@@ -30,17 +30,17 @@ type ChannelResponse struct {
LastLoginAt *int64 `json:"lastLoginAt"`
Phone string `json:"phone"`
SettlementDays *int `json:"settlementDays"`
ID uint64 `json:"id"`
ID uint64 `json:"id,string"`
SourceDB string `json:"sourceDb"`
PlatformName string `json:"platformName"`
Account string `json:"account"`
Nickname string `json:"nickname"`
Level *int `json:"promoteLevel"`
ParentID uint64 `json:"parentId"`
ParentID uint64 `json:"parentId,string"`
ParentName string `json:"parentName"`
RealName string `json:"realName"`
RegisterType *int `json:"registerType"`
BusierID uint64 `json:"busierId"`
BusierID uint64 `json:"busierId,string"`
BusierUserID *uint `json:"busierUserId"`
BusierDisplayName string `json:"busierDisplayName"`
Status *int `json:"status"`
@@ -62,7 +62,7 @@ type ChannelStatusCounts struct {
}
type ChannelBindOption struct {
SourceDB string `json:"sourceDb"`
PlatformBusierID uint64 `json:"platformBusierId"`
PlatformBusierID uint64 `json:"platformBusierId,string"`
Account string `json:"platformBusierAccount"`
UserID uint `json:"userId"`
}
@@ -74,7 +74,7 @@ type ChannelCreateRequest struct {
RegisterType *int `json:"registerType"`
}
type ChannelCreateResult struct {
ID uint64 `json:"id"`
ID uint64 `json:"id,string"`
SourceDB string `json:"sourceDb"`
}
type ChannelGameQuery struct {
@@ -82,7 +82,7 @@ type ChannelGameQuery struct {
PromoteID uint64 `form:"promoteId"`
}
type ChannelGameResponse struct {
GameID uint64 `json:"gameId"`
GameID uint64 `json:"gameId,string"`
GameName string `json:"gameName"`
RegisterCount int64 `json:"registerCount"`
PayAmount string `json:"payAmount"`