From 7b0d1d396f14a24557e11d0e890a3c1ba7cd355d Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 17 Sep 2019 16:57:46 +0800 Subject: [PATCH] - up --- business/userstore/food_recipe.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/business/userstore/food_recipe.go b/business/userstore/food_recipe.go index c1639cf96..6db1ce593 100644 --- a/business/userstore/food_recipe.go +++ b/business/userstore/food_recipe.go @@ -48,7 +48,7 @@ func updateFoodRecipeItemAndStep(ctx *jxcontext.Context, db *dao.DaoDB, recipeID Index: int8(k + 1), Name: v.Name, } - dao.WrapAddIDCULEntity(item, ctx.GetUserName()) + dao.WrapAddIDCULDEntity(item, ctx.GetUserName()) if err = dao.CreateEntity(db, item); err != nil { return err } @@ -60,7 +60,7 @@ func updateFoodRecipeItemAndStep(ctx *jxcontext.Context, db *dao.DaoDB, recipeID ChoiceIndex: int8(k2 + 1), } - dao.WrapAddIDCULEntity(choice, ctx.GetUserName()) + dao.WrapAddIDCULDEntity(choice, ctx.GetUserName()) if err = dao.CreateEntity(db, choice); err != nil { return err } @@ -73,7 +73,7 @@ func updateFoodRecipeItemAndStep(ctx *jxcontext.Context, db *dao.DaoDB, recipeID Index: int8(k + 1), Name: v.Name, } - dao.WrapAddIDCULEntity(step, ctx.GetUserName()) + dao.WrapAddIDCULDEntity(step, ctx.GetUserName()) if err = dao.CreateEntity(db, step); err != nil { return err } @@ -101,7 +101,7 @@ func CreateFoodRecipe(ctx *jxcontext.Context, foodRecipe *model.FoodRecipe, item }() _, foodRecipe.AuthorID = ctx.GetMobileAndUserID() - dao.WrapAddIDCULEntity(foodRecipe, ctx.GetUserName()) + dao.WrapAddIDCULDEntity(foodRecipe, ctx.GetUserName()) if err = dao.CreateEntity(db, foodRecipe); err != nil { return err }