huangjiajun преди 4 месеца
родител
ревизия
d78f50990a
променени са 2 файла, в които са добавени 14 реда и са изтрити 1 реда
  1. +1
    -0
      src/dao/super_cloud_issuance_user_robot_bind_source_follow_group_dao.go
  2. +13
    -1
      src/implement/super_cloud_issuance_user_robot_bind_source_follow_group_db.go

+ 1
- 0
src/dao/super_cloud_issuance_user_robot_bind_source_follow_group_dao.go Целия файл

@@ -6,4 +6,5 @@ import (

type SuperCloudIssuanceUserRobotBindSourceFollowGroupDao interface {
BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceUserRobotBindSourceFollowGroup) (int64, error)
GetSuperCloudIssuanceUserRobotBindSourceFollowGroupsByChatRoomId(chatRoomId string) (m *models.SuperCloudIssuanceUserRobotBindSourceFollowGroup, err error)
}

+ 13
- 1
src/implement/super_cloud_issuance_user_robot_bind_source_follow_group_db.go Целия файл

@@ -1,8 +1,9 @@
package implement
package implement

import (
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao"
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models"
zhios_order_relate_logx "code.fnuoos.com/go_rely_warehouse/zyos_model.git/utils/logx"
"xorm.io/xorm"
)

@@ -22,3 +23,14 @@ func (s SuperCloudIssuanceUserRobotBindSourceFollowGroupDb) BatchAddSuperCloudIs
}
return affected, nil
}
func (s SuperCloudIssuanceUserRobotBindSourceFollowGroupDb) GetSuperCloudIssuanceUserRobotBindSourceFollowGroupsByChatRoomId(chatRoomId string) (m *models.SuperCloudIssuanceUserRobotBindSourceFollowGroup, err error) {
m = new(models.SuperCloudIssuanceUserRobotBindSourceFollowGroup)
has, err := s.Db.Where("follow_chat_room_id =? ", chatRoomId).Get(m)
if err != nil {
return nil, zhios_order_relate_logx.Error(err)
}
if has == false {
return nil, nil
}
return m, nil
}

Зареждане…
Отказ
Запис