model/followRecord.go
@@ -29,6 +29,7 @@ Client Client `json:"client" gorm:"foreignKey:ClientId"` Contact Contact `json:"contact" gorm:"foreignKey:ContactId"` ContactInformation ContactInformation `json:"contact_information" gorm:"foreignKey:ContactInformationId"` CodeStandID string `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:编码id"` gorm.Model `json:"-"` } @@ -196,3 +197,7 @@ slf.SearchMap = data return slf } func (slf *FollowRecordSearch) SetOrm(tx *gorm.DB) *FollowRecordSearch { slf.Orm = tx return slf }