feat/prescription: more flow on medicine

This commit is contained in:
2025-11-14 08:39:50 +07:00
parent d3ddebb226
commit 9d26054e1b
2 changed files with 7 additions and 0 deletions

No files matched your search

@@ -1,6 +1,7 @@
package medicine
import (
"fmt"
e "simrs-vx/internal/domain/main-entities/medicine"
plh "simrs-vx/pkg/lib-helper"
@@ -47,6 +48,7 @@ func ReadListData(input e.ReadListDto, event *pl.Event, dbx ...*gorm.DB) ([]e.Me
tx = dg.I
}
fmt.Println(input.Includes)
tx = tx.
Model(&e.Medicine{}).
Scopes(gh.Preload(input.Includes)).