mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-13 04:33:42 +08:00
rename Token to User, the chat history function is ready
This commit is contained in:
@@ -41,9 +41,9 @@ func ContainsStr(slice []string, item string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func ContainToken(slice []types.Token, token string) bool {
|
||||
func Containuser(slice []types.User, user string) bool {
|
||||
for _, e := range slice {
|
||||
if e.Name == token {
|
||||
if e.Name == user {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user