[
  {
    "id": "any_service",
    "lang": "zh",
    "targetPlatform": [
      "default",
      "private"
    ],
    "desc": "AnyService 提供了快速对接您的存量服务器、计算资源、已开发服务的能力。您通过简单配置接入后，即可为您的小程序获得无需域名及备案、免鉴权获取用户身份信息、请求数据加密、支持 AI SSE 协议的能力。\n\nAnyService 的适用场景：\n* 腾讯云轻量服务器上的服务供小程序调用\n* 腾讯云虚拟机上的服务供小程序调用\n* 腾讯云上的服务通过安全加密的链路供小程序调用\n",
    "mainData": {
      "codes": [
        {
          "code": "\n```js\nwx.cloud.init({\n    env: '{%ENV_ID%}',\n    traceUser: true,\n})\n\nconst result = await wx.cloud.callContainer({\n    path: '/api/users', // 后端 API 路径\n    method: 'POST', // HTTP 方法\n    header: {\n        'X-WX-SERVICE': 'tcbanyservice', // 固定值\n        'X-AnyService-Name': 'my-service', // 您的服务标识\n        'Content-Type': 'application/json'\n    },\n    data: {\n        name: '张三',\n        email: 'zhangsan@example.com'\n    }\n    // dataType: 'text'  // 可选：不要 SDK 自动解析 JSON 时使用\n})\n```\n            ",
          "docAddress": "https://docs.cloudbase.net/anyservice/usage",
          "title": "小程序"
        }
      ],
      "operations": [
        {
          "link": "https://docs.cloudbase.net/anyservice/intro",
          "text": "使用指南",
          "type": "weak"
        }
      ],
      "resources": [
        {
          "title": "AnyService 介绍",
          "items": [
            {
              "link": "https://docs.cloudbase.net/anyservice/intro",
              "text": "功能概述"
            },
            {
              "link": "https://docs.cloudbase.net/anyservice/quickstart",
              "text": "快速入门"
            },
            {
              "link": "https://docs.cloudbase.net/anyservice/usage",
              "text": "使用方法"
            }
          ]
        }
      ],
      "title": "AnyService 介绍"
    },
    "_id": "0a662134688719c7004383862c10de10",
    "_openid": "1524963278340493312",
    "_mainDep": "",
    "createdAt": "2025-07-28 14:33:43",
    "updatedAt": "2025-11-25 19:53:48",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1"
  },
  {
    "id": "lighthouse",
    "lang": "zh",
    "targetPlatform": [
      "default"
    ],
    "desc": "因产品策略调整，云开发将不再继续在环境内提供轻量应用服务器能力。调整方案可查看详情公告。",
    "mainData": {
      "codes": [
        {
          "code": "```javascript\nwx.cloud.init({\n    env: 'your-env-id',  // 替换为你的环境 ID\n    traceUser: true,\n})\n\nconst result = await wx.cloud.callContainer({\n    config: {\n        env: \"your-env-id\"  // 在调用时指定环境\n    },\n    header: {\n        \"X-WX-SERVICE\": \"tcbanyservice\",        // 【必填】固定值，指定云开发服务\n        \"X-Vm-Service\": \"lhins-xxxxxxxxx\",      // 【必填】替换为你的实例 ID\n        // 可以添加其他自定义 Header\n    },\n    path: \"/api/user/info\",     // API 路径\n    method: \"POST\",             // HTTP 方法\n    data: {                     // 请求参数\n        userId: 123\n    }\n})\n\nconsole.log('Response:', result.data)\n```",
          "title": "小程序",
          "docAddress": "https://docs.cloudbase.net/vm/access_vm"
        }
      ],
      "operations": [
        {
          "link": "https://docs.cloudbase.net/changelog/announcement/lighthouse-adjustment",
          "text": "下线公告",
          "type": "strong"
        }
      ],
      "resources": [
        {
          "title": "轻量应用服务器常用功能介绍",
          "items": []
        },
        {
          "title": "轻量应用服务器进阶",
          "items": []
        }
      ],
      "title": "云开发轻量应用服务器能力下线公告"
    },
    "_id": "2f6f1f4b6979c8270003283b7061b235",
    "_openid": "1955900585661755394",
    "_mainDep": "",
    "createdAt": "2026-01-28 16:26:15",
    "updatedAt": "2026-07-09 16:31:07",
    "owner": "chrisccchen",
    "createBy": "chrisccchen",
    "updateBy": "alfredhuang"
  },
  {
    "id": "identity",
    "lang": "zh",
    "targetPlatform": [
      "default",
      "private"
    ],
    "desc": "\t1. JS SDK 接入：可以在 Web / H5 中引入 JS SDK 使用\n2. HTTP API 接入：可以在 IOS、Android、服务端中使用\n3. 托管登录页：Web 端可以重定向使用，小程序端需要下载代码使用",
    "mainData": {
      "operations": [],
      "resources": [
        {
          "title": "开发者资源",
          "items": [
            {
              "link": "https://docs.cloudbase.net/api-reference/webv3/authentication",
              "text": "JS SDK"
            },
            {
              "link": "https://docs.cloudbase.net/http-api/auth/%E7%99%BB%E5%BD%95%E8%AE%A4%E8%AF%81%E6%8E%A5%E5%8F%A3",
              "text": "HTTP API"
            },
            {
              "link": "https://docs.cloudbase.net/lowcode/manage/auth",
              "text": "OpenAPI"
            }
          ]
        },
        {
          "title": "帮助文档",
          "items": [
            {
              "link": "https://docs.cloudbase.net/authentication-v2/auth/best-practice",
              "text": "最佳实践"
            },
            {
              "link": "https://cnb.cool/tencent/cloud/cloudbase/community/-/issues/new/choose",
              "text": "反馈Bug"
            },
            {
              "link": "https://docs.cloudbase.net/faq/login",
              "text": "常见问题"
            }
          ]
        }
      ],
      "title": "如何接入身份认证"
    },
    "_id": "4fbe2cb968becab901a667933e8ec951",
    "_openid": "1524963278340493312",
    "_mainDep": "",
    "createdAt": "2025-09-08 20:23:21",
    "updatedAt": "2025-09-18 11:43:45",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1"
  },
  {
    "id": "static_hosting",
    "lang": "zh",
    "targetPlatform": [
      "default",
      "private"
    ],
    "desc": "静态网站托管可以为您的 Web 应用、静态资源提供快速、安全的托管服务。只需要一个命令，并可以快速地部署静态资源，并且使用 CDN（内容分发网络）加快资源的访问速度。我们为您提供了静态托管的基本操作教学，点击下方按钮立即开始学习。",
    "mainData": {
      "operations": [
        {
          "link": "https://cloud.tencent.com/document/product/876/40270?from=console_document_search",
          "text": "开始学习"
        },
        {
          "link": "https://cloud.tencent.com/edu/learning/course-2910-54444",
          "text": "视频简介"
        }
      ],
      "resources": [
        {
          "title": "静态托管常用功能介绍",
          "items": [
            {
              "link": "https://cloud.tencent.com/document/product/876/123943",
              "text": "控制台操作指南"
            },
            {
              "link": "https://docs.cloudbase.net/cli-v1/hosting",
              "text": "CLI管理静态托管"
            },
            {
              "link": "https://docs.cloudbase.net/hosting/introduce",
              "text": "查看更多"
            }
          ]
        },
        {
          "title": "静态托管网站进阶实践",
          "items": [
            {
              "link": "https://docs.cloudbase.net/hosting/web-hosting",
              "text": "应用在线部署指南"
            },
            {
              "link": "https://docs.cloudbase.net/envconfig/staticpages/intro",
              "text": "静态托管安全配置"
            },
            {
              "link": "https://docs.cloudbase.net/hosting/faq",
              "text": "常见问题"
            }
          ]
        }
      ],
      "title": "静态网站托管快速入门"
    },
    "_id": "574aeb1668871af50043b33d3ea3f4e6",
    "_openid": "1524963278340493312",
    "_mainDep": "",
    "createdAt": "2025-07-28 14:38:45",
    "updatedAt": "2026-01-14 15:23:36",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "chrisccchen"
  },
  {
    "id": "storage",
    "lang": "zh",
    "targetPlatform": [
      "default",
      "private"
    ],
    "desc": "云存储提供稳定、安全、低成本、简单易用的云端存储服务，支持任意数量和形式的非结构化数据存储，如图片、文档、音频、视频、文件等。我们为您提供了云存储的基本操作教学，点击下方按钮立即开始学习。",
    "mainData": {
      "codes": [
        {
          "code": "\n```js\nwx.cloud.init({\n    env: '{%ENV_ID%}',\n    traceUser: true,\n})\n\n// 上传文件\nconst result = await wx.cloud.uploadFile({\n    cloudPath: 'example.png', // 上传至云端的路径\n    filePath: '', // 小程序临时文件路径，需结合小程序相关 API 获取\n  })\n```\n            ",
          "title": "小程序",
          "docAddress": "https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/guide/storage/api.html"
        },
        {
          "code": "\n```js\nimport cloudbase from '@cloudbase/js-sdk'\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n    region: '{%REGION%}'\n})\n\n// 匿名登录\nconst auth = app.auth();\nawait auth.signInAnonymously();\n\n// 上传文件\nconst result = await app.uploadFile({\n    cloudPath: 'photo/example.png', // 上传至云端的路径\n    filePath: document.getElementById('file').files[0], // 需要上传的文件，File 类型\n})\n```\n            ",
          "title": "Web",
          "docAddress": "https://docs.cloudbase.net/api-reference/webv3/storage"
        },
        {
          "code": "\n```js\nconst cloudbase = require('@cloudbase/node-sdk')\nconst fs = require('fs');\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n})\n\n// 上传文件\nconst result = await app.uploadFile({\n    cloudPath: 'photo/example.png', // 上传至云端的路径\n    fileContent: fs.createReadStream('test.jpg'),\n})\n```\n            ",
          "title": "云函数",
          "docAddress": "https://docs.cloudbase.net/api-reference/server/node-sdk/storage"
        },
        {
          "code": "\n```shell\ncurl -L 'https://{%ENV_ID%}.api.tcloudbasegateway.com/v1/storages/get-objects-upload-info' \\\n-H 'Content-Type: application/json' \\\n-H 'Accept: application/json' \\\n-H 'Authorization: Bearer <access_token>' \\\n-d '[\n  {\n    'objectId': 'file.jpg',\n    'signedHeader': {\n      'content-md5': [\n        'here-goes-md5'\n      ]\n    }\n  },\n  {\n    'object': 'already-exsited-object'\n  }\n]'\n```\n            ",
          "title": "HTTP",
          "docAddress": "https://docs.cloudbase.net/http-api/storage/%E4%BA%91%E5%AD%98%E5%82%A8"
        }
      ],
      "operations": [
        {
          "link": "https://docs.cloudbase.net/storage/introduce",
          "text": "使用指南",
          "type": "weak"
        }
      ],
      "resources": [
        {
          "title": "云存储常用功能介绍",
          "items": [
            {
              "link": "https://cloud.tencent.com/document/product/876/19374",
              "text": "文件临时链接"
            },
            {
              "link": "https://cloud.tencent.com/document/product/876/49182",
              "text": "扩展能力"
            },
            {
              "link": "https://cloud.tencent.com/document/product/876/49036",
              "text": "CLI 管理文件"
            },
            {
              "link": "https://cloud.tencent.com/document/product/876/49037",
              "text": "安全规则"
            },
            {
              "link": "https://cloud.tencent.com/document/product/876/19376",
              "text": "查看更多"
            }
          ]
        }
      ],
      "title": "云存储快速入门"
    },
    "_id": "58e739856887198f0044df763737dd70",
    "_openid": "1524963278340493312",
    "_mainDep": "",
    "createdAt": "2025-07-28 14:32:47",
    "updatedAt": "2025-12-30 15:39:44",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1"
  },
  {
    "id": "tcbr",
    "lang": "zh",
    "targetPlatform": [
      "private"
    ],
    "desc": "云托管（Tencent CloudBase Run）支持托管用任意语言和框架编写的容器化应用，为开发者提供高可用、可伸缩的容器云服务，避免应用开发过程中繁琐的服务器搭建及运维，使开发者可以专注于业务逻辑的实现，开发门槛更低，效率更高。软件化云托管当前支持“容器”模式。",
    "mainData": {
      "codes": [
        {
          "code": "\n```js\nwx.cloud.init({\n    env: '{%ENV_ID%}',\n    traceUser: true,\n})\n\n// 调用云托管服务\nconst result = await wx.cloud.callContainer({\n    config: {\n        env: '{%ENV_ID%}',\n    },\n    path: '/', // 填入业务自定义路径和参数，根目录为 /\n    method: 'GET', // 按照自己的业务开发，选择对应的方法\n    header: {\n        'X-WX-SERVICE': 'xxx', // 填入服务名称\n    }\n})\n```\n            ",
          "title": "小程序",
          "docAddress": "https://docs.cloudbase.net/run/develop/access/mini"
        },
        {
          "code": "\n```js\nimport cloudbase from '@cloudbase/js-sdk'\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n    region: '{%REGION%}'\n})\n\n// 匿名登录\nconst auth = app.auth();\nawait auth.signInAnonymously();\n\n// 调用云托管服务\nconst result = await app.callContainer({\n    name: 'xxx', // 服务名称\n    method: 'GET',\n    path: '/',\n    data: {\n        key1: 'test value 1',\n        key2: 'test value 2'\n    },\n})\n```\n            ",
          "title": "Web",
          "docAddress": "https://docs.cloudbase.net/api-reference/webv3/cloudrun"
        },
        {
          "code": "\n```js\nconst cloudbase = require('@cloudbase/node-sdk')\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n})\n\n// 调用云托管服务\nconst result = await app.callContainer({\n    name: 'xxx', // 服务名称\n    method: 'GET',\n    path: '/',\n    data: {\n        key1: 'test value 1',\n        key2: 'test value 2'\n    },\n})\n```\n            ",
          "title": "云函数",
          "docAddress": "https://docs.cloudbase.net/api-reference/server/node-sdk/cloudrun"
        },
        {
          "code": "\n```shell\ncurl -L 'https://{%ENV_ID%}.api.tcloudbasegateway.com/v1/cloudrun/:name/:anyPath' \\\n-H 'Accept: application/json' \\\n-H 'Authorization: Bearer <access_token>'\n```\n            ",
          "title": "HTTP API",
          "docAddress": "https://docs.cloudbase.net/http-api/cloudrun/cloudrun-get"
        }
      ],
      "operations": [
        {
          "link": "https://docs.cloudbase.net/run/quick-start/introduce",
          "text": "使用指南",
          "type": "weak"
        }
      ],
      "resources": [
        {
          "title": "云托管常用功能介绍",
          "items": [
            {
              "link": "https://docs.cloudbase.net/run/develop/developing-guide",
              "text": "开发说明"
            },
            {
              "link": "https://docs.cloudbase.net/run/develop/languages-frameworks/",
              "text": "语言框架"
            }
          ]
        },
        {
          "title": "云托管进阶",
          "items": [
            {
              "link": "https://docs.cloudbase.net/run/deploy/deploy/deploying-source-code",
              "text": "服务部署"
            },
            {
              "link": "https://docs.cloudbase.net/run/deploy/managing/revisions",
              "text": "版本管理"
            }
          ]
        }
      ],
      "title": "云托管快速入门"
    },
    "_id": "58e7398568871b93004514482e4b3626",
    "_openid": "1524963278340493312",
    "_mainDep": "",
    "createdAt": "2025-07-28 14:41:23",
    "updatedAt": "2025-12-11 11:15:42",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1"
  },
  {
    "id": "doc_db_model",
    "lang": "zh",
    "targetPlatform": [
      "default",
      "private"
    ],
    "desc": "数据模型是在文档型云数据库之上的 ORM 工具，使用时需预先定义数据字段。\n\n它提供了一系列特性来帮助开发者更高效地管理和操作数据，包括：类型校验、关系和高级查询、权限控制、内置 CMS 内容管理、自动应用生成以及 AI 数据分析支持。",
    "mainData": {
      "codes": [
        {
          "code": "\n```js\nimport cloudbase from '@cloudbase/js-sdk'\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n    region: '{%REGION%}'\n})\n\n// 匿名登录\nconst auth = app.auth();\nawait auth.signInAnonymously();\n\n// 获取模型实例\nconst models = app.models\n\n// 查询数据\nconst result = await models.todo.list()\n```\n            ",
          "title": "小程序",
          "docAddress": "https://docs.cloudbase.net/api-reference/webv3/model/fetch"
        },
        {
          "code": "\n```js\nimport cloudbase from '@cloudbase/js-sdk'\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n    region: '{%REGION%}'\n})\n\n// 匿名登录\nconst auth = app.auth();\nawait auth.signInAnonymously();\n\n// 获取模型实例\nconst models = app.models\n\n// 查询数据\nconst result = await models.todo.list()\n```\n            ",
          "title": "Web",
          "docAddress": "https://docs.cloudbase.net/api-reference/webv3/model/fetch"
        },
        {
          "code": "\n```js\nconst cloudbase = require('@cloudbase/node-sdk')\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n})\n\n// 获取模型实例\nconst models = app.models\n\n// 查询数据\nconst result = await models.todo.list()\n```\n            ",
          "title": "云函数",
          "docAddress": "https://docs.cloudbase.net/api-reference/server/node-sdk/model/fetch"
        },
        {
          "code": "\n```shell\ncurl -L 'https://{%ENV_ID%}.api.tcloudbasegateway.com/v1/model/prod/:modelName/list' \\\n-H 'Accept: application/json' \\\n-H 'Authorization: Bearer <access_token>'\n```\n",
          "title": "HTTP API",
          "docAddress": "https://docs.cloudbase.net/http-api/model/get-records-easy"
        }
      ],
      "operations": [
        {
          "link": "https://docs.cloudbase.net/model/introduce",
          "text": "使用指南",
          "type": "weak"
        }
      ],
      "resources": [
        {
          "title": "常用功能介绍",
          "items": [
            {
              "link": "https://docs.cloudbase.net/database/data-field",
              "text": "字段类型介绍"
            },
            {
              "link": "https://docs.cloudbase.net/model/sdk-reference/model",
              "text": "增删查改操作"
            },
            {
              "link": "https://docs.cloudbase.net/model/select",
              "text": "复杂查询操作"
            },
            {
              "link": "https://docs.cloudbase.net/model/config/relation",
              "text": "关联关系处理"
            }
          ]
        },
        {
          "title": "数据模型进阶",
          "items": [
            {
              "link": "https://docs.cloudbase.net/model/cli",
              "text": "CLI 管理模型"
            },
            {
              "link": "https://docs.cloudbase.net/model/sync-schema",
              "text": "同步模型定义"
            }
          ]
        }
      ],
      "title": "数据模型快速入门"
    },
    "_id": "668ca01e68871a8b00429b1c6910f5d1",
    "_openid": "1524963278340493312",
    "_mainDep": "",
    "createdAt": "2025-07-28 14:36:59",
    "updatedAt": "2025-11-25 19:44:57",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1"
  },
  {
    "id": "mysql_db",
    "lang": "zh",
    "targetPlatform": [
      "default",
      "private"
    ],
    "desc": "MySQL 云数据库是一种基于云平台的关系型数据库，其中数据以表格形式组织。它特别适用于处理表之间关系复杂的场景，例如订单管理系统。\n\n数据模型是在 MySQL 云数据库之上的 ORM 工具。它提供了一系列特性来帮助开发者更高效地管理和操作数据，包括：类型校验、关系和高级查询、权限控制、内置 CMS 内容管理、自动应用生成以及 AI 数据分析支持。",
    "mainData": {
      "codes": [
        {
          "code": "\n```js\nimport cloudbase from '@cloudbase/js-sdk'\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n    region: '{%REGION%}'\n})\n\n// 匿名登录\nconst auth = app.auth();\nawait auth.signInAnonymously();\n\n// 获取模型实例\nconst models = app.models\n\n// 查询数据\nconst result = await models.todo.list()\n```\n            ",
          "title": "小程序",
          "docAddress": "https://docs.cloudbase.net/api-reference/webv3/model/fetch"
        },
        {
          "code": "\n```js\nimport cloudbase from '@cloudbase/js-sdk'\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n    region: '{%REGION%}'\n})\n\n// 匿名登录\nconst auth = app.auth();\nawait auth.signInAnonymously();\n\n// 获取模型实例\nconst models = app.models\n\n// 查询数据\nconst result = await models.todo.list()\n```\n            ",
          "title": "Web",
          "docAddress": "https://docs.cloudbase.net/api-reference/webv3/model/fetch"
        },
        {
          "code": "\n```js\nconst cloudbase = require('@cloudbase/node-sdk')\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n})\n\n// 获取模型实例\nconst models = app.models\n\n// 查询数据\nconst result = await models.todo.list()\n```\n            ",
          "title": "云函数",
          "docAddress": "https://docs.cloudbase.net/api-reference/server/node-sdk/model/fetch"
        },
        {
          "code": "\n```shell\ncurl -L 'https://{%ENV_ID%}.api.tcloudbasegateway.com/v1/model/prod/:modelName/list' \\\n-H 'Accept: application/json' \\\n-H 'Authorization: Bearer <access_token>'\n```\n",
          "title": "HTTP API",
          "docAddress": "https://docs.cloudbase.net/http-api/model/get-records-easy"
        }
      ],
      "operations": [
        {
          "link": "https://docs.cloudbase.net/model/introduce",
          "text": "使用指南",
          "type": "weak"
        }
      ],
      "resources": [
        {
          "title": "常用功能介绍",
          "items": [
            {
              "link": "https://docs.cloudbase.net/database/data-field",
              "text": "字段类型介绍"
            },
            {
              "link": "https://docs.cloudbase.net/model/sdk-reference/model",
              "text": "增删查改操作"
            },
            {
              "link": "https://docs.cloudbase.net/model/db-raw-query",
              "text": "SQL查询"
            },
            {
              "link": "https://docs.cloudbase.net/model/select",
              "text": "复杂查询操作"
            },
            {
              "link": "https://docs.cloudbase.net/model/config/relation",
              "text": "关联关系处理"
            }
          ]
        },
        {
          "title": "数据模型进阶",
          "items": [
            {
              "link": "https://docs.cloudbase.net/database/configuration/db/tdsql/data-index",
              "text": "索引管理"
            },
            {
              "link": "https://docs.cloudbase.net/database/configuration/db/tdsql/data-permission",
              "text": "数据权限管理"
            },
            {
              "link": "https://docs.cloudbase.net/database/configuration/db/tdsql/manage",
              "text": "导入导出"
            }
          ]
        }
      ],
      "title": "数据模型快速入门"
    },
    "_id": "72ce04bd68871ad00044d1bd1d92a2cf",
    "_openid": "1524963278340493312",
    "_mainDep": "",
    "createdAt": "2025-07-28 14:38:08",
    "updatedAt": "2025-11-25 19:51:06",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1"
  },
  {
    "id": "scf",
    "lang": "zh",
    "targetPlatform": [
      "default",
      "private"
    ],
    "desc": "云函数以函数的形式运行后端代码，响应 SDK 的调用或者 HTTP 请求。您的代码会储存在云端，并且在云上环境中运行，无需管理或运维自己的服务器。云函数的适合场景：\n* 快速编写后端逻辑\n* 弹性业务及请求\n* 小程序用户身份及权限管理",
    "mainData": {
      "codes": [
        {
          "code": "\n```js\nwx.cloud.init({\n    env: '{%ENV_ID%}',\n    traceUser: true,\n})\n\n// 调用云函数\nconst result = await wx.cloud.callFunction({\n    name: 'func_name', // 云函数名称\n    data: {\n        a: 1 // 传递给云函数的参数\n    },\n})\n```\n            ",
          "title": "小程序",
          "docAddress": "https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/guide/functions/getting-started.html"
        },
        {
          "code": "\n```js\nimport cloudbase from '@cloudbase/js-sdk'\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n    region: '{%REGION%}'\n})\n\n// 匿名登录\nconst auth = app.auth();\nawait auth.signInAnonymously();\n\n// 调用云函数\nconst result = await app.callFunction({\n    name: 'func_name', // 云函数名称\n    data: {\n        a: 1 // 传递给云函数的参数\n    },\n})\n```\n            ",
          "title": "Web",
          "docAddress": "https://docs.cloudbase.net/api-reference/webv3/functions"
        },
        {
          "code": "\n```js\nconst cloudbase = require('@cloudbase/node-sdk')\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n})\n\n// 调用云函数\nconst result = await app.callFunction({\n    name: 'func_name', // 云函数名称\n    data: {\n        a: 1 // 传递给云函数的参数\n    },\n})\n```\n",
          "title": "云函数",
          "docAddress": "https://docs.cloudbase.net/api-reference/server/node-sdk/functions"
        },
        {
          "code": "\n```shell\ncurl -L 'https://{%ENV_ID%}.api.tcloudbasegateway.com/v1/functions/:name' \\\n-H 'Content-Type: application/json' \\\n-H 'Accept: application/json' \\\n-H 'Authorization: Bearer <access_token>' \\\n-d '{}'  // 传递给云函数的参数\n```\n",
          "title": "HTTP API",
          "docAddress": "https://docs.cloudbase.net/http-api/functions/functions-post"
        }
      ],
      "operations": [
        {
          "link": "https://docs.cloudbase.net/cloud-function/quick-start",
          "text": "使用指南",
          "type": "weak"
        }
      ],
      "resources": [
        {
          "title": "常用功能介绍",
          "items": [
            {
              "link": "https://docs.cloudbase.net/cloud-function/quick-start",
              "text": "快速开始"
            },
            {
              "link": "https://docs.cloudbase.net/cloud-function/manage",
              "text": "函数管理"
            },
            {
              "link": "https://docs.cloudbase.net/cloud-function/install-nodejs-dependencies",
              "text": "依赖安装"
            },
            {
              "link": "https://docs.cloudbase.net/cloud-function/quick-start#%E8%B0%83%E7%94%A8%E4%BA%91%E5%87%BD%E6%95%B0",
              "text": "调用云函数"
            },
            {
              "link": "https://docs.cloudbase.net/cloud-function/test-log-monitor",
              "text": "运维管理"
            }
          ]
        },
        {
          "title": "进阶功能介绍",
          "items": [
            {
              "link": "https://docs.cloudbase.net/cloud-function/timer-trigger",
              "text": "定时触发器"
            },
            {
              "link": "https://docs.cloudbase.net/cloud-function/layer",
              "text": "层管理"
            },
            {
              "link": "https://docs.cloudbase.net/cloud-function/gray-release",
              "text": "灰度发布"
            },
            {
              "link": "https://docs.cloudbase.net/cloud-function/security-rules",
              "text": "安全规则"
            },
            {
              "link": "https://docs.cloudbase.net/cloud-function/introduce",
              "text": "查看更多"
            }
          ]
        },
        {
          "title": "使用云托管",
          "items": [
            {
              "link": "https://docs.cloudbase.net/cbrf/intro",
              "text": "函数型云托管介绍"
            },
            {
              "link": "https://docs.cloudbase.net/cbrf/how-to-migrate-to-cbrf",
              "text": "从云函数切换为函数型云托管"
            },
            {
              "link": "https://docs.cloudbase.net/cbrf/vs",
              "text": "方案对比"
            },
            {
              "link": "https://docs.cloudbase.net/cbrf/example",
              "text": "代码示例"
            },
            {
              "link": "https://docs.cloudbase.net/run/introduction",
              "text": "更多介绍"
            }
          ]
        }
      ],
      "title": "云函数快速入门"
    },
    "_id": "77cd31ad688719420043e3ab4a2e8df5",
    "_openid": "1524963278340493312",
    "_mainDep": "",
    "createdAt": "2025-07-28 14:31:30",
    "updatedAt": "2025-11-25 19:49:43",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1"
  },
  {
    "id": "tcbr",
    "lang": "zh",
    "targetPlatform": [
      "default"
    ],
    "desc": "云托管（Tencent CloudBase Run）支持托管用任意语言和框架编写的容器化应用，为开发者提供高可用、自动弹性伸缩的容器云服务。云托管适合在如下场景中使用：\n* 任意开发语言或开发框架编写的后端服务\n* 长时间运行的后台服务或任务\n* 接入大模型、Agent 等长连接服务",
    "mainData": {
      "codes": [
        {
          "code": "\n```js\n// 需确保小程序与目标云开发环境已完成关联(见: https://docs.cloudbase.net/quick-start/create-env)\n\nwx.cloud.init({\n    env: '{%ENV_ID%}',\n    traceUser: true,\n})\n\n// 调用云托管服务\nconst result = await wx.cloud.callContainer({\n    config: {\n        env: '{%ENV_ID%}',\n    },\n    path: '/', // 填入业务自定义路径和参数，根目录为 /\n    method: 'GET', // 按照自己的业务开发，选择对应的方法\n    header: {\n        'X-WX-SERVICE': 'xxx', // 填入服务名称\n    }\n})\n```\n            ",
          "title": "小程序",
          "docAddress": "https://docs.cloudbase.net/run/develop/access/mini"
        },
        {
          "code": "\n```js\nimport cloudbase from '@cloudbase/js-sdk'\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n    region: '{%REGION%}'\n})\n\n// 匿名登录\nconst auth = app.auth();\nawait auth.signInAnonymously();\n\n// 调用云托管服务\nconst result = await app.callContainer({\n    name: 'xxx', // 服务名称\n    method: 'GET',\n    path: '/',\n    data: {\n        key1: 'test value 1',\n        key2: 'test value 2'\n    },\n})\n```\n            ",
          "title": "Web",
          "docAddress": "https://docs.cloudbase.net/api-reference/webv3/cloudrun"
        },
        {
          "code": "\n```js\nconst cloudbase = require('@cloudbase/node-sdk')\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n})\n\n// 调用云托管服务\nconst result = await app.callContainer({\n    name: 'xxx', // 服务名称\n    method: 'GET',\n    path: '/',\n    data: {\n        key1: 'test value 1',\n        key2: 'test value 2'\n    },\n})\n```\n            ",
          "title": "云函数",
          "docAddress": "https://docs.cloudbase.net/api-reference/server/node-sdk/cloudrun"
        },
        {
          "code": "\n```shell\ncurl -L 'https://{%ENV_ID%}.api.tcloudbasegateway.com/v1/cloudrun/:name/:anyPath' \\\n-H 'Accept: application/json' \\\n-H 'Authorization: Bearer <access_token>'\n```\n            ",
          "title": "HTTP API",
          "docAddress": "https://docs.cloudbase.net/http-api/cloudrun/cloudrun-get"
        }
      ],
      "operations": [
        {
          "link": "https://docs.cloudbase.net/run/quick-start/introduce",
          "text": "使用指南",
          "type": "weak"
        }
      ],
      "resources": [
        {
          "title": "常用场景介绍",
          "items": [
            {
              "link": "https://docs.cloudbase.net/run/develop/languages-frameworks/",
              "text": "使用常用框架开发"
            },
            {
              "link": "https://docs.cloudbase.net/run/quick-start/introduce",
              "text": "使用多种语言开发"
            },
            {
              "link": "https://docs.cloudbase.net/run/develop/access/mini",
              "text": "从小程序调用服务"
            },
            {
              "link": "https://docs.cloudbase.net/cbrf/intro",
              "text": "使用函数方式开发"
            },
            {
              "link": "https://docs.cloudbase.net/run/develop/access/websocket",
              "text": "实现 Websocket"
            }
          ]
        },
        {
          "title": "使用指南",
          "items": [
            {
              "link": "https://docs.cloudbase.net/run/quick-start/introduce",
              "text": "快速开始"
            },
            {
              "link": "https://docs.cloudbase.net/run/deploy/deploy/deploying-source-code",
              "text": "服务部署"
            },
            {
              "link": "https://docs.cloudbase.net/cbrf/quickstart",
              "text": "函数型服务开发"
            },
            {
              "link": "https://docs.cloudbase.net/run/deploy/configuring/autoscaling/about-instance-autoscaling",
              "text": "扩缩容配置"
            },
            {
              "link": "https://docs.cloudbase.net/run/introduction",
              "text": "查看更多"
            }
          ]
        }
      ],
      "title": "云托管快速入门"
    },
    "_id": "77cd31ad68871a160043f0433c926826",
    "_openid": "1524963278340493312",
    "_mainDep": "",
    "createdAt": "2025-07-28 14:35:02",
    "updatedAt": "2025-12-11 11:23:26",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1"
  },
  {
    "id": "doc_db",
    "lang": "zh",
    "targetPlatform": [
      "default",
      "private"
    ],
    "desc": "文档型云数据库是一种以 JSON 格式存储数据的数据库，每条记录都是一个 JSON 对象。与关系型数据库不同，它无需预先定义表结构。\n\n适用于数据集独立，每条记录自包含所有信息的场景，例如日志存储系统；它也适用于数据集之间关系简单的场景，例如内容管理系统。",
    "mainData": {
      "codes": [
        {
          "code": "\n```js\nwx.cloud.init({\n    env: '{%ENV_ID%}',\n    traceUser: true,\n})\n\n// 获取数据库实例\nconst db = wx.cloud.database()\n\n// 查询数据\nconst result = await db.collection('todos').get()\n```\n            ",
          "title": "小程序",
          "docAddress": "https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/guide/database/add.html"
        },
        {
          "code": "\n```js\nimport cloudbase from '@cloudbase/js-sdk'\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n    region: '{%REGION%}'\n})\n\n// 匿名登录\nconst auth = app.auth();\nawait auth.signInAnonymously();\n\n// 获取数据库实例\nconst db = app.database()\n\n// 查询数据\nconst result = await db.collection('todos').get()\n```\n",
          "title": "Web",
          "docAddress": "https://docs.cloudbase.net/api-reference/webv3/database/fetch"
        },
        {
          "code": "\n```js\nconst cloudbase = require('@cloudbase/node-sdk')\n\n// 初始化\nconst app = cloudbase.init({\n    env: '{%ENV_ID%}',\n})\n\n// 获取数据库实例\nconst db = app.database()\n\n// 查询数据\nconst result = await db.collection('todos').get()\n```\n            ",
          "title": "云函数",
          "docAddress": "https://docs.cloudbase.net/api-reference/server/node-sdk/database/fetch"
        }
      ],
      "operations": [
        {
          "link": "https://docs.cloudbase.net/database/introduce",
          "text": "使用指南",
          "type": "weak"
        }
      ],
      "resources": [
        {
          "title": "常用功能介绍",
          "items": [
            {
              "link": "https://docs.cloudbase.net/database/doc-crud",
              "text": "增删查改"
            },
            {
              "link": "https://docs.cloudbase.net/database/aggregate",
              "text": "聚合搜索"
            },
            {
              "link": "https://docs.cloudbase.net/database/transaction",
              "text": "事务操作"
            },
            {
              "link": "https://docs.cloudbase.net/database/data-permission",
              "text": "数据权限"
            }
          ]
        },
        {
          "title": "数据库进阶",
          "items": [
            {
              "link": "https://docs.cloudbase.net/database/data-index",
              "text": "索引管理"
            },
            {
              "link": "https://docs.cloudbase.net/database/backup",
              "text": "备份与回档"
            },
            {
              "link": "https://docs.cloudbase.net/database/realtime",
              "text": "实时推送"
            },
            {
              "link": "https://docs.cloudbase.net/database/manage",
              "text": "导入导出"
            }
          ]
        }
      ],
      "title": "文档型云数据库快速入门"
    },
    "_id": "9d458e0f68871a570044b2e058483410",
    "_openid": "1524963278340493312",
    "_mainDep": "",
    "createdAt": "2025-07-28 14:36:07",
    "updatedAt": "2025-11-25 19:45:37",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1"
  }
]
