{
  "openapi": "3.0.3",
  "info": {
    "title": "OpenAPI 接口 - 检查无状态会员有效性",
    "version": "1.0.0",
    "description": "OpenAPI 接口相关接口文档"
  },
  "paths": {
    "/openapi/stateless-members/check": {
      "post": {
        "summary": "检查无状态会员有效性",
        "description": "检查无状态会员是否还有效，通过X-Member-Key header中的混合JWT解密得到密钥，校验会员状态、过期时间、系统支持等，返回剩余天数。",
        "parameters": [
          {
            "name": "X-Member-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "会员密钥令牌，通过混合JWT加密"
          },
          {
            "name": "X-System-Code",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "系统编码，用于判断会员类型是否支持当前系统"
          },
          {
            "name": "X-Site",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "站点标识"
          }
        ],
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "example": {
                  "success": {
                    "code": "0000",
                    "message": "校验通过",
                    "data": {
                      "valid": true,
                      "remainingDays": 30,
                      "member": {
                        "id": "xxx",
                        "code": "SM0001",
                        "name": "无状态会员",
                        "memberTypeId": "yyy",
                        "effectiveDate": "2025-01-01",
                        "validityDays": 365
                      }
                    }
                  },
                  "failure": {
                    "code": "1506",
                    "message": "您绑定的会员无效",
                    "data": null
                  },
                  "failureExpired": {
                    "code": "1505",
                    "message": "传入的会员需要重新绑定",
                    "data": null
                  },
                  "failureMemberExpired": {
                    "code": "1507",
                    "message": "会员已过期",
                    "data": null
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}