@@ -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 { | type SuperCloudIssuanceKeywordReplyWithActivateGroupListDao interface { | ||||
BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceKeywordReplyWithActivateGroupList) (int64, error) | BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceKeywordReplyWithActivateGroupList) (int64, error) | ||||
BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroupsSess(sess *xorm.Session, data []*models.SuperCloudIssuanceKeywordReplyWithActivateGroupList) (int64, error) | |||||
FindSuperCloudIssuanceKeywordReplyWithActivateGroupList(activateGroupId int) (mm *[]models.SuperCloudIssuanceKeywordReplyWithActivateGroupList, err error) | FindSuperCloudIssuanceKeywordReplyWithActivateGroupList(activateGroupId int) (mm *[]models.SuperCloudIssuanceKeywordReplyWithActivateGroupList, err error) | ||||
} | } |
@@ -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 { | type SuperCloudIssuanceUserRobotBindSourceFollowGroupDao interface { | ||||
BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceUserRobotBindSourceFollowGroup) (int64, error) | BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceUserRobotBindSourceFollowGroup) (int64, error) | ||||
@@ -1,4 +1,4 @@ | |||||
package implement | |||||
package implement | |||||
import ( | import ( | ||||
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao" | "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao" | ||||
@@ -30,3 +30,10 @@ func (s SuperCloudIssuanceKeywordReplyWithActivateGroupListDb) BatchAddSuperClou | |||||
} | } | ||||
return affected, nil | 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 | |||||
} |