feat:完善项目

This commit is contained in:
henry
2021-11-15 17:32:23 +08:00
parent f5e2063685
commit 78128277ff
27 changed files with 717 additions and 105 deletions

View File

@ -43,6 +43,11 @@ func DataTimeToDate(t string) time.Time {
return _time
}
func DataTimeForLayout(t string, layout string) time.Time {
_time, _ := time.ParseInLocation(layout, t, time.Local)
return _time
}
func GetMondayTime(t time.Time) time.Time {
offset := int(time.Monday - t.Weekday())