Add some new api of preference.

This commit is contained in:
zicla
2017-12-25 14:32:18 +08:00
parent 00472c6b4d
commit a7e502ba9c
9 changed files with 199 additions and 11 deletions

View File

@ -0,0 +1,18 @@
package rest
//@Service
type PreferenceService struct {
Bean
preferenceDao *PreferenceDao
}
//初始化方法
func (this *PreferenceService) Init(context *Context) {
//手动装填本实例的Bean. 这里必须要用中间变量方可。
b := context.GetBean(this.preferenceDao)
if b, ok := b.(*PreferenceDao); ok {
this.preferenceDao = b
}
}