mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-02 22:10:25 +08:00
feat: 新增简易版ioc
This commit is contained in:
@@ -2,13 +2,16 @@ package router
|
||||
|
||||
import (
|
||||
"mayfly-go/internal/sys/api"
|
||||
"mayfly-go/pkg/biz"
|
||||
"mayfly-go/pkg/ioc"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func InitSystemRouter(router *gin.RouterGroup) {
|
||||
s := &api.System{}
|
||||
sys := router.Group("sysmsg")
|
||||
s := new(api.System)
|
||||
biz.ErrIsNil(ioc.Inject(s))
|
||||
|
||||
{
|
||||
sys.GET("", s.ConnectWs)
|
||||
|
||||
Reference in New Issue
Block a user