mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-01 12:16:37 +08:00
refactor: remove router、ioc is adjusted to inject by type
This commit is contained in:
@@ -35,8 +35,8 @@ type Resource interface {
|
||||
type resourceAppImpl struct {
|
||||
base.AppImpl[*entity.Resource, repository.Resource]
|
||||
|
||||
roleResourceRepo repository.RoleResource `inject:"RoleResourceRepo"`
|
||||
roleApp Role `inject:"RoleApp"`
|
||||
roleResourceRepo repository.RoleResource `inject:"T"`
|
||||
roleApp Role `inject:"T"`
|
||||
}
|
||||
|
||||
var _ (Resource) = (*resourceAppImpl)(nil)
|
||||
|
||||
Reference in New Issue
Block a user