|
@@ -366,8 +366,10 @@ func (this *NewRoleApiController) GetRolePurviews() {
|
366
|
366
|
adminUserInfo := this.GetMobileAdminUserInfo()
|
367
|
367
|
role_id, _ := this.GetInt64("id", 0)
|
368
|
368
|
rolePurview, _ := service.GetRoleAndPurviewById(role_id, adminUserInfo.Org.Id, adminUserInfo.App.Id)
|
|
369
|
+ role, _ := service.GetRoleByRoleID(role_id)
|
369
|
370
|
this.ServeSuccessJSON(map[string]interface{}{
|
370
|
371
|
"role_purview": rolePurview,
|
|
372
|
+ "role": role,
|
371
|
373
|
})
|
372
|
374
|
}
|
373
|
375
|
|
|
@@ -387,3 +389,10 @@ func (this *NewRoleApiController) AddRoleStaff() {
|
387
|
389
|
})
|
388
|
390
|
|
389
|
391
|
}
|
|
392
|
+
|
|
393
|
+func (this *NewRoleApiController) GetFuntionPurviews() {
|
|
394
|
+ functionPurview, _ := service.GetFunctionPurview()
|
|
395
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
396
|
+ "funtion_purview": functionPurview,
|
|
397
|
+ })
|
|
398
|
+}
|