dengbiao 5 maanden geleden
bovenliggende
commit
42ea3066b6
1 gewijzigde bestanden met toevoegingen van 5 en 4 verwijderingen
  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 Bestand weergeven

@@ -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
}


Laden…
Annuleren
Opslaan