mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-15 09:47:09 +08:00
20 lines
671 B
Go
20 lines
671 B
Go
package model
|
|
|
|
import (
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
"time"
|
|
)
|
|
|
|
// Friend represents the data structure for a friend relationship in MongoDB.
|
|
type Friend struct {
|
|
ID primitive.ObjectID `bson:"_id"`
|
|
OwnerUserID string `bson:"owner_user_id"`
|
|
FriendUserID string `bson:"friend_user_id"`
|
|
Remark string `bson:"remark"`
|
|
CreateTime time.Time `bson:"create_time"`
|
|
AddSource int32 `bson:"add_source"`
|
|
OperatorUserID string `bson:"operator_user_id"`
|
|
Ex string `bson:"ex"`
|
|
IsPinned bool `bson:"is_pinned"`
|
|
}
|