Documentation ¶ Index ¶ type Sum func (Sum) BeforeCreate(scope *gorm.Scope) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Sum ¶ type Sum struct { gorm.Model UUID string `json:"uuid"` IP string `json:"ip""` User string `json:"user" gorm:"unique"` Total int64 `json:"total" gorm:"default:0"` } func (Sum) BeforeCreate ¶ func (Sum) BeforeCreate(scope *gorm.Scope) error Source Files ¶ View all Source files sum.go Click to show internal directories. Click to hide internal directories.