{
  "module": {
    "module": "无状态会员管理",
    "moduleKey": "statelessMember"
  },
  "api": {
    "title": "切换无状态会员状态",
    "method": "PUT",
    "path": "/api/stateless-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": "SM0001",
          "name": "开放平台会员",
          "secretKey": "sk-xxx",
          "memberTypeId": "xxx",
          "effectiveDate": "2025-01-01",
          "validityDays": 365,
          "firstEffectiveDate": "2025-01-01",
          "status": 1,
          "updateTime": "2025-01-01T10:00:00.000Z"
        }
      },
      "failure": {
        "code": "4040",
        "message": "无状态会员不存在",
        "data": null
      }
    },
    "notes": [
      "该接口用于切换无状态会员的启用/禁用状态",
      "只有通过状态切换接口才能修改有效状态的无状态会员"
    ]
  }
}