|
|
@@ -6,16 +6,17 @@ import ( |
|
|
|
"xorm.io/xorm" |
|
|
|
) |
|
|
|
|
|
|
|
func NewSuperCloudIssuanceUserRobotBindSourceFollowGroupDb(engine *xorm.Engine) dao.SuperCloudIssuanceUserRobotBindSourceFollowGroupDao { |
|
|
|
return &SuperCloudIssuanceUserRobotBindSourceFollowGroupDb{Db: engine} |
|
|
|
func NewSuperCloudIssuanceUserRobotBindSourceFollowGroupDb(engine *xorm.Engine, session *xorm.Session) dao.SuperCloudIssuanceUserRobotBindSourceFollowGroupDao { |
|
|
|
return &SuperCloudIssuanceUserRobotBindSourceFollowGroupDb{Db: engine, Session: session} |
|
|
|
} |
|
|
|
|
|
|
|
type SuperCloudIssuanceUserRobotBindSourceFollowGroupDb struct { |
|
|
|
Db *xorm.Engine |
|
|
|
Db *xorm.Engine |
|
|
|
Session *xorm.Session |
|
|
|
} |
|
|
|
|
|
|
|
func (s SuperCloudIssuanceUserRobotBindSourceFollowGroupDb) BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceUserRobotBindSourceFollowGroup) (int64, error) { |
|
|
|
affected, err := s.Db.Insert(data) |
|
|
|
affected, err := s.Session.Insert(data) |
|
|
|
if err != nil { |
|
|
|
return 0, err |
|
|
|
} |
|
|
|