Commit 49170c8b authored by chenweijian's avatar chenweijian

trtc

parent eb9429c1
...@@ -68,10 +68,6 @@ func CreateGroup(model *domain.Model, groupInfo *GroupInfo) error { ...@@ -68,10 +68,6 @@ func CreateGroup(model *domain.Model, groupInfo *GroupInfo) error {
return model.Db.Create(groupInfo).Error return model.Db.Create(groupInfo).Error
} }
func CreateGroupTRTC(model *domain.Model, groupInfo *GroupInfo) error {
return model.DB().Exec("INSERT INTO hilo.group_trtc (im_group_id) VALUES(?);", groupInfo.ImGroupId).Error
}
func FindGroupByOwner(model *domain.Model, ownerId uint64) ([]GroupInfo, error) { func FindGroupByOwner(model *domain.Model, ownerId uint64) ([]GroupInfo, error) {
rows := make([]GroupInfo, 0) rows := make([]GroupInfo, 0)
err := model.Db.Where(&GroupInfo{Owner: ownerId}).Find(&rows).Error err := model.Db.Where(&GroupInfo{Owner: ownerId}).Find(&rows).Error
......
...@@ -43,7 +43,7 @@ func (s *GroupService) CreateGroup(userId uint64, g *group_m.GroupInfo) error { ...@@ -43,7 +43,7 @@ func (s *GroupService) CreateGroup(userId uint64, g *group_m.GroupInfo) error {
return err return err
} }
// 新房间标记成trtc房间 // 新房间标记成trtc房间
if err := group_m.CreateGroupTRTC(model, g); err != nil { if err := group_m.InitTRTC(model, g.ImGroupId); err != nil {
return err return err
} }
return nil return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment