{
  "openapi": "3.0.3",
  "info": {
    "title": "OpenAPI 接口 - 有状态会员系统支持校验（场景B）",
    "version": "1.0.0",
    "description": "OpenAPI 接口相关接口文档"
  },
  "paths": {
    "/openapi/memberships/check": {
      "post": {
        "summary": "有状态会员系统支持校验（场景B）",
        "description": "场景B：校验已登录用户的会员有效性，并校验该用户的会员类型是否已配置支持指定系统。适用于系统级访问控制，如黄金会员才能访问系统B。",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "用户登录令牌，格式 Bearer TOKEN",
            "example": "Bearer {token}"
          },
          {
            "name": "X-Site",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "站点标识"
          },
          {
            "name": "X-System-Code",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "系统编码，同时作为校验目标（会员类型是否支持该系统）"
          }
        ],
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "example": {
                  "code": "0000",
                  "message": "成功"
                }
              }
            }
          }
        }
      }
    }
  }
}