MCPcopy
hub / github.com/eyebluecn/tank / Init

Method Init

code/rest/share_controller.go:25–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func (this *ShareController) Init() {
26 this.BaseController.Init()
27
28 b := core.CONTEXT.GetBean(this.shareDao)
29 if b, ok := b.(*ShareDao); ok {
30 this.shareDao = b
31 }
32
33 b = core.CONTEXT.GetBean(this.bridgeDao)
34 if b, ok := b.(*BridgeDao); ok {
35 this.bridgeDao = b
36 }
37
38 b = core.CONTEXT.GetBean(this.matterDao)
39 if b, ok := b.(*MatterDao); ok {
40 this.matterDao = b
41 }
42
43 b = core.CONTEXT.GetBean(this.matterService)
44 if b, ok := b.(*MatterService); ok {
45 this.matterService = b
46 }
47
48 b = core.CONTEXT.GetBean(this.shareService)
49 if b, ok := b.(*ShareService); ok {
50 this.shareService = b
51 }
52
53 b = core.CONTEXT.GetBean(this.alienService)
54 if b, ok := b.(*AlienService); ok {
55 this.alienService = b
56 }
57
58}
59
60func (this *ShareController) RegisterRoutes() map[string]func(writer http.ResponseWriter, request *http.Request) {
61

Callers

nothing calls this directly

Calls 2

InitMethod · 0.65
GetBeanMethod · 0.65

Tested by

no test coverage detected