multi-tenant

This commit is contained in:
2024-06-19 11:15:39 +08:00
parent b9c9734b16
commit 7a785182b7
9 changed files with 247 additions and 55 deletions

View File

@@ -726,3 +726,12 @@ func RecurseStructToMap(obj any) map[string]any {
}
return out
}
func IsMember(target string, group []string) bool {
for _, str := range group {
if target == str {
return true
}
}
return false
}