mh_server/lib/utils/utils_test.go

23 lines
331 B
Go
Raw Permalink Normal View History

2021-06-30 02:12:05 +00:00
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())
}
}