Files
simrsx-be/internal/use-case/main-use-case/unit/middleware.go
T
2025-11-17 11:05:21 +07:00

21 lines
500 B
Go

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