- up
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user