{
  "openapi": "3.0.3",
  "info": {
    "title": "OpenAPI 接口 - 检查无状态会员功能有效性",
    "version": "1.0.0",
    "description": "OpenAPI 接口相关接口文档"
  },
  "paths": {
    "/openapi/stateless-members/functionCheck": {
      "post": {
        "summary": "检查无状态会员功能有效性",
        "description": "在检查无状态会员有效性的基础上，额外通过X-Function header检查会员功能模块中是否有该功能。",
        "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-Function",
            "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
                      },
                      "function": {
                        "code": "FUNC001",
                        "name": "功能名称",
                        "type": "Resource"
                      }
                    }
                  },
                  "failure": {
                    "code": "1508",
                    "message": "当前会员不支持当前功能",
                    "data": null
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}