package model import ( "time" "gorm.io/plugin/soft_delete" ) type Inviter struct { ID uint `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at;type:int(11)"` Code string `gorm:"column:code;comment:邀请码" json:"code"` Name string `gorm:"column:name;comment:姓名" json:"name"` TelNum string `gorm:"column:tel_num;comment:手机号" json:"telNum"` }