mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
06e8619a37
Align channel identity and bind flow across backend and app-facing layers, including generated swagger artifacts and package lock updates while excluding docs content changes.
14 lines
291 B
Go
14 lines
291 B
Go
package identity
|
|
|
|
import "strings"
|
|
|
|
const (
|
|
IdentityTypeHuman = "human"
|
|
IdentityTypeBot = "bot"
|
|
)
|
|
|
|
// IsBotIdentityType checks if the identity type is a bot.
|
|
func IsBotIdentityType(identityType string) bool {
|
|
return strings.EqualFold(strings.TrimSpace(identityType), IdentityTypeBot)
|
|
}
|