package model import "time" type ModelO struct { ID int `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt *time.Time `sql:"index"` LastOperator string `gorm:"type:varchar(32)" json:"lastOperator"` // 最后操作员 } type ModelIDCU struct { ID int `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` } type ModelIDCUO struct { ID int `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` LastOperator string `gorm:"type:varchar(32)" json:"lastOperator"` // 最后操作员 }