add good_id
All checks were successful
Build and push image / deploy (push) Successful in 2m36s

This commit is contained in:
2024-01-03 01:01:56 +03:00
parent 7acb7393a3
commit c4e71fca93
5 changed files with 53 additions and 0 deletions

View File

@ -86,6 +86,7 @@ func convertGoodsToGorm(cat *plati.Category, goods []*plati.Good) []*gorm.Good {
for _, g := range goods {
gormGood := gorm.Good{
ID: uuid.NewV4().String(),
GoodID: g.GoodID(),
Name: g.Name,
IDC: cat.ID,
IDR: cat.ParentID,