This commit is contained in:
flswld committed 2024-09-11 22:03:34 +08:00
1 parent 348a7f460e
commit a8b1e9002d
1 file changed
+1 -9
+1 -9
View File
@@ -441,7 +441,7 @@ func (d *Dao) DeleteAllUpdateChatMsgByUid(uid uint32) error {
return nil
}
func (d *Dao) LoadSceneBlockByUidAndBlockId(uid uint32, blockId uint32) (*model.SceneBlock, error) {
func (d *Dao) QuerySceneBlockByUidAndBlockId(uid uint32, blockId uint32) (*model.SceneBlock, error) {
db := d.db.Collection("player_scene_block")
result := db.FindOne(
context.TODO(),
@@ -458,11 +458,3 @@ func (d *Dao) LoadSceneBlockByUidAndBlockId(uid uint32, blockId uint32) (*model.
}
return sceneBlock, nil
}
func (d *Dao) SaveSceneBlock(sceneBlock *model.SceneBlock) error {
if sceneBlock.IsNew {
return d.InsertSceneBlock(sceneBlock)
} else {
return d.UpdateSceneBlock(sceneBlock)
}
}