feat:优化项目信息

This commit is contained in:
henry
2022-02-15 17:19:23 +08:00
parent cbc0ad1a41
commit dcb5948e91
45 changed files with 852 additions and 100 deletions

13
lib/order.go Normal file
View File

@ -0,0 +1,13 @@
package lib
import (
"fmt"
"math/rand"
"time"
)
// OrderNo 订单号
func OrderNo() string {
now := time.Now()
return fmt.Sprintf("%s%d%05d", now.Format("20060102"), now.Unix(), rand.Intn(100000))
}