Files
open-im-server/pkg/common/db/table/relation/utils.go
T

23 lines
351 B
Go
Raw Normal View History

2023-06-30 09:45:02 +08:00
package relation
import (
"gorm.io/gorm"
2023-07-03 16:29:22 +08:00
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
2023-06-30 09:45:02 +08:00
)
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
}