mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-16 04:36:35 +08:00
refactor: remove router、ioc is adjusted to inject by type
This commit is contained in:
12
server/internal/sys/api/api.go
Normal file
12
server/internal/sys/api/api.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package api
|
||||
|
||||
import "mayfly-go/pkg/ioc"
|
||||
|
||||
func InitIoc() {
|
||||
ioc.Register(new(Account))
|
||||
ioc.Register(new(Config))
|
||||
ioc.Register(new(Resource))
|
||||
ioc.Register(new(Role))
|
||||
ioc.Register(new(Syslog))
|
||||
ioc.Register(new(System))
|
||||
}
|
||||
Reference in New Issue
Block a user