优化结构
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
func deletedAtPointer(value gorm.DeletedAt) *time.Time {
|
||||
if !value.Valid {
|
||||
return nil
|
||||
}
|
||||
result := value.Time
|
||||
return &result
|
||||
}
|
||||
Reference in New Issue
Block a user