add patient

This commit is contained in:
vanilia
2025-11-19 13:21:04 +07:00
parent 7ea69720bb
commit 8644bcaedc
26 changed files with 1454 additions and 79 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ func Delete(input e.DeleteDto) (*d.Data, error) {
return err
}
mwRunner.setMwType(pu.MWTPost)
mwRunner.setMwType(pu.MWTPre)
// Run pre-middleware
if err := mwRunner.RunDeleteMiddleware(deletePreMw, &input); err != nil {
return err
@@ -7,14 +7,14 @@ import (
// example of middleware
func init() {
createPreMw = append(createPreMw,
createMw{Name: "create-unit", Func: plugin.Create})
createMw{Name: "sync-create-unit", Func: plugin.Create})
createSimxLogMw = append(createSimxLogMw,
createLogMw{Name: "create-log", Func: plugin.CreateLog})
createLogMw{Name: "create-sync-log", Func: plugin.CreateLog})
updatePreMw = append(updatePreMw,
updateMw{Name: "update-unit", Func: plugin.Update})
updateMw{Name: "sync-update-unit", Func: plugin.Update})
deletePreMw = append(deletePreMw,
deleteMw{Name: "delete-unit", Func: plugin.Delete})
deleteMw{Name: "sync-delete-unit", Func: plugin.Delete})
}