获取用户订单列表接口,以及工具方法

This commit is contained in:
Hiven
2023-07-20 14:43:59 +08:00
parent 4a2230d90c
commit 52d47f78ac
13 changed files with 570 additions and 0 deletions

11
utils/format/time.go Normal file
View File

@@ -0,0 +1,11 @@
package format
import "time"
func TimeToFormat(t time.Time) string {
return time.Time(t).Format("2006-01-02 15:04:05")
}
func TimeIntToFormat(unixTime int64) string {
return time.Unix(unixTime, 0).Format("2006-01-02 15:04:05")
}