Finish the dashboard framework.

This commit is contained in:
zicla
2018-12-01 04:01:49 +08:00
parent 3f668dcc4b
commit a197f51c6a
10 changed files with 164 additions and 33 deletions

26
rest/dashboard_service.go Normal file
View 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
}
}