dengbiao 5 months ago
parent
commit
42ea3066b6
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      src/implement/super_cloud_issuance_user_robot_bind_source_follow_group_db.go

+ 5
- 4
src/implement/super_cloud_issuance_user_robot_bind_source_follow_group_db.go View File

@@ -6,16 +6,17 @@ import (
"xorm.io/xorm" "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 { type SuperCloudIssuanceUserRobotBindSourceFollowGroupDb struct {
Db *xorm.Engine
Db *xorm.Engine
Session *xorm.Session
} }


func (s SuperCloudIssuanceUserRobotBindSourceFollowGroupDb) BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceUserRobotBindSourceFollowGroup) (int64, error) { func (s SuperCloudIssuanceUserRobotBindSourceFollowGroupDb) BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceUserRobotBindSourceFollowGroup) (int64, error) {
affected, err := s.Db.Insert(data)
affected, err := s.Session.Insert(data)
if err != nil { if err != nil {
return 0, err return 0, err
} }


Loading…
Cancel
Save