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

22 lines
321 B
Go
Raw Normal View History

2023-02-10 15:36:25 +08:00
package relation
2023-03-06 16:40:57 +08:00
import (
"OpenIM/pkg/utils"
"gorm.io/gorm"
)
2023-02-10 15:36:25 +08:00
type BatchUpdateGroupMember struct {
GroupID string
UserID string
Map map[string]any
}
type GroupSimpleUserID struct {
Hash uint64
MemberNum uint32
}
2023-03-06 16:40:57 +08:00
func IsNotFound(err error) bool {
return utils.Unwrap(err) == gorm.ErrRecordNotFound
}