From 60ff4df84809f229309a983df98e155642654591 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 6 Jul 2024 17:32:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E5=8F=91=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ssuance_keyword_reply_with_activate_group_list_dao.go | 8 ++++++-- ...d_issuance_user_robot_bind_source_follow_group_dao.go | 7 +++++-- ...issuance_keyword_reply_with_activate_group_list_db.go | 9 ++++++++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/dao/super_cloud_issuance_keyword_reply_with_activate_group_list_dao.go b/src/dao/super_cloud_issuance_keyword_reply_with_activate_group_list_dao.go index 1dfa302..1b07375 100644 --- a/src/dao/super_cloud_issuance_keyword_reply_with_activate_group_list_dao.go +++ b/src/dao/super_cloud_issuance_keyword_reply_with_activate_group_list_dao.go @@ -1,8 +1,12 @@ -package dao +package dao -import "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models" +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models" + "xorm.io/xorm" +) type SuperCloudIssuanceKeywordReplyWithActivateGroupListDao interface { BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceKeywordReplyWithActivateGroupList) (int64, error) + BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroupsSess(sess *xorm.Session, data []*models.SuperCloudIssuanceKeywordReplyWithActivateGroupList) (int64, error) FindSuperCloudIssuanceKeywordReplyWithActivateGroupList(activateGroupId int) (mm *[]models.SuperCloudIssuanceKeywordReplyWithActivateGroupList, err error) } diff --git a/src/dao/super_cloud_issuance_user_robot_bind_source_follow_group_dao.go b/src/dao/super_cloud_issuance_user_robot_bind_source_follow_group_dao.go index e47bf9d..19063f8 100644 --- a/src/dao/super_cloud_issuance_user_robot_bind_source_follow_group_dao.go +++ b/src/dao/super_cloud_issuance_user_robot_bind_source_follow_group_dao.go @@ -1,6 +1,9 @@ -package dao +package dao -import "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models" +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models" + "xorm.io/xorm" +) type SuperCloudIssuanceUserRobotBindSourceFollowGroupDao interface { BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceUserRobotBindSourceFollowGroup) (int64, error) diff --git a/src/implement/super_cloud_issuance_keyword_reply_with_activate_group_list_db.go b/src/implement/super_cloud_issuance_keyword_reply_with_activate_group_list_db.go index 11fe2b2..b17decc 100644 --- a/src/implement/super_cloud_issuance_keyword_reply_with_activate_group_list_db.go +++ b/src/implement/super_cloud_issuance_keyword_reply_with_activate_group_list_db.go @@ -1,4 +1,4 @@ -package implement +package implement import ( "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao" @@ -30,3 +30,10 @@ func (s SuperCloudIssuanceKeywordReplyWithActivateGroupListDb) BatchAddSuperClou } return affected, nil } +func (s SuperCloudIssuanceKeywordReplyWithActivateGroupListDb) BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroupsSess(sess *xorm.Session, data []*models.SuperCloudIssuanceKeywordReplyWithActivateGroupList) (int64, error) { + affected, err := sess.Insert(data) + if err != nil { + return 0, err + } + return affected, nil +}