mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-09 17:30:25 +08:00
feat: 新增简易版ioc
This commit is contained in:
@@ -12,11 +12,11 @@ import (
|
||||
)
|
||||
|
||||
type Index struct {
|
||||
TagApp tagapp.TagTree
|
||||
MachineApp machineapp.Machine
|
||||
DbApp dbapp.Db
|
||||
RedisApp redisapp.Redis
|
||||
MongoApp mongoapp.Mongo
|
||||
TagApp tagapp.TagTree `inject:"TagTreeApp"`
|
||||
MachineApp machineapp.Machine `inject:""`
|
||||
DbApp dbapp.Db `inject:""`
|
||||
RedisApp redisapp.Redis `inject:""`
|
||||
MongoApp mongoapp.Mongo `inject:""`
|
||||
}
|
||||
|
||||
func (i *Index) Count(rc *req.Ctx) {
|
||||
|
||||
Reference in New Issue
Block a user