feat LoadBiddingType
This commit is contained in:
parent
404303356e
commit
e5badfb077
7
bid.go
7
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user