refactor: 代码结构调整

This commit is contained in:
meilin.huang
2022-09-09 18:26:08 +08:00
parent fb3f89c594
commit be00b90c1d
120 changed files with 944 additions and 561 deletions

View File

@@ -0,0 +1,21 @@
package persistence
import "mayfly-go/internal/machine/domain/repository"
var (
machineRepo repository.Machine = newMachineRepo()
machineFileRepo repository.MachineFile = newMachineFileRepo()
machineScriptRepo repository.MachineScript = newMachineScriptRepo()
)
func GetMachineRepo() repository.Machine {
return machineRepo
}
func GetMachineFileRepo() repository.MachineFile {
return machineFileRepo
}
func GetMachineScriptRepo() repository.MachineScript {
return machineScriptRepo
}