feat LoadBiddingType

This commit is contained in:
timerzz 2024-09-02 21:42:48 +08:00
parent 404303356e
commit e5badfb077

7
bid.go
View File

@ -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)
}