mh_server/lib/utils/utils_test.go
2021-06-30 10:12:05 +08:00

23 lines
331 B
Go

package utils
import (
"fmt"
"testing"
"time"
)
func TestStructToMap(t *testing.T) {
type GoodsSearchReq struct {
A int `json:"a"`
}
}
func TestGetSerial(t *testing.T) {
InitSnowFlakeByGo()
for i := 0; i <= 10000; i++ {
fmt.Println("订单编号:", GetSerialNo())
fmt.Println("时间戳:", time.Now().Unix())
}
}