mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-29 13:46:40 +08:00
db update
This commit is contained in:
parent
65cfb5c898
commit
f83e8659be
@ -16,6 +16,7 @@ type GroupModelInterface interface {
|
|||||||
Update(ctx context.Context, groups []*Group) (err error)
|
Update(ctx context.Context, groups []*Group) (err error)
|
||||||
Find(ctx context.Context, groupIDs []string) (groups []*Group, err error)
|
Find(ctx context.Context, groupIDs []string) (groups []*Group, err error)
|
||||||
Take(ctx context.Context, groupID string) (group *Group, err error)
|
Take(ctx context.Context, groupID string) (group *Group, err error)
|
||||||
|
DeleteTx(ctx context.Context, groupIDs []string) error
|
||||||
|
|
||||||
//mongo
|
//mongo
|
||||||
}
|
}
|
||||||
@ -90,3 +91,6 @@ func (*Group) Take(ctx context.Context, groupID string) (group *Group, err error
|
|||||||
err = utils.Wrap(GroupDB.Where("group_id = ?", groupID).Take(group).Error, "")
|
err = utils.Wrap(GroupDB.Where("group_id = ?", groupID).Take(group).Error, "")
|
||||||
return group, err
|
return group, err
|
||||||
}
|
}
|
||||||
|
func (*Group) DeleteTx(ctx context.Context, groupIDs []string) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user