Token expired time fucntion is ready

This commit is contained in:
RockYang
2023-04-06 09:56:56 +08:00
parent d8cb2c220e
commit 7e1e408b64
6 changed files with 68 additions and 46 deletions

View File

@@ -2,7 +2,6 @@ package utils
import (
"math/rand"
"openai/types"
"strconv"
"strings"
"time"
@@ -40,12 +39,3 @@ func ContainsStr(slice []string, item string) bool {
}
return false
}
func ContainUser(slice []types.User, user string) bool {
for _, e := range slice {
if e.Name == user {
return true
}
}
return false
}