feat: 新增简易版ioc

This commit is contained in:
meilin.huang
2024-01-21 22:52:20 +08:00
parent f4a64b96a9
commit f27d3d200f
106 changed files with 815 additions and 707 deletions

View File

@@ -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)