Skip to content

RbacPermissionItem

Schema:RbacPermissionItem

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths: {}
components:
  schemas:
    RbacPermissionItem:
      type: object
      description: RBAC 权限(MENU/BUTTON/API)
      properties:
        id:
          type: integer
          format: int64
          description: 权限 ID
        parentId:
          type: integer
          format: int64
          description: 父权限 ID;顶级为 0
        permCode:
          type: string
          description: 权限码(仅 BUTTON 必填;MENU/API 可为空)
        permName:
          type: string
          description: 权限名称
        icon:
          type: string
          description: 权限图标(仅 MENU 生效)
        permType:
          type: string
          enum:
            - MENU
            - BUTTON
            - API
          description: MENU / BUTTON / API
        path:
          type: string
          description: MENU=前端路由;API=接口 path
        method:
          type: string
          description: API 的 HTTP 方法
        requireGoogleAuth:
          type: boolean
          description: 是否必须带 Header google-code
        googleAuthCacheSec:
          type: integer
          description: 谷歌码缓存秒数;0=不缓存
        sortNo:
          type: integer
          description: 排序号
        activeState:
          allOf:
            - $ref: '#/components/schemas/ActiveState'
          description: 启用状态
        isSystem:
          type: integer
          format: int64
          description: 是否系统内置;1=是
      x-apifox-orders:
        - id
        - parentId
        - permCode
        - permName
        - icon
        - permType
        - path
        - method
        - requireGoogleAuth
        - googleAuthCacheSec
        - sortNo
        - activeState
        - isSystem
      x-apifox-folder: ''
    ActiveState:
      type: string
      enum:
        - enabled
        - disabled
      description: 启用状态(与 common/consts.ActiveState 一致)
      x-apifox-folder: ''
  securitySchemes: {}
servers: []
security: []