user.yaml 1009 字节
version: v1
kind: HttpApi
metadata:
  service: user
  path: /user
  endpoints:
    - method: createUser
      route:
        post: /
    - method: updateUser
      route:
        put: /{userId}
    - method: getUser
      route:
        get: /{userId}
    - method: removeUser
      route:
        delete: /{userId}
    - method: listUser
      route:
        post: /search
    - method: getUserAccessMenus
      route:
        get: /{userId}/access-menus
      params:
        - name: menuCategory
    - method: getUserProfile
      route:
        get: /{userId}/profile
    - method: batchAdd
      route:
        post: /batch-add
    - method: batchEnable
      route:
        post: /batch-enable
    - method: batchResetPassword
      route:
        post: /batch-reset-password
    - method: updateUsersBase
      route:
        put: /{userId}/base-info   
    - method: createCooperator
      route:
        post: /cooperator
    - method: updateCooperator
      route:
        put: /cooperator/{userId}