order apis

This commit is contained in:
2026-08-26 17:32:54 +08:00
parent eabdc8772e
commit 299191749b
32 changed files with 1321 additions and 251 deletions
+5
View File
@@ -25,6 +25,11 @@ type CustomTime struct {
time.Time
}
func GetAfterMinutes(minutes int) CustomTime {
t := time.Now().In(AsiaShanghai).Add(time.Duration(minutes) * time.Minute)
return CustomTime{Time: t}
}
// Now 获取当前时间
func Now() CustomTime {
return CustomTime{time.Now().In(AsiaShanghai)}