routerAdd('POST', '/api/sdk-permission/context', function (e) {
    const guards = require(`${__hooks}/bai_api_pb_hooks/bai_api_shared/middlewares/requestGuards.js`)
    const permissionService = require(`${__hooks}/bai_api_pb_hooks/bai_api_shared/services/sdkPermissionService.js`)
    const { success } = require(`${__hooks}/bai_api_pb_hooks/bai_api_shared/utils/response.js`)

    guards.requireJson(e)
    guards.requireManagePlatformUser(e)

    const payload = guards.validateSdkPermissionContextBody(e)
    const data = permissionService.getManagementContext(payload.keyword)

    return success(e, '查询权限管理上下文成功', data)
})


