Documentation ¶
Index ¶
Constants ¶
View Source
const ( STypePerson = 1 STypeGroup = 2 STypeRoom = 3 )
View Source
const (
CollectionName = "session"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { Id primitive.ObjectID `bson:"_id,omitempty" json:"id"` AppId string `bson:"appId" json:"app_id"` UserId string `bson:"userId" json:"user_id"` Type int `bson:"type" json:"type"` TargetId string `bson:"targetId" json:"target_id"` UTime time.Time `bson:"utime" json:"utime"` CTime time.Time `bson:"ctime" json:"ctime"` }
func FindUserSessions ¶
查询用户会话记录
func UpsertSession ¶
更新用户会话
Click to show internal directories.
Click to hide internal directories.