Files
open-im-server/pkg/common/cachekey/black.go
T

16 lines
296 B
Go
Raw Normal View History

2024-01-08 15:39:39 +08:00
package cachekey
const (
blackIDsKey = "BLACK_IDS:"
isBlackKey = "IS_BLACK:"
)
func GetBlackIDsKey(ownerUserID string) string {
return blackIDsKey + ownerUserID
}
func GetIsBlackIDsKey(possibleBlackUserID, userID string) string {
2024-01-10 16:24:46 +08:00
return isBlackKey + userID + "-" + possibleBlackUserID
2024-01-08 15:39:39 +08:00
}