添加mongodb使用,添加用户前端配置的上传及获取接口
This commit is contained in:
parent
97dfd18eb4
commit
0da4f833b8
|
|
@ -479,6 +479,7 @@ func SetUserUIConfigInfo(userID int, config proto.UserUIConfigInfo) error {
|
|||
}
|
||||
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