mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
feat: 新增简易版ioc
This commit is contained in:
@@ -2,8 +2,8 @@ package router
|
||||
|
||||
import (
|
||||
"mayfly-go/internal/machine/api"
|
||||
"mayfly-go/internal/machine/application"
|
||||
msgapp "mayfly-go/internal/msg/application"
|
||||
"mayfly-go/pkg/biz"
|
||||
"mayfly-go/pkg/ioc"
|
||||
"mayfly-go/pkg/req"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -12,10 +12,8 @@ import (
|
||||
func InitMachineFileRouter(router *gin.RouterGroup) {
|
||||
machineFile := router.Group("machines")
|
||||
|
||||
mf := &api.MachineFile{
|
||||
MachineFileApp: application.GetMachineFileApp(),
|
||||
MsgApp: msgapp.GetMsgApp(),
|
||||
}
|
||||
mf := new(api.MachineFile)
|
||||
biz.ErrIsNil(ioc.Inject(mf))
|
||||
|
||||
reqs := [...]*req.Conf{
|
||||
// 获取指定机器文件列表
|
||||
|
||||
Reference in New Issue
Block a user