Enhance the message notification feature

This commit is contained in:
yoan
2024-09-24 22:39:42 +08:00
parent 4c9095400e
commit ac4904fb9a
18 changed files with 1322 additions and 337 deletions

View File

@@ -13,3 +13,10 @@ func BeijingTimeStr() string {
// 格式化为字符串
return now.Format("2006-01-02 15:04:05")
}
func GetTimeAfter(d time.Duration) string {
t := time.Now().UTC()
return t.Add(d).Format("2006-01-02 15:04:05")
}