Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

接口地址方法参数说明
/rest/gearsapi/1.0/permission/page/addPOST

{
    "pageId"65552,
    "usernameListView": ["admin","user01"],
    "usernameListEdit": ["admin","user01"],
    "groupListView": ["group1""group2"],
    "groupListEdidtgroupListEdit": ["group1""group2"]
}

增加指定用户及用户组的查看或者编辑权限
/rest/gearsapi/1.0/permission/page/removePOST

{
    "pageId"65552,
    "usernameListView": ["admin","user01"],
    "usernameListEdit": ["admin","user01"],
    "groupListView": ["group1""group2"],
    "groupListEdidtgroupListEdit": ["group1""group2"]
}

删除指定用户及用户组的查看或者编辑权限
/rest/gearsapi/1.0/permission/page/nonePOST{
    "pageId"65552
}
设定页面不设定权限

...

参数说明
 pageId数值需要授权的页面ID
usernameListView用户账户对列["admin","user01"],具有查看权限;可以为空
usernameListEdit用户组名称对列["group1","group2"],具有编辑权限;可以为空
groupListView用户账户对列["admin","user01"],具有查看权限;可以为空
groupListEdidtgroupListEdit用户组名称对列["group1","group2"],具有编辑权限;可以为空

...