enhance(charge):完成用户服务延期功能的测试。

This commit is contained in:
徐涛
2022-08-15 16:56:56 +08:00
parent f033691aa4
commit 224ae9b07d
4 changed files with 62 additions and 16 deletions

11
utils/time.go Normal file
View File

@@ -0,0 +1,11 @@
package utils
import "time"
func VeryBeginOfDate(date time.Time) time.Time {
return time.Date(date.Year(), date.Month(), date.Day(), 0, 0, 0, 0, date.Location())
}
func VeryEndOfDate(date time.Time) time.Time {
return time.Date(date.Year(), date.Month(), date.Day(), 23, 59, 59, 999999999, date.Location())
}