feat:完善信息

This commit is contained in:
henry
2021-10-11 16:30:53 +08:00
parent 0dd46c0c9d
commit 7830ab0c86
15 changed files with 408 additions and 101 deletions

View File

@ -38,6 +38,11 @@ func DateTimeToTime(t string) time.Time {
return _time
}
func DataTimeToDate(t string) time.Time {
_time, _ := time.ParseInLocation("2006-01-02", t, time.Local)
return _time
}
func GetMondayTime(t time.Time) time.Time {
offset := int(time.Monday - t.Weekday())