update schema model

This commit is contained in:
Jay
2018-09-07 16:33:37 +08:00
parent 4e929eacaa
commit 0eb7d69a16
9 changed files with 121 additions and 0 deletions
+9
View File
@@ -42,3 +42,12 @@ func UserLogin(c *context.Context) {
c.Success(nil)
}
// UserLogout -
func UserLogout(c *context.Context) {
session := sessions.Default(c.Context)
session.Clear()
session.Save()
c.Success(nil)
}