添加utils.IsPtrTimeZero
This commit is contained in:
@@ -335,6 +335,10 @@ func IsTimeZero(timeValue time.Time) bool {
|
||||
return timeValue == DefaultTimeValue || timeValue == ZeroTimeValue
|
||||
}
|
||||
|
||||
func IsPtrTimeZero(timePtr *time.Time) bool {
|
||||
return timePtr == nil || *timePtr == DefaultTimeValue || *timePtr == ZeroTimeValue
|
||||
}
|
||||
|
||||
func HTTPBody2Values(data []byte, needDecode bool) (url.Values, error) {
|
||||
bodyStr := string(data)
|
||||
if needDecode {
|
||||
|
||||
Reference in New Issue
Block a user