diff --git a/bid.go b/bid.go index d7ed034..9c10b14 100644 --- a/bid.go +++ b/bid.go @@ -1,5 +1,7 @@ package dw_sdk +import "strconv" + type BiddingType int8 const ( @@ -7,3 +9,8 @@ const ( BiddingType_Consign BiddingType = 5 //闪电直发 BiddingType_Fast_PreSale BiddingType = 8 //急速预售 ) + +func LoadBiddingType(s string) BiddingType { + i, _ := strconv.Atoi(s) + return BiddingType(i) +}