//获取单位用户 func (this *IndexController) GetOrgUserById() { orgId := this.Input().Get("orgId") users := models.GetOrgUsersById(orgId) this.Data["json"] = users this.ServeJson() this.StopRun() }
func (this *IndexController) Get() { this.TplNames = "index.html" user := this.GetSession("user").(*models.User) orgs := models.GetRootOrg(user.TenantId) this.Data["orgs"] = orgs this.Data["User"] = user users := models.GetOrgUsersById("23622391649369951") this.Data["users"] = users }