完善聊天功能 初步构建十子棋功能

This commit is contained in:
2024-10-15 21:13:17 +08:00
parent 245875881c
commit b3cf948fd2
15 changed files with 303 additions and 84 deletions
+2
View File
@@ -1,6 +1,7 @@
package views
import (
"fmt"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/dialog"
@@ -72,6 +73,7 @@ func itemFollowUserView(w fyne.Window, data *models.Online, user *models.UserFol
}
if err == nil && newUser.Name != user.Name {
// 更新用户信息
fmt.Println("更新用户信息:", user, newUser)
repo.UserFollow.UnFollow(global.DB, user)
repo.UserFollow.Follow(global.DB, &models.UserFollows{Users: *newUser})
}