Example #1
0
//获取单位用户
func (this *IndexController) GetOrgUserById() {
	orgId := this.Input().Get("orgId")
	users := models.GetOrgUsersById(orgId)
	this.Data["json"] = users
	this.ServeJson()
	this.StopRun()
}
Example #2
0
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
}