复制项目
This commit is contained in:
11
pkg/botstruct/check.go
Normal file
11
pkg/botstruct/check.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package botstruct
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"git.imall.cloud/openim/chat/pkg/common/constant"
|
||||
)
|
||||
|
||||
func IsAgentUserID(userID string) bool {
|
||||
return strings.HasPrefix(userID, constant.AgentUserIDPrefix)
|
||||
}
|
||||
Reference in New Issue
Block a user