feat: add simple auth api

This commit is contained in:
weloe
2023-05-10 16:00:09 +08:00
parent a51ba879a1
commit a89c28076a
8 changed files with 157 additions and 0 deletions

View File

@@ -8,3 +8,12 @@ func HasNil(arr []interface{}) bool {
}
return false
}
func HasStr(arr []string, str string) bool {
for _, s := range arr {
if s == str {
return true
}
}
return false
}