Files
simrsx-be/internal/use-case/main-use-case/specialist/middleware.go
T
2025-11-25 13:56:18 +07:00

21 lines
555 B
Go

package specialist
import (
plugin "simrs-vx/internal/use-case/simgos-sync-plugin/new/specialist"
)
// example of middleware
func init() {
createPreMw = append(createPreMw,
createMw{Name: "sync-create-specialist", Func: plugin.Create})
createSimxLogMw = append(createSimxLogMw,
createLogMw{Name: "create-sync-log", Func: plugin.CreateLog})
updatePreMw = append(updatePreMw,
updateMw{Name: "sync-update-specialiast", Func: plugin.Update})
deletePreMw = append(deletePreMw,
deleteMw{Name: "sync-delete-specialist", Func: plugin.Delete})
}