Finish the dashboard framework.
This commit is contained in:
26
rest/dashboard_service.go
Normal file
26
rest/dashboard_service.go
Normal file
@ -0,0 +1,26 @@
|
||||
package rest
|
||||
|
||||
//@Service
|
||||
type DashboardService struct {
|
||||
Bean
|
||||
dashboardDao *DashboardDao
|
||||
userDao *UserDao
|
||||
}
|
||||
|
||||
|
||||
//初始化方法
|
||||
func (this *DashboardService) Init() {
|
||||
this.Bean.Init()
|
||||
|
||||
//手动装填本实例的Bean. 这里必须要用中间变量方可。
|
||||
b := CONTEXT.GetBean(this.dashboardDao)
|
||||
if b, ok := b.(*DashboardDao); ok {
|
||||
this.dashboardDao = b
|
||||
}
|
||||
|
||||
b = CONTEXT.GetBean(this.userDao)
|
||||
if b, ok := b.(*UserDao); ok {
|
||||
this.userDao = b
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user