{
  "openapi": "3.0.3",
  "info": {
    "title": "会员管理 - 切换会员套餐状态",
    "version": "1.0.0",
    "description": "会员管理相关接口文档"
  },
  "paths": {
    "/api/members/{id}/status": {
      "put": {
        "summary": "切换会员套餐状态",
        "description": "切换会员套餐的启用/禁用状态",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "会员套餐ID"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "number",
                    "description": "number｜必填，状态：1-有效，0-无效"
                  }
                },
                "required": [
                  "status"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "example": {
                  "success": {
                    "code": "0000",
                    "message": "状态更新成功",
                    "data": {
                      "id": 1,
                      "code": "MEM0001",
                      "name": "会员套餐名称",
                      "memberTypeId": "xxx",
                      "price": "99.99",
                      "validityDays": 30,
                      "description": "套餐描述",
                      "status": 1,
                      "updateTime": "2025-01-01T10:00:00.000Z"
                    }
                  },
                  "failure": {
                    "code": "4040",
                    "message": "会员套餐不存在",
                    "data": null
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}