Finish half translation work.

This commit is contained in:
zicla
2019-05-04 23:36:05 +08:00
parent 900924d196
commit 5625149766
52 changed files with 613 additions and 950 deletions

View File

@ -9,11 +9,9 @@ type SessionService struct {
sessionDao *SessionDao
}
//初始化方法
func (this *SessionService) Init() {
this.BaseBean.Init()
//手动装填本实例的Bean. 这里必须要用中间变量方可。
b := core.CONTEXT.GetBean(this.userDao)
if b, ok := b.(*UserDao); ok {
this.userDao = b
@ -26,10 +24,10 @@ func (this *SessionService) Init() {
}
//执行清理操作
//System cleanup.
func (this *SessionService) Cleanup() {
this.logger.Info("[SessionService]执行清理清除缓存中所有Session记录共%d条。", core.CONTEXT.GetSessionCache().Count())
this.logger.Info("[SessionService] clean up. Delete all Session. total:%d", core.CONTEXT.GetSessionCache().Count())
core.CONTEXT.GetSessionCache().Truncate()
}