- mini program login

This commit is contained in:
gazebo
2018-12-27 16:49:32 +08:00
parent b1a7cfdaa8
commit 5adc5e61f3
16 changed files with 301 additions and 51 deletions

View File

@@ -82,6 +82,10 @@ func (ctx *Context) GetUserID() string {
return ctx.token
}
func (ctx *Context) GetLoginInfo() *auth.LoginInfo {
return ctx.userInfo
}
func (ctx *Context) GetRootTask() tasksch.ITask {
ctx.locker.RLock()
defer ctx.locker.RUnlock()