添加mongodb使用,添加用户前端配置的上传及获取接口
This commit is contained in:
parent
0da4f833b8
commit
0897d1e562
|
|
@ -477,9 +477,9 @@ func SetUserUIConfigInfo(userID int, config proto.UserUIConfigInfo) error {
|
|||
log.Println("SetUserUIConfigInfo error:", err)
|
||||
return err
|
||||
}
|
||||
config.UserID = userID
|
||||
if userConfig.UserID == 0 {
|
||||
//没有则插入
|
||||
config.UserID = userID
|
||||
id, err2 := dao.CreateUserUIConfigInfo(config)
|
||||
if err2 != nil {
|
||||
log.Println("InsertUserUIConfigInfo error:", err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue