aa
This commit is contained in:
@@ -5428,3 +5428,13 @@ func ReorderBrandCategories(ctx *jxcontext.Context, parentID, brandID int, categ
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func InsertBrandCategories(ctx *jxcontext.Context, brandID int) (err error) {
|
||||
var (
|
||||
db = dao.GetDB()
|
||||
)
|
||||
if err = dao.DeleteBrandCategroies2(db, brandID); err == nil {
|
||||
err = dao.InsertBrandCategories(db, ctx.GetUserName(), brandID)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user