system:
  - name: organization
    cname: '组织管理'
    value: 'organization'
    children:
      - name: member
        cname: '成员'
        value: 'member'
        access:
          - system.organization.member.view
          - system.organization.member.add
          - system.organization.member.edit
          - system.organization.member.delete
          - system.organization.member.block
          - system.organization.member.department.add
          - system.organization.member.department.edit
          - system.organization.member.department.delete
      - name: team_manager
        cname: '团队管理'
        desc: '团队管理'
        - system.organization.team.view
        - system.organization.team.add
        - system.organization.team.edit
        - system.organization.team.delete
        - system.organization.team.running
      - name: role_manager
        cname: '角色管理'
        desc: '角色管理'
        - system.organization.role.view
        - system.organization.role.system.view
        - system.organization.role.system.add
        - system.organization.role.system.edit
        - system.organization.role.system.delete
        - system.organization.role.team.view
        - system.organization.role.team.add
        - system.organization.role.team.edit
        - system.organization.role.team.delete
  - name: API Market
    cname: 'API市场'
    value: 'api_market'
    children:
      - name: service classification
        cname: '服务分类'
        value: 'service_classification'
        children:
        - system.api_market.service_classification.view
        - system.api_market.service_classification.add
        - system.api_market.service_classification.edit
        - system.api_market.service_classification.delete
  - name: devops
      cname: 运维
      value: 'devops'
      children:
        - name: cluster
          cname: 集群
          value: 'cluster'
          children:
            - system.devops.cluster.view
            - system.devops.cluster.add
            - system.devops.cluster.edit
            - system.devops.cluster.delete
        - name: ssl certificate
          cname: 证书
          value: 'ssl_certificate'
          children:
            - system.devops.ssl_certificate.view
            - system.devops.ssl_certificate.add
            - system.devops.ssl_certificate.edit
            - system.devops.ssl_certificate.delete
        - name: log configuration
          cname: 日志
          value: 'log_configuration'
          children:
            - system.devops.log_configuration.view
            - system.devops.log_configuration.add
            - system.devops.log_configuration.edit
            - system.devops.log_configuration.publish
            - system.devops.log_configuration.delete
  - name: workspace
    cname: 工作空间
    value: 'workspace'
    children:
      - name: application
        cname: 应用
        value: 'application'
        children:
          - system.workspace.application.view_all
      - name: service
        cname: 服务
        value: 'service'
        children:
          - system.workspace.service.view_all
      - name: team
        cname: 团队
        value: 'team'
        children:
          - system.workspace.team.view_all
      - name: api market
        cname: API市场
        value: 'api_market'
        children:
          - system.workspace.api_market.view
team:
  - name: service
    cname: 服务
    value: 'service'
    children:
      - name: api
        cname: API
        value: 'api'
        children:
          - team.service.api_doc.view
          - team.service.api_doc.add
          - team.service.api_doc.edit
      - name: route
        cname: route
        value: 'route'
        children:
          - team.service.router.view
          - team.service.router.add
          - team.service.router.edit
          - team.service.router.delete
      - name: upstream
        cname: 上游
        value: 'upstream'
        children:
          - team.service.upstream.view
          - team.service.upstream.add
          - team.service.upstream.edit
          - team.service.upstream.delete
      - name: release
        cname: 发布
        value: 'release'
        children:
          - team.service.release.view
          - team.service.release.add
          - team.service.release.rollback
          - team.service.release.delete
          - team.service.release.approval
          - team.service.release.online
          - team.service.release.cancel
          - team.service.release.stop
      - name: subscription management
        cname: 订阅方管理
        value: 'subscription'
        children:
          - team.service.subscription.view
          - team.service.subscription.approval
          - team.service.subscription.add
          - team.service.subscription.delete
      - name: service
        cname: 服务管理
        value: 'service'
        children:
          - team.service.service.view
          - team.service.service.add
          - team.service.service.edit
          - team.service.service.delete
  - name: application
    cname: 应用
    value: 'application'
    children:
      - name: subscription Service
        cname: 订阅服务
        value: 'subscription'
        children:
          - team.application.subscription.view
          - team.application.subscription.add
          - team.application.subscription.edit
          - team.application.subscription.delete
      - name: authorization
        cname: 访问授权
        value: 'authorization'
        children:
          - team.application.authorization.view
          - team.application.authorization.manager
          - team.application.authorization.add
          - team.application.authorization.edit
          - team.application.authorization.delete
      - name: application
        cname: 应用
        value: 'application'
        children:
          - team.application.application.view
          - team.application.application.add
          - team.application.application.edit
          - team.application.application.delete
  - name: team
    cname: 团队
    value: 'team'
    children:
      - name: member
        cname: 成员
        value: 'member'
        children:
          - team.team.member.view
          - team.team.member.add
          - team.team.member.edit
      - name: team
        cname: 团队管理
        value: 'team'
        children:
          - team.team.team.view
          - team.team.team.edit
