package common

const (
	UserSourceLocal  = "local"
	UserSourceSynced = "synced"
)

// IsSyncedUser 通过 source 字段判断是否为同步用户
func IsSyncedUser(source string) bool {
	return source == UserSourceSynced
}

// IsLocalUser 通过 source 字段判断是否为本地用户（非 synced 即为 local）
func IsLocalUser(source string) bool {
	return source != UserSourceSynced
}
