feat: improve xiaodian seckill flow
This commit is contained in:
@@ -72,6 +72,8 @@ type Product struct {
|
||||
CommodityName string `json:"commodityName"`
|
||||
Category string `json:"category"`
|
||||
Score int `json:"score"`
|
||||
PayType int `json:"payType,omitempty"`
|
||||
PayLabel string `json:"payLabel,omitempty"`
|
||||
Count int `json:"count"`
|
||||
Pic string `json:"pic"`
|
||||
Status int `json:"status"`
|
||||
@@ -104,6 +106,8 @@ type AccountView struct {
|
||||
type SeckillRequest struct {
|
||||
AccountProducts map[string]string `json:"accountProducts"`
|
||||
TargetTime string `json:"targetTime"`
|
||||
Attempts int `json:"attempts,omitempty"`
|
||||
DelayMs int `json:"delayMs,omitempty"`
|
||||
}
|
||||
|
||||
// FixedSeckillRequest 是和平小店固定次数/间隔抢购请求。
|
||||
|
||||
Reference in New Issue
Block a user