unit finish

This commit is contained in:
vanilia
2025-11-17 11:05:21 +07:00
parent bbf98b7a40
commit ebb3500d34
14 changed files with 528 additions and 315 deletions
@@ -1,9 +1,20 @@
package unit
import (
plugin "simrs-vx/internal/use-case/simgos-sync-plugin/unit"
)
// example of middleware
// func init() {
// createPreMw = append(createPreMw,
// CreateMw{Name: "modif-input", Func: pm.ModifInput},
// CreateMw{Name: "check-data", Func: pm.CheckData},
// )
// }
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})
}