mirror of
https://github.com/AynaLivePlayer/liveroom-sdk.git
synced 2025-12-13 15:58:14 +08:00
update webdm
This commit is contained in:
@@ -1 +1,16 @@
|
||||
package utils
|
||||
|
||||
import "liveroom"
|
||||
|
||||
func BilibiliGuardLevelToPrivilege(level int) int {
|
||||
switch level {
|
||||
case 1:
|
||||
return liveroom.PrivilegeUltimate
|
||||
case 2:
|
||||
return liveroom.PrivilegeAdvanced
|
||||
case 3:
|
||||
return liveroom.PrivilegeBasic
|
||||
default:
|
||||
return liveroom.PrivilegeNone
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user