增加time兼容性

This commit is contained in:
hoteas
2022-06-14 09:52:49 +08:00
parent 3b558b22ff
commit 88372e992e
4 changed files with 19 additions and 16 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func (that *Obj) ToInt(err ...Error) int {
return ObjToInt(that.Data, &that.Error)
}
func (that *Obj) ToTime(err ...Error) time.Time {
func (that *Obj) ToTime(err ...Error) *time.Time {
if len(err) != 0 {
that.Error = err[0]
}