mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
35 lines
740 B
Go
35 lines
740 B
Go
package application
|
|
|
|
import (
|
|
"mayfly-go/internal/machine/infrastructure/persistence"
|
|
)
|
|
|
|
var (
|
|
machineFileApp MachineFile = newMachineFileApp(persistence.GetMachineFileRepo(), persistence.GetMachineRepo())
|
|
|
|
machineScriptApp MachineScript = newMachineScriptApp(persistence.GetMachineScriptRepo(), persistence.GetMachineRepo())
|
|
|
|
authCertApp AuthCert = newAuthCertApp(persistence.GetAuthCertRepo())
|
|
|
|
machineApp Machine = newMachineApp(
|
|
persistence.GetMachineRepo(),
|
|
GetAuthCertApp(),
|
|
)
|
|
)
|
|
|
|
func GetMachineApp() Machine {
|
|
return machineApp
|
|
}
|
|
|
|
func GetMachineFileApp() MachineFile {
|
|
return machineFileApp
|
|
}
|
|
|
|
func GetMachineScriptApp() MachineScript {
|
|
return machineScriptApp
|
|
}
|
|
|
|
func GetAuthCertApp() AuthCert {
|
|
return authCertApp
|
|
}
|