Query role

The query will return all permission groups owned by the role, as well as the permission items in each group

for example: http://api.shinemonitor.com/public/?sign=45a0317337cad1b975b7cc8e6ae35401daa5c356&salt=6799118618252297881&token=5b13e18eaa179d4bdce4cf2cc0e66eaa506c7f27ccac6b9e7beaa190ec0e386f&action=queryRoles&i18n=zh_CN&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

Parameter Description Required
action queryRoles True
i18n Internationalized language, refer to Multi-Language Support True

response:

Parameter Description Required
rid Role id True
name Role name True
group[x].name Permission group name False
group[x].i18n Internationalization description of permission group names, refer to Multi-Language Support False
group[x].item[x].name Permission Item Name False
group[x].item[x].i18n Internationalization description of permission items, refer to Multi-Language Support False
gts Role create time , zero time zone, format: yyyy-mm-dd hh:mi:ss True

Possible errors:

Response error code Description Details
0x0006 ERR_FORMAT_ERROR Format error
0x0170 ERR_NOT_FOUND_DEFINEDROLE Role not found
0x0184 ERR_NOT_FOUND_PERMISSION_GROUP Unable to find permission group
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 18:15:07

results matching ""

    No results matching ""