mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-20 08:49:01 +08:00
errcode
This commit is contained in:
@@ -28,9 +28,7 @@ type Group struct {
|
||||
}
|
||||
|
||||
func NewGroupDB(db *gorm.DB) *Group {
|
||||
var group Group
|
||||
group.DB = db.Model(&Group{})
|
||||
return &group
|
||||
return &Group{DB: db}
|
||||
}
|
||||
|
||||
func (g *Group) Create(ctx context.Context, groups []*Group) (err error) {
|
||||
|
||||
Reference in New Issue
Block a user