feat(seckill): 增加只读预演并强化代理风控切换

This commit is contained in:
yml
2026-11-22 14:52:46 +08:00
parent 70612a8f0c
commit e20907800d
20 changed files with 1916 additions and 40 deletions
+1
View File
@@ -27,6 +27,7 @@ type ProxyDrillItem struct {
type ProxyDrillResult struct {
Success bool `json:"success"`
Error string `json:"error,omitempty"`
Warning string `json:"warning,omitempty"`
Endpoint string `json:"endpoint"`
SimulatedAccounts int `json:"simulatedAccounts"`
AccountsPerProxy int `json:"accountsPerProxy"`
+14
View File
@@ -0,0 +1,14 @@
package types
// SeckillDrillStatus is the local read-only seckill rehearsal state.
type SeckillDrillStatus struct {
Active bool `json:"active"`
State string `json:"state"`
TriggerTime string `json:"triggerTime,omitempty"`
RemainingSeconds int `json:"remainingSeconds"`
TotalAccounts int `json:"totalAccounts"`
CompletedAccounts int `json:"completedAccounts"`
SuccessAccounts int `json:"successAccounts"`
FailedAccounts int `json:"failedAccounts"`
Message string `json:"message,omitempty"`
}