- up
This commit is contained in:
@@ -71,10 +71,11 @@ func updateFoodRecipeItemAndStep(ctx *jxcontext.Context, db *dao.DaoDB, recipeID
|
|||||||
|
|
||||||
for k, v := range stepList {
|
for k, v := range stepList {
|
||||||
step := &model.FoodRecipeStep{
|
step := &model.FoodRecipeStep{
|
||||||
RecipeID: recipeID,
|
RecipeID: recipeID,
|
||||||
Index: int8(k + 1),
|
Index: int8(k + 1),
|
||||||
Name: v.Name,
|
Name: v.Name,
|
||||||
Img: v.Img,
|
Img: v.Img,
|
||||||
|
Description: v.Description,
|
||||||
}
|
}
|
||||||
dao.WrapAddIDCULDEntity(step, ctx.GetUserName())
|
dao.WrapAddIDCULDEntity(step, ctx.GetUserName())
|
||||||
if err = dao.CreateEntity(db, step); err != nil {
|
if err = dao.CreateEntity(db, step); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user