添加会话授权支持

This commit is contained in:
RockYang
2023-03-21 18:12:24 +08:00
parent 3bb6814493
commit 005d219a8c
16 changed files with 403 additions and 73 deletions

View File

@@ -30,3 +30,12 @@ func Long2IP(ipInt int64) string {
func IsBlank(value string) bool {
return len(strings.TrimSpace(value)) == 0
}
func ContainsItem(slice []string, item string) bool {
for _, e := range slice {
if e == item {
return true
}
}
return false
}