Refine the structure of this project.

This commit is contained in:
zicla
2019-04-26 14:32:15 +08:00
parent e88930e13a
commit c251ed9f1b
69 changed files with 5494 additions and 2251 deletions

View File

@ -1,7 +1,6 @@
package rest
import (
"github.com/nu7hatch/gouuid"
"time"
)
@ -46,7 +45,6 @@ func (this *SessionDao) Create(session *Session) *Session {
return session
}
//修改一个session
func (this *SessionDao) Save(session *Session) *Session {
@ -57,7 +55,6 @@ func (this *SessionDao) Save(session *Session) *Session {
return session
}
func (this *SessionDao) Delete(uuid string) {
session := this.CheckByUuid(uuid)
@ -69,7 +66,6 @@ func (this *SessionDao) Delete(uuid string) {
}
//执行清理操作
func (this *SessionDao) Cleanup() {
this.logger.Info("[SessionDao]执行清理清除数据库中所有Session记录。")