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