增加用户管理
This commit is contained in:
@@ -250,3 +250,23 @@ func RoomTTLKey(roomID string) string {
|
||||
func PlayerTTLKey(playerID string) string {
|
||||
return "player:" + playerID + ":ttl"
|
||||
}
|
||||
|
||||
func CaptchaKey(captchaID string) string {
|
||||
return "captcha:" + captchaID
|
||||
}
|
||||
|
||||
func UserKey(username string) string {
|
||||
return "user:" + username
|
||||
}
|
||||
|
||||
func UserRoomKey(userID string) string {
|
||||
return "user:" + userID + ":room"
|
||||
}
|
||||
|
||||
func SessionKey(token string) string {
|
||||
return "session:" + token
|
||||
}
|
||||
|
||||
func UserIDToUsernameKey(userID string) string {
|
||||
return "user_id:" + userID + ":username"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user