Error code standardization

This commit is contained in:
skiffer-git
2023-02-14 22:04:03 +08:00
parent 64caafd6b6
commit 5baf05ba5e
8 changed files with 79 additions and 65 deletions
+21
View File
@@ -0,0 +1,21 @@
package check
import (
discoveryRegistry "Open_IM/pkg/discoveryregistry"
"context"
)
type BlackChecker struct {
zk discoveryRegistry.SvcDiscoveryRegistry
}
func NewBlackChecker(zk discoveryRegistry.SvcDiscoveryRegistry) *BlackChecker {
return &BlackChecker{
zk: zk,
}
}
// possibleBlackUserID是否被userID拉黑,也就是是否在userID的黑名单中
func (b *BlackChecker) IsBlocked(ctx context.Context, possibleBlackUserID, userID string) (bool, error) {
}