kick off the dav things

This commit is contained in:
zicla
2019-04-12 18:01:35 +08:00
parent 73076c3a54
commit 8edb7833a8
4 changed files with 42 additions and 13 deletions

22
rest/dav_service.go Normal file
View File

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