"helper" . "models" "net/http" "strconv" ) type Application struct { web.Page OffLogin bool OffRight bool RW http.ResponseWriter R *http.Request } var App = &Application{ Page: web.NewPage(web.PageParam{TimerDuration: "2h"}), } func (a *Application) Init() { a.Page.Init(a.RW, a.R) if a.OffLogin || a.checkLogin() { checkRight, _ := strconv.ParseBool(a.Environment["CheckRight"]) if !checkRight { a.getModule(true) } else { a.getRole() a.getModule(false) if !a.OffRight {
. "models" "net/http" "net/url" "strconv" ) type Application struct { web.Page OffLogin bool OffRight bool RW http.ResponseWriter R *http.Request } var App = &Application{ Page: web.NewPage(web.PageParam{}), } func (a *Application) Init() { a.Page.Init(a.RW, a.R) if a.OffLogin || a.checkLogin() { checkRight, _ := strconv.ParseBool(a.Environment["CheckRight"]) if checkRight { a.getRole() a.getModule(false) if !a.OffRight { a.checkRight() }