mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
23 lines
351 B
Go
23 lines
351 B
Go
package relation
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
|
|
)
|
|
|
|
type BatchUpdateGroupMember struct {
|
|
GroupID string
|
|
UserID string
|
|
Map map[string]any
|
|
}
|
|
|
|
type GroupSimpleUserID struct {
|
|
Hash uint64
|
|
MemberNum uint32
|
|
}
|
|
|
|
func IsNotFound(err error) bool {
|
|
return utils.Unwrap(err) == gorm.ErrRecordNotFound
|
|
}
|