Refine the base bean.
This commit is contained in:
@ -10,7 +10,7 @@ import (
|
||||
|
||||
//@Service
|
||||
type UserService struct {
|
||||
Bean
|
||||
BaseBean
|
||||
userDao *UserDao
|
||||
sessionDao *SessionDao
|
||||
|
||||
@ -20,7 +20,7 @@ type UserService struct {
|
||||
|
||||
//初始化方法
|
||||
func (this *UserService) Init() {
|
||||
this.Bean.Init()
|
||||
this.BaseBean.Init()
|
||||
|
||||
//手动装填本实例的Bean. 这里必须要用中间变量方可。
|
||||
b := core.CONTEXT.GetBean(this.userDao)
|
||||
|
||||
Reference in New Issue
Block a user