rename Token to User, the chat history function is ready

This commit is contained in:
RockYang
2023-03-28 16:03:41 +08:00
parent 95f9dfa9cb
commit ebc2041e8a
10 changed files with 261 additions and 141 deletions

View File

@@ -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
}
}