{
  "module": {
    "module": "会员管理",
    "moduleKey": "member"
  },
  "api": {
    "title": "切换会员套餐状态",
    "method": "PUT",
    "path": "/api/members/{id}/status",
    "description": "切换会员套餐的启用/禁用状态",
    "requestParams": {
      "body": {
        "status": "number｜必填，状态：1-有效，0-无效"
      },
      "path": [
        {
          "name": "id",
          "type": "string",
          "required": true,
          "description": "会员套餐ID"
        }
      ]
    },
    "responseExample": {
      "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
      }
    },
    "notes": [
      "该接口用于切换会员套餐的启用/禁用状态",
      "只有通过状态切换接口才能修改有效状态的会员套餐"
    ]
  }
}