|
|
|
|
86
|
_, errcode := service.GetOrgFollowIsExist(adminUserInfo.Org.Id)
|
86
|
_, errcode := service.GetOrgFollowIsExist(adminUserInfo.Org.Id)
|
87
|
if errcode == gorm.ErrRecordNotFound {
|
87
|
if errcode == gorm.ErrRecordNotFound {
|
88
|
information, _ := service.GetAdminUserRoleInformation(0)
|
88
|
information, _ := service.GetAdminUserRoleInformation(0)
|
|
|
89
|
+ username, _ := service.GetMyOrgInformationFour(adminUserInfo.AdminUser.Id, adminUserInfo.Org.Id)
|
89
|
this.ServeSuccessJSON(map[string]interface{}{
|
90
|
this.ServeSuccessJSON(map[string]interface{}{
|
90
|
"orgs": orgs,
|
91
|
"orgs": orgs,
|
91
|
"apps": apps,
|
92
|
"apps": apps,
|
|
|
|
|
94
|
"isSubSuperAdmin": isSubSuperAdmin,
|
95
|
"isSubSuperAdmin": isSubSuperAdmin,
|
95
|
"cretor": cretor,
|
96
|
"cretor": cretor,
|
96
|
"information": information,
|
97
|
"information": information,
|
|
|
98
|
+ "username": username,
|
97
|
})
|
99
|
})
|
98
|
} else if errcode == nil {
|
100
|
} else if errcode == nil {
|
99
|
information, _ := service.GetAdminUserRoleInformation(adminUserInfo.Org.Id)
|
101
|
information, _ := service.GetAdminUserRoleInformation(adminUserInfo.Org.Id)
|
|
|
102
|
+ username, _ := service.GetMyOrgInformationFour(adminUserInfo.AdminUser.Id, adminUserInfo.Org.Id)
|
100
|
this.ServeSuccessJSON(map[string]interface{}{
|
103
|
this.ServeSuccessJSON(map[string]interface{}{
|
101
|
"orgs": orgs,
|
104
|
"orgs": orgs,
|
102
|
"apps": apps,
|
105
|
"apps": apps,
|
|
|
|
|
105
|
"isSubSuperAdmin": isSubSuperAdmin,
|
108
|
"isSubSuperAdmin": isSubSuperAdmin,
|
106
|
"cretor": cretor,
|
109
|
"cretor": cretor,
|
107
|
"information": information,
|
110
|
"information": information,
|
|
|
111
|
+ "username": username,
|
108
|
})
|
112
|
})
|
109
|
}
|
113
|
}
|
110
|
|
114
|
|