添加mongodb使用,添加用户前端配置的上传及获取接口

This commit is contained in:
junleea 2025-05-20 19:04:38 +08:00
parent 97dfd18eb4
commit 0da4f833b8
1 changed files with 1 additions and 0 deletions

View File

@ -479,6 +479,7 @@ func SetUserUIConfigInfo(userID int, config proto.UserUIConfigInfo) error {
} }
if userConfig.UserID == 0 { if userConfig.UserID == 0 {
//没有则插入 //没有则插入
config.UserID = userID
id, err2 := dao.CreateUserUIConfigInfo(config) id, err2 := dao.CreateUserUIConfigInfo(config)
if err2 != nil { if err2 != nil {
log.Println("InsertUserUIConfigInfo error:", err) log.Println("InsertUserUIConfigInfo error:", err)