1Panel/backend/app/model/base.go

10 lines
202 B
Go
Raw Normal View History

2022-09-01 16:48:43 +08:00
package model
import "time"
type BaseModel struct {
2022-09-23 16:33:55 +08:00
ID uint `gorm:"primarykey;AUTO_INCREMENT" json:"id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
2022-09-01 16:48:43 +08:00
}