mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-10 02:59:19 +08:00
friend
This commit is contained in:
parent
3f65376a35
commit
47637175d7
@ -13,11 +13,11 @@ type FriendRequestGorm struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewFriendRequestGorm(db *gorm.DB) relation.FriendRequestModelInterface {
|
func NewFriendRequestGorm(db *gorm.DB) relation.FriendRequestModelInterface {
|
||||||
return &FriendRequestGorm{NewMetaDB(db, &relation.FriendModel{})}
|
return &FriendRequestGorm{NewMetaDB(db, &relation.FriendRequestModel{})}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *FriendRequestGorm) NewTx(tx any) relation.FriendRequestModelInterface {
|
func (f *FriendRequestGorm) NewTx(tx any) relation.FriendRequestModelInterface {
|
||||||
return &FriendRequestGorm{NewMetaDB(tx.(*gorm.DB), &relation.FriendModel{})}
|
return &FriendRequestGorm{NewMetaDB(tx.(*gorm.DB), &relation.FriendRequestModel{})}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 插入多条记录
|
// 插入多条记录
|
||||||
|
Loading…
x
Reference in New Issue
Block a user