Files
Memoh/internal/identity/types.go
T
BBQ 06e8619a37 refactor(core): migrate channel identity and binding across app
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.
2026-02-11 14:51:58 +08:00

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)
}