| 23 | } |
| 24 | |
| 25 | func (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 | |
| 60 | func (this *ShareController) RegisterRoutes() map[string]func(writer http.ResponseWriter, request *http.Request) { |
| 61 | |