mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
22 lines
596 B
Go
22 lines
596 B
Go
package application
|
|
|
|
import "mayfly-go/internal/machine/infrastructure/persistence"
|
|
|
|
var (
|
|
machineApp Machine = newMachineApp(persistence.GetMachineRepo())
|
|
machineFileApp MachineFile = newMachineFileApp(persistence.GetMachineFileRepo(), persistence.GetMachineRepo())
|
|
machineScriptApp MachineScript = newMachineScriptApp(persistence.GetMachineScriptRepo(), persistence.GetMachineRepo())
|
|
)
|
|
|
|
func GetMachineApp() Machine {
|
|
return machineApp
|
|
}
|
|
|
|
func GetMachineFileApp() MachineFile {
|
|
return machineFileApp
|
|
}
|
|
|
|
func GetMachineScriptApp() MachineScript {
|
|
return machineScriptApp
|
|
}
|