mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-10 09:50:25 +08:00
refactor: remove router、ioc is adjusted to inject by type
This commit is contained in:
10
server/internal/auth/api/api.go
Normal file
10
server/internal/auth/api/api.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package api
|
||||
|
||||
import "mayfly-go/pkg/ioc"
|
||||
|
||||
func InitIoc() {
|
||||
ioc.Register(new(AccountLogin))
|
||||
ioc.Register(new(LdapLogin))
|
||||
ioc.Register(new(Oauth2Login))
|
||||
ioc.Register(new(Captcha))
|
||||
}
|
||||
Reference in New Issue
Block a user