roles.yaml 752 字节
version: v1
kind: HttpApi
metadata:
  service: roles
  path: /roles
  endpoints:
    - method: roleAdd
      route:
        post: /
    - method: roleUpdate
      route:
        put: /{roleId}
    - method: roleList
      route:
        post: /search
    - method: roleGet
      route:
        get: /{roleId}
    - method: roleUserInfo
      route:
        get: /role-user/{roleId}
    - method: roleUserAdd
      route:
        post: /role-user
    - method: roleUserDelete
      route:
        delete: /role-user
    - method: roleUserBeforeEdit
      route:
        get: /role-user/before-edit
    - method: roleMenuBeforeEdit
      route:
        get: /role-menu/before-edit
    - method: roleMenuEdit
      route:
        put: /role-menu/{roleId}