You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/common/storage/model/user_mute.go

15 lines
677 B

package model
import "time"
// UserMute records a mute relationship: OwnerUserID has muted MutedUserID.
// Works for both friends and strangers. MuteEndTime == 0 means permanent mute.
// MuteDuration is the configured interval at set time: -1 permanent, >0 seconds (0 if unset / legacy).
type UserMute struct {
OwnerUserID string `bson:"owner_user_id"` // who set the mute
MutedUserID string `bson:"muted_user_id"` // who is muted
MuteEndTime int64 `bson:"mute_end_time"` // Unix seconds; 0 = permanent
MuteDuration int64 `bson:"mute_duration"` // configured interval: -1 permanent, >0 seconds
CreateTime time.Time `bson:"create_time"`
}