[
  {
    "identifier": "cloudbase-agent-sdk",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "gitUrl": "https://github.com/TencentCloudBase/OpenVibeCoding/tree/feat/support-open-agent-kernel/packages/open-agent-kernel",
    "zipFilePath": "https://tcb.cloud.tencent.com/ai/agent/templates/open-agent-kernel.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/5f02790737e0ff71ab148cfd965d88b2.svg",
    "_id": "daef7e716a5994d500a0bd016d75c1f1",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-17 10:35:01",
    "updatedAt": "2026-07-20 16:40:06",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "CloudBase Agent SDK",
    "description": "腾讯云官方 SDK · envId 一行配置接入 CloudBase 资源",
    "sampleCode": "npm install && npm run dev",
    "order": 5,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "JavaScript",
      "多轮对话",
      "工具调用",
      "ACP 协议"
    ],
    "envParams": [
      {
        "visible": true,
        "placeholder": "请输入 CloudBase 环境 ID",
        "fileld": "CloudBase 环境 ID",
        "key": "CLOUDBASE_ENV_ID"
      },
      {
        "visible": true,
        "placeholder": "请选择或输入 API Key",
        "fileld": "API Key",
        "key": "CLOUDBASE_APIKEY"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudrunfunctions/cloudbase-agent"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudrunfunctions/cloudbase-agent"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudrunfunctions/cloudbase-agent"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "helloworld",
    "lang": "zh",
    "language": "Node.js",
    "runtimeVersion": "Nodejs20.18",
    "entryPoint": "index.main",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/func-v2-template:v1.0.0",
    "gitUrl": "https://github.com/TencentCloudBase/func-v2-template.git;https://gitee.com/TencentCloudBase/func-v2-template.git",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/7020a99bf6bc4cfb2bf450d2ad6d14b3-func-v2-template.zip",
    "_id": "f51ab3f0689ea66901ed4c9e41efe3cc",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2026-01-08 15:34:57",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "函数型开发框架示例",
    "description": "提供通过函数型框架开发云托管服务的示例",
    "sampleCode": "此模板为云托管函数开发框架的示例模板。\n\n使用此模板将会快速完成一个云托管服务的创建，创建完成后将会包含若干可调用函数：\n* 主路径：输出 “Hello world!”\n* echo：输出具体请求内容\n\n可以通过如下方式，在小程序中调用函数：\n```js\n// 容器调用必填环境id，不能为空\nconst c1 = new wx.cloud.Cloud({\n    resourceEnv: '环境id'\n})\nawait c1.init()\n \nconst r1 = await c1.callContainer({\n    path: '/',   // 默认函数对应的请求路径\n    header: {\n        'X-WX-SERVICE': 'helloworld', // 填入创建时的函数名称 helloworld\n    },  \n    // 其余参数同 wx.request\n    method: 'GET',\n})\nconsole.log(r1) //输出 Hello world!\nconst r2 = await c1.callContainer({\n    path: '/echo',   // echo 函数对应的请求路径\n    header: {\n        'X-WX-SERVICE': 'helloworld', // 填入创建时的函数名称 helloworld\n    },\n    // 其余参数同 wx.request\n    method: 'POST',\n    data: {\n        a: 1,\n        b: 2\n    }\n})\nconsole.log(r2)  //输出具体请求及时间\n```\n  \n详细的代码及可调用内容、或进一步的使用方式可见[模板仓库](https://github.com/TencentCloudBase/func-v2-template/tree/main)",
    "order": 1,
    "containerPort": 3000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "helloworld"
    ],
    "category": "project",
    "targetPlatform": [
      "intl",
      "default"
    ]
  },
  {
    "identifier": "react-web-template",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "entryPoint": "main",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/web/cloudbase-react-template",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/5cb6864bb998d00e02af98894fa96b28-raact-template.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/78f13657d6172914ad3be3fe431220ab.svg",
    "_id": "743372846914332b0339478545e0b8dd",
    "_openid": "1955900585661755394",
    "createdAt": "2025-11-12 15:11:39",
    "updatedAt": "2026-04-10 15:17:02",
    "owner": "chrisccchen",
    "createBy": "chrisccchen",
    "updateBy": "wangwu1",
    "title": "React Web 应用模板",
    "description": "基于 React、Vite 和腾讯云开发（CloudBase）的现代化 Web 应用模板",
    "order": 1,
    "isCompile": false,
    "funcTypes": [
      "tcbStatichost"
    ],
    "tags": [
      "react",
      "web"
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-helloworld",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "entryPoint": "index.main",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-helloworld",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-helloworld.zip",
    "_id": "2ccbb81568a593bc02a413865a834040",
    "_mainDep": "test1",
    "_openid": "1938132689870721025",
    "createdAt": "2025-08-20 17:22:04",
    "updatedAt": "2026-07-06 19:56:05",
    "owner": "alfredhuang",
    "createBy": "alfredhuang",
    "updateBy": "wangwu1",
    "title": "Node.js Hello World",
    "description": "Hello World",
    "order": 1,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-python-helloworld",
    "lang": "zh",
    "language": "Python3.9",
    "runtimeVersion": "Python3.9",
    "entryPoint": "index.main",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-python-helloworld",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-python-helloworld.zip",
    "_id": "dbbce4a468b7a87000efbce93a655840",
    "_mainDep": "test1",
    "_openid": "1938132689870721025",
    "createdAt": "2025-09-03 10:31:12",
    "updatedAt": "2026-07-06 19:56:06",
    "owner": "alfredhuang",
    "createBy": "alfredhuang",
    "updateBy": "wangwu1",
    "title": "Python Hello World",
    "description": "Python 语言 空白 helloworld 模板",
    "sampleCode": "这是云函数 Python 语言的 空白 helloworld 模板，模板内仅包含入口文件。",
    "order": 10,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "python",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-python-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-python-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-python-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-go-gin",
    "lang": "zh",
    "language": "Golang",
    "runtimeVersion": "Go1",
    "entryPoint": "main",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cbrf-template-gin-example:v1.0.0",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-go-gin",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-go-gin.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/cd946d0e7e8c1a22a43398a6b41f2d93-gin-color.svg",
    "_id": "f51ab3f0689ea66901ed4c9f4b1c3ce1",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2026-07-06 19:56:06",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Gin 框架",
    "description": "基于 Go 语言 Gin 框架实现的 HTTP 调用示例",
    "sampleCode": "# 快速部署 Gin 应用\n\n源码详情请参考:\n\n* github: https://github.com/TencentCloudBase/cloudrun-gin\n* gitee: https://gitee.com/TencentCloudBase/cloudrun-gin",
    "order": 30,
    "containerPort": 8080,
    "isCompile": true,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "go",
      "gin",
      "web-framework"
    ],
    "displayPage": [
      "platform-run"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-go-gin"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-go-gin"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-go-gin"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "langgraph-js",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-agent-langgraph-ts:v0.0.1",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/langgraph-js",
    "scfDemoID": "demo-bk3z3mof",
    "zipFilePath": "https://scf-template-1307578329.cos.ap-guangzhou.myqcloud.com/langgraph-js.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/3787775f4f90d30b25521414898a8d55.png",
    "_id": "3b823b7a6971e6920042603d53182da4",
    "_mainDep": "test1",
    "_openid": "1938132689870721025",
    "createdAt": "2026-01-22 16:57:54",
    "updatedAt": "2026-07-17 10:30:27",
    "owner": "alfredhuang",
    "createBy": "alfredhuang",
    "updateBy": "wangwu1",
    "title": "LangGraph（JavaScript）",
    "description": "状态图引擎,适合显式编排多步骤、条件分支、HITL 审批",
    "sampleCode": "npm install && node src/index.js\n",
    "order": 15,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "JavaScript",
      "多步骤",
      "条件分支"
    ],
    "envParams": [
      {
        "visible": true,
        "placeholder": "您可以选择已有模型，也可以输入新的模型名称",
        "fileld": "模型名",
        "key": "OPENAI_MODEL"
      },
      {
        "visible": true,
        "placeholder": "请选择或输入兼容 OpenAI 协议的 Base URL",
        "fileld": "模型地址",
        "key": "OPENAI_BASE_URL"
      },
      {
        "visible": true,
        "placeholder": "请输入模型调用的凭证",
        "fileld": "API Key",
        "key": "OPENAI_API_KEY"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/langgraph-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/langgraph-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/langgraph-js"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "openclaw",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/openclaw-js:0.0.1",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/openclaw-js",
    "scfDemoID": "demo-nscqrv3j",
    "zipFilePath": "https://tcb.cloud.tencent.com/ai/agent/templates_tcbr_zip/openclaw-js-0.0.1.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/1336503cf5d90e9ae308a71129fd044e.svg",
    "_id": "05dc2a8369a25ea0000832012e848c4d",
    "_mainDep": "test2",
    "_openid": "1795781876440469505",
    "createdAt": "2026-02-28 11:18:56",
    "updatedAt": "2026-07-16 21:45:01",
    "owner": "huming",
    "createBy": "huming",
    "updateBy": "wangwu1",
    "title": "OpenClaw",
    "description": "快速接入开源 AI 助手\"龙虾AI\"、支持 SSE 流式返回，实时响应、支持 JWT Token 用户身份识别",
    "guide": "查看环境变量[填写指南](https://docs.cloudbase.net/ai/agent-development/frameworks/openclaw)，如需部署开源版本，[点击前往](https://tcb.cloud.tencent.com/dev#/lighthouse/create?blueprintType=APP_OS&blueprintId=lhbp-2jn60c9c)",
    "order": 2,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "tcbrContainer",
      "scfWeb"
    ],
    "tags": [
      "Agent 开发平台"
    ],
    "envParams": [
      {
        "visible": true,
        "placeholder": "请输入 OpenClaw Gateway Token（API 密钥）",
        "key": "OPENCLAW_GATEWAY_TOKEN"
      },
      {
        "visible": true,
        "placeholder": "请输入 OpenClaw API 基础 URL",
        "key": "OPENCLAW_BASE_URL"
      },
      {
        "visible": true,
        "placeholder": "请输入 OpenClaw Agent ID",
        "value": "main",
        "key": "OPENCLAW_AGENT_ID"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/openclaw-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/openclaw-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/openclaw-js"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "scf-java-helloworld",
    "lang": "zh",
    "language": "Java",
    "runtimeVersion": "Java11",
    "entryPoint": "example.Hello::simpleHandler",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-java-helloworld",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-java-helloworld.zip",
    "_id": "aca45c226981c5d800b68b4b47719ab0",
    "_openid": "1524963278340493312",
    "createdAt": "2026-02-03 17:54:32",
    "updatedAt": "2026-07-06 19:56:06",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Java Hello World",
    "description": "Java 语言 空白 helloworld 模板",
    "sampleCode": "这是云函数 Java 语言的 空白 helloworld 模板，模板内仅包含入口文件。\n\n源码地址详情参考:\n\n[github](https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-java-helloworld)",
    "order": 20,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "java",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-java-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-java-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-java-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-php-helloworld",
    "lang": "zh",
    "language": "Php",
    "runtimeVersion": "Php8.0",
    "entryPoint": "index.main_handler",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-php-helloworld",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-php-helloworld.zip",
    "_id": "b387ab556981cb6e00b128d4297f0045",
    "_openid": "1524963278340493312",
    "createdAt": "2026-02-03 18:18:22",
    "updatedAt": "2026-07-06 19:56:06",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "PHP Hello World",
    "description": "Php 语言 空白 helloworld 模板",
    "sampleCode": "这是云函数 Php 语言的 空白 helloworld 模板，模板内仅包含入口文件。\n\n源码地址请参考:\n\n[github](https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-php-helloworld)",
    "order": 25,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "php",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-php-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-php-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-php-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "vue-web-template",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "entryPoint": "main",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/web/cloudbase-vue-template",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/6d1eb4965d3e7dd25dfa62bd8f8d4a39-vue-template.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/4e832fa8ee80bbeb1fe2bd1deb753cba.svg",
    "_id": "e18d0579691433e60347a7285c52d36a",
    "_openid": "1955900585661755394",
    "createdAt": "2025-11-12 15:14:46",
    "updatedAt": "2026-04-10 15:17:25",
    "owner": "chrisccchen",
    "createBy": "chrisccchen",
    "updateBy": "wangwu1",
    "title": "Vue Web 应用模板",
    "description": "基于 Vue 3、Vite 和腾讯云开发（CloudBase）的现代化 Web 应用模板",
    "order": 2,
    "isCompile": false,
    "funcTypes": [
      "tcbStatichost"
    ],
    "tags": [
      "vue",
      "web"
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "langchain-js",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-agent-langchain-ts:v0.0.1",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/langchain-js",
    "scfDemoID": "demo-0oogh4gz",
    "zipFilePath": "https://scf-template-1307578329.cos.ap-guangzhou.myqcloud.com/langchain-js.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/e59d21e150b8a6458a1ee799e15af645.svg",
    "_id": "b395eac36971dfbe003e87114fb7e373",
    "_mainDep": "test1",
    "_openid": "1938132689870721025",
    "createdAt": "2026-01-22 16:28:46",
    "updatedAt": "2026-07-17 10:31:37",
    "owner": "alfredhuang",
    "createBy": "alfredhuang",
    "updateBy": "wangwu1",
    "title": "LangChain",
    "description": "最流行的开源 AI 框架,生态最广,适合自由组合工具",
    "sampleCode": "npm install && node src/index.js\n",
    "order": 40,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "JavaScript",
      "工具调用",
      "RAG"
    ],
    "envParams": [
      {
        "visible": true,
        "placeholder": "您可以选择已有模型，也可以输入新的模型名称",
        "fileld": "模型名",
        "key": "OPENAI_MODEL"
      },
      {
        "visible": true,
        "placeholder": "请选择或输入兼容 OpenAI 协议的 Base URL",
        "fileld": "模型地址",
        "key": "OPENAI_BASE_URL"
      },
      {
        "visible": true,
        "placeholder": "请输入模型调用的凭证",
        "fileld": "API Key",
        "key": "OPENAI_API_KEY"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/langchain-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/langchain-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/langchain-js"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "langgraph-py",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-agent-langgraph-python:v0.0.1",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/langgraph-python",
    "scfDemoID": "demo-ph2lp9r7",
    "zipFilePath": "https://scf-template-1307578329.cos.ap-guangzhou.myqcloud.com/langgraph-python.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/3787775f4f90d30b25521414898a8d55.png",
    "_id": "3ad4d5fb6971e869004147356757067e",
    "_mainDep": "test1",
    "_openid": "1938132689870721025",
    "createdAt": "2026-01-22 17:05:45",
    "updatedAt": "2026-07-17 10:29:10",
    "owner": "alfredhuang",
    "createBy": "alfredhuang",
    "updateBy": "wangwu1",
    "title": "LangGraph（Python）",
    "description": "状态图引擎,适合显式编排多步骤、条件分支、HITL 审批",
    "sampleCode": "\t//创建虚拟环境\npython3.10 -m venv venv\nsource venv/bin/activate  # 激活虚拟环境\n\n//安装依赖组件\npython -m pip install -r ./requirements.txt \\\n    --platform manylinux_2_17_x86_64 \\\n    --target ./env \\\n    --python-version 3.10 \\\n    --only-binary=:all: \\\n    --upgrade\n\n# 运行应用\npython app.py\n\n# 服务将在 9000 端口启动\n# 访问 http://localhost:9000 测试",
    "order": 35,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "Python",
      "多步骤",
      "条件分支"
    ],
    "envParams": [
      {
        "placeholder": "您可以选择已有模型，也可以输入新的模型名称",
        "fileld": "模型名",
        "key": "OPENAI_MODEL"
      },
      {
        "placeholder": "请选择或输入兼容 OpenAI 协议的 Base URL",
        "fileld": "模型地址",
        "key": "OPENAI_BASE_URL"
      },
      {
        "placeholder": "请输入模型调用的凭证",
        "fileld": "API Key",
        "key": "OPENAI_API_KEY"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/langgraph-python"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/langgraph-python"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "http://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/langgraph-python"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "nextjs-web-template",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs20.0",
    "entryPoint": "main",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/web/web-cloudbase-nextjs-template",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/032f49be0d2ac3ffc58fbba07cce7592-web-cloudbase-nextjs-template1.zip",
    "titleIcon": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/weda-uploader/2091a45cf2905b9c8f376e94b03b08d4-Next.js.svg",
    "_id": "33956e3d69d639c003624c6a16ced4e9",
    "_openid": "1524963278340493312",
    "createdAt": "2026-04-08 19:19:27",
    "updatedAt": "2026-04-21 16:09:18",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Nextjs Web 应用模板",
    "description": "基于 Next.js、React 和腾讯云开发（CloudBase）的 SSG 静态站点模板，为开发者提供了快速构建全栈应用的能力。",
    "order": 3,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbStatichost"
    ],
    "tags": [
      "nextjs",
      "web"
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "adp-js",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/adp-js:0.0.4",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/adp-js",
    "scfDemoID": "demo-m9d3d57z",
    "zipFilePath": "https://tcb.cloud.tencent.com/ai/agent/templates_tcbr_zip/adp-js-0.0.4.zip",
    "titleIcon": "https://7163-qcloud-tcb-console-1258344699.tcb.qcloud.la/cloudbase-cms/upload/2025-07-11/430pv8zlerthmdt5z71el9p1ailwr4re_.ico",
    "_id": "33a086d96972e9ff00561df3473148ba",
    "_mainDep": "test1",
    "_openid": "1938132689870721025",
    "createdAt": "2026-01-23 11:24:47",
    "updatedAt": "2026-07-17 10:26:12",
    "owner": "alfredhuang",
    "createBy": "alfredhuang",
    "updateBy": "wangwu1",
    "title": "腾讯云智能体开发平台",
    "description": "可以在云开发中调用腾讯云智能体开发平台的 Agent，它提供了知识库、工作流、多智能体等能力",
    "sampleCode": "可以在云开发中调用腾讯云智能体开发平台的 Agent，它提供了知识库、工作流、多智能体等能力",
    "guide": "点击查看[获取App Key的文档](https://cloud.tencent.com/document/product/1759/105560#8590003a-0a6d-4a8d-9a02-b706221a679d) ",
    "order": 4,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "Agent 开发平台"
    ],
    "envParams": [
      {
        "visible": true,
        "placeholder": "请输入腾讯云智能体开发平台的 AppKey",
        "fileld": "应用密钥",
        "key": "ADP_APP_KEY"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/adp-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/adp-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/adp-js"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "nuxt-web-template",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs20.0",
    "entryPoint": "main",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/web/web-cloudbase-nuxt-template",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/648a20932e76a9268a2c09994c6cb222-web-cloudbase-nuxt-template1.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/a53b4b9b0df40309c63243969180a905-nuxt.svg",
    "_id": "da3d566169d6372f0361b9c4291f4442",
    "_openid": "1524963278340493312",
    "createdAt": "2026-04-08 19:08:31",
    "updatedAt": "2026-04-21 16:09:26",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Nuxt Web 应用模板",
    "description": "基于 Nuxt 3、Vue 3 和腾讯云开发（CloudBase）的 SSG 静态站点模板，为开发者提供了快速构建全栈应用的能力",
    "order": 4,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbStatichost"
    ],
    "tags": [
      "nuxt",
      "web"
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "golang-mysql",
    "lang": "zh",
    "language": "Golang",
    "runtimeVersion": "go 1.23.0",
    "entryPoint": "main",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/golang-mysql:v0.0.1",
    "linkurl": "/platform-run/service/create?type=package&zipUrl=https://clooudbaserun-az-1258016615.cos.ap-shanghai.myqcloud.com/golang-mysql.zip&serverName=golangmysql&port=8080",
    "zipFilePath": "https://clooudbaserun-az-1258016615.cos.ap-shanghai.myqcloud.com/golang-mysql.zip",
    "_id": "f97e292f68ac6698035f61ab1f0a050b",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-25 21:35:20",
    "updatedAt": "2025-12-22 20:02:36",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Golang 内网直连 MySQL",
    "description": "云托管服务通过内网访问 MySQL 示例. 示例使用 Golang (Gin) + gorm 实现, 包含一套数据库 CRUD API 和一个调用 API 的前端页面.",
    "sampleCode": "# Go + MySQL 云托管服务\n\n## 快速开始\n\n### 配置 MySQL 连接参数\n\n1. 初始化 MySQL 参考 [开通及使用文档](https://docs.cloudbase.net/database/configuration/db/tdsql/initialization).\n2. 前往云开发控制台, 选择 `数据库 - MySQL`, 在右上角点击 `连接数据库`, 在 `连接字符串` 标签页可以获得数据库实例可以获得连接参数 `host`, `port`, `database` 参数.\n3. [可选] 如果不希望使用管理员账号, 在弹窗中点击 `忘记密码` 按钮, 可以创建一套新的用户名密码.\n\n### 部署服务\n\n前往 [腾讯云云开发控制台](https://tcb.cloud.tencent.com/dev), 选择 `云托管`, 在 `创建服务` 区块选择 `通过模板部署`, 选择模版, 进入模板代码预览页面.\n在代码预览区, 找到 `.env` 文件, 点击右上角 `编辑` 按钮, 修改 MySQL 链接相关参数, 并点击 `保存` 按钮.\n\n```\nMYSQL_ADDRESS=<mysql-instance-host>:<mysql-instance-port>\nMYSQL_USERNAME=<mysql-username>\nMYSQL_PASSWORD=<mysql-password>\nMYSQL_DATABASE=<mysql-database>\n```\n\n之后点击 `部署` 按钮, 等待部署完成. 部署完成后, 在云托管的 `服务列表` 页面, 点击 `服务名称` 进入服务详情页, 通过服务域名即可访问服务.\n\n## 本地调试\n\n### 环境要求\n\n- Go 1.23+\n- MySQL 5.7+ 或 MySQL 8.0+\n\n### 1. 克隆项目并安装依赖\n\n```bash\n# 克隆项目\ngit clone https://github.com/TencentCloudBase/awesome-cloudbase-examples.git\ncd cloudbaserun/golang-mysql\n\n# 使用 Go modules 安装依赖\ngo mod download\n\n# [可选] 使用国内镜像源以提高下载速度\ngo env -w GOPROXY=https://mirrors.cloud.tencent.com/go/,direct\n```\n\n### 2. 配置 MySQL 数据库\n\n创建 `.env` 文件，配置你的本地 MySQL 连接参数：\n\n```bash\nMYSQL_USERNAME=your_username\nMYSQL_PASSWORD=your_password\nMYSQL_ADDRESS=localhost:3306\nMYSQL_DATABASE=your_database\n# 可以用 PORT 环境变量指定其他端口\nPORT=8080\n```\n\n### 3. 启动本地开发服务器\n\n确保本地 MySQL 服务已启动\n\n```bash\n# 直接运行\ngo run ./cmd/server\n\n# 或者先构建再运行\ngo build -o server ./cmd/server\n./server\n```\n\n应用将在 `http://localhost:8080` 启动。\n\n### 4. 测试应用功能\n\n- 访问 `http://localhost:8080` 查看前端页面\n- 使用页面上的按钮测试计数器功能：\n  - 点击 \"计数+1\" 按钮增加计数\n  - 点击 \"清零\" 按钮重置计数\n- 或者直接调用 API 接口：\n\n  ```bash\n  # 获取当前计数\n  curl http://localhost:8080/api/count\n\n  # 增加计数\n  curl -X POST http://localhost:8080/api/count \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"action\": \"inc\"}'\n\n  # 清空计数\n  curl -X POST http://localhost:8080/api/count \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"action\": \"clear\"}'\n  ```\n\n### 常见问题排查\n\n- **数据库连接失败**：检查 `.env` 文件中的数据库配置和 MySQL 服务状态\n- **端口被占用**：修改 `PORT` 环境变量或直接修改代码中的端口号\n- **权限问题**：确保 MySQL 用户有对应数据库的读写权限\n- **Go 版本问题**：确保使用 Go 1.23 或更高版本\n\n### 使用 Docker 进行本地调试（可选）\n\n```bash\n# 构建镜像\ndocker build -t golang-mysql-demo .\n\n# 运行容器（需要先启动 MySQL 容器）\ndocker run --rm -p 8080:8080 golang-mysql-demo\n```\n\n## Dockerfile 最佳实践\n\n请参考 [优化容器镜像](https://docs.cloudbase.net/run/develop/image-optimization)\n",
    "order": 35,
    "containerPort": 8080,
    "isCompile": true,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "golang",
      "gin",
      "mysql"
    ],
    "envParams": [
      {
        "value": "<mysql-instance-host>:<mysql-instance-port>",
        "key": "MYSQL_ADDRESS"
      },
      {
        "value": "<mysql-username>",
        "key": "MYSQL_USERNAME"
      },
      {
        "value": "<mysql-password>",
        "key": "MYSQL_PASSWORD"
      },
      {
        "value": "<mysql-database>",
        "key": "MYSQL_DATABASE"
      }
    ],
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "google-adk-py",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-agent-adk-python:latest",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/adk-python",
    "scfDemoID": "demo-8fvhotl1",
    "zipFilePath": "https://tcb.cloud.tencent.com/cloud-run-function-template/adk-python.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/a968489a84e6c523f8e6b353aca10015.png",
    "_id": "663bfd636972eeb70057f765630ae726",
    "_mainDep": "test1",
    "_openid": "1938132689870721025",
    "createdAt": "2026-01-23 11:44:55",
    "updatedAt": "2026-07-16 21:49:56",
    "owner": "alfredhuang",
    "createBy": "alfredhuang",
    "updateBy": "wangwu1",
    "title": "Google Agent Development Kit",
    "description": "支持与兼容 OpenAI 协议的大模型进行对话，您可以二次开发",
    "sampleCode": "支持与兼容 OpenAI 协议的大模型进行对话，您可以进行二次开发。",
    "order": 5,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "Agent 开发框架"
    ],
    "envParams": [
      {
        "placeholder": "您可以选择已有模型，也可以输入新的模型名称",
        "fileld": "模型名",
        "value": "",
        "key": "OPENAI_MODEL"
      },
      {
        "placeholder": "请选择或输入兼容 OpenAI 协议的 Base URL",
        "fileld": "模型地址",
        "key": "OPENAI_BASE_URL"
      },
      {
        "placeholder": "请输入模型调用的凭证",
        "fileld": "API Key",
        "key": "OPENAI_API_KEY"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/adk-python"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/adk-python"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/adk-python"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "nodejs-mysql",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs 18+",
    "entryPoint": "main",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/nodejs-mysql:v0.0.1",
    "linkurl": "/platform-run/service/create?type=package&zipUrl=https://clooudbaserun-az-1258016615.cos.ap-shanghai.myqcloud.com/nodejs-mysql.zip&serverName=nodejsmysql&port=8080",
    "zipFilePath": "https://clooudbaserun-az-1258016615.cos.ap-shanghai.myqcloud.com/nodejs-mysql.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/1e585b61c132ad870ced777b2c5059a1-MySQL.svg",
    "_id": "b4e5a6c368ac6e1a035aa3fa4d105c9a",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-25 22:07:22",
    "updatedAt": "2025-12-22 19:59:33",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Nodejs 内网直连 MySQL",
    "description": "云托管服务通过内网访问 MySQL 示例. 示例使用 Nodejs (express) + mysql2 实现, 包含一套数据库 CRUD API 和一个调用 API 的前端页面.",
    "sampleCode": "# Nodejs + MySQL 云托管服务\n\n## 快速开始\n\n### 配置 MySQL 连接参数\n\n1. 初始化 MySQL 参考 [开通及使用文档](https://docs.cloudbase.net/database/configuration/db/tdsql/initialization).\n2. 前往云开发控制台, 选择 `数据库 - MySQL`, 在右上角点击 `连接数据库`, 在 `连接字符串` 标签页可以获得数据库实例可以获得连接参数 `host`, `port`, `database` 参数.\n3. [可选] 如果不希望使用管理员账号, 在弹窗中点击 `忘记密码` 按钮, 可以创建一套新的用户名密码.\n\n### 部署服务\n\n前往 [腾讯云云开发控制台](https://tcb.cloud.tencent.com/dev), 选择 `云托管`, 在 `创建服务` 区块选择 `通过模板部署`, 选择模版, 进入模板代码预览页面.\n在代码预览区, 找到 `.env` 文件, 点击右上角 `编辑` 按钮, 修改 MySQL 链接相关参数, 并点击 `保存` 按钮.\n\n```\nMYSQL_ADDRESS=<mysql-instance-host>:<mysql-instance-port>\nMYSQL_USERNAME=<mysql-username>\nMYSQL_PASSWORD=<mysql-password>\nMYSQL_DATABASE=<mysql-database>\n```\n\n之后点击 `部署` 按钮, 等待部署完成. 部署完成后, 在云托管的 `服务列表` 页面, 点击 `服务名称` 进入服务详情页, 通过服务域名即可访问服务.\n\n## 本地调试\n\n### 环境要求\n\n- Nodejs 18+\n- MySQL 5.7+ 或 MySQL 8.0+\n\n### 1. 克隆项目并安装依赖\n\n```bash\n# 克隆项目\ngit clone https://github.com/TencentCloudBase/awesome-cloudbase-examples.git\ncd cloudbaserun/nodejs-mysql\n\n# [可选] 使用国内镜像源以提高下载速度\nnpm config set registry https://mirrors.cloud.tencent.com/npm/\n# 使用 npm 安装依赖\nnpm install\n```\n\n### 2. 配置 MySQL 数据库\n\n编辑 .env 文件，修改为你的本地 MySQL 配置\n\n```bash\nMYSQL_USERNAME=your_username\nMYSQL_PASSWORD=your_password\nMYSQL_ADDRESS=localhost:port\nMYSQL_DATABASE=your_database\n# 可以用 PORT 环境变量指定其他端口\nPORT=8080\n```\n\n### 3. 启动本地开发服务器\n\n确保本地 MySQL 服务已启动\n\n```bash\nnpm start\n```\n\n应用将在 `http://localhost:8080` 启动。\n\n### 4. 测试应用功能\n\n- 访问 `http://localhost:8080` 查看前端页面\n- 使用页面上的按钮测试计数器功能：\n  - 点击 \"增加\" 按钮增加计数\n  - 点击 \"清空\" 按钮重置计数\n- 或者直接调用 API 接口：\n\n  ```bash\n  # 获取当前计数\n  curl http://localhost:8080/api/count\n\n  # 增加计数\n  curl -X POST http://localhost:8080/api/count \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"action\": \"inc\"}'\n\n  # 清空计数\n  curl -X POST http://localhost:8080/api/count \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"action\": \"clear\"}'\n  ```\n\n### 常见问题排查\n\n- **数据库连接失败**：检查 `.env` 文件中的数据库配置和 MySQL 服务状态\n- **端口被占用**：修改 `app.js` 中的端口号或使用 `PORT` 环境变量\n- **权限问题**：确保 MySQL 用户有对应数据库的读写权限\n\n### 使用 Docker 进行本地调试（可选）\n\n```bash\n# 构建镜像\ndocker build -t nodejs-mysql-demo .\n\n# 运行容器（需要先启动 MySQL 容器）\ndocker run --rm -p 8080:8080 nodejs-mysql-demo\n```\n\n## Dockerfile 最佳实践\n\n请参考 [优化容器镜像](https://docs.cloudbase.net/run/develop/image-optimization)\n",
    "order": 25,
    "containerPort": 8080,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "express",
      "mysql",
      "nodejs"
    ],
    "envParams": [
      {
        "value": "<mysql-instance-host>:<mysql-instance-port>",
        "key": "MYSQL_ADDRESS"
      },
      {
        "value": "<mysql-username>",
        "key": "MYSQL_USERNAME"
      },
      {
        "value": "<mysql-password>",
        "key": "MYSQL_PASSWORD"
      },
      {
        "value": "<mysql-database>",
        "key": "MYSQL_DATABASE"
      }
    ],
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "python-mysql",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python 3.8+",
    "entryPoint": "main",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/python-mysql:v0.0.1",
    "linkurl": "/platform-run/service/create?type=package&zipUrl=https://clooudbaserun-az-1258016615.cos.ap-shanghai.myqcloud.com/python-mysql.zip&serverName=pythonmysql&port=8080",
    "zipFilePath": "https://clooudbaserun-az-1258016615.cos.ap-shanghai.myqcloud.com/python-mysql.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/a7436f833f386531f046891bb668fc31-MySQL.svg",
    "_id": "718e036668ac6bd003650465552dbf5a",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-25 21:57:36",
    "updatedAt": "2025-12-22 19:56:31",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Python 内网直连 MySQL",
    "description": "云托管服务通过内网访问 MySQL 示例. 示例使用 Python (Flask) + SQLAlchemy 实现, 包含一套数据库 CRUD API 和一个调用 API 的前端页面.",
    "sampleCode": "# Python + MySQL 云托管服务\n\n## 快速开始\n\n### 配置 MySQL 连接参数\n\n1. 初始化 MySQL 参考[文档](https://docs.cloudbase.net/database/configuration/db/tdsql/initialization)\n2. 前往云开发控制台, 选择 `数据库 - MySQL`, 在右上角点击 `连接数据库`, 在 `连接字符串` 标签页可以获得数据库实例可以获得连接参数 `host`, `port`, `database` 参数.\n3. [可选] 如果不希望使用管理员账号, 在弹窗中点击 `忘记密码` 按钮, 可以创建一套新的用户名密码.\n\n### 部署服务\n\n前往 [腾讯云云开发控制台](https://tcb.cloud.tencent.com/dev), 选择 `云托管`, 在 `创建服务` 区块选择 `通过模板部署`, 选择模版, 进入模板代码预览页面.\n在代码预览区, 找到 `.env` 文件, 点击右上角 `编辑` 按钮, 修改 MySQL 链接相关参数, 并点击 `保存` 按钮.\n\n```\nMYSQL_ADDRESS=<mysql-instance-host-and-port>\nMYSQL_USERNAME=<mysql-username>\nMYSQL_PASSWORD=<mysql-password>\nMYSQL_DATABASE=<mysql-database>\n```\n\n之后点击 `部署` 按钮, 等待部署完成. 部署完成后, 在云托管的 `服务列表` 页面, 点击 `服务名称` 进入服务详情页, 通过服务域名即可访问服务.\n\n## 本地调试\n\n### 环境要求\n\n- Python 3.8+\n- MySQL 5.7+ 或 MySQL 8.0+\n\n### 1. 克隆项目并安装依赖\n\n```bash\n# 克隆项目\ngit clone https://github.com/TencentCloudBase/awesome-cloudbase-examples.git\ncd cloudbaserun/python-mysql\n\n# [可选] 使用国内镜像源以提高下载速度\npip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple\n\n# 使用 pip 安装依赖\npip install -r requirements.txt\n\n# 或者使用虚拟环境 (推荐)\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n### 2. 配置 MySQL 数据库\n\n编辑 .env 文件，修改为你的本地 MySQL 配置\n\n```bash\nMYSQL_USERNAME=your_username\nMYSQL_PASSWORD=your_password\nMYSQL_ADDRESS=localhost:port\nMYSQL_DATABASE=your_database\n# 可以用 PORT 环境变量指定其他端口\nPORT=8080\n```\n\n### 3. 启动本地开发服务器\n\n确保本地 MySQL 服务已启动\n\n```bash\n# 直接运行 Flask 应用\npython app.py\n```\n\n应用将在 `http://localhost:8080` 启动。\n\n### 4. 测试应用功能\n\n- 访问 `http://localhost:8080` 查看前端页面\n- 使用页面上的按钮测试计数器功能：\n  - 点击 \"增加\" 按钮增加计数\n  - 点击 \"清空\" 按钮重置计数\n- 或者直接调用 API 接口：\n\n  ```bash\n  # 获取当前计数\n  curl http://localhost:8080/api/count\n\n  # 增加计数\n  curl -X POST http://localhost:8080/api/count \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"action\": \"inc\"}'\n\n  # 清空计数\n  curl -X POST http://localhost:8080/api/count \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"action\": \"clear\"}'\n  ```\n\n### 常见问题排查\n\n- **数据库连接失败**：检查 `.env` 文件中的数据库配置和 MySQL 服务状态\n- **端口被占用**：修改 `app.py` 中的端口号或使用 `PORT` 环境变量\n- **依赖安装失败**：确保 Python 版本兼容，或使用虚拟环境\n- **权限问题**：确保 MySQL 用户有对应数据库的读写权限\n\n### 使用 Docker 进行本地调试（可选）\n\n```bash\n# 构建镜像\ndocker build -t python-mysql-demo .\n\n# 运行容器（需要先启动 MySQL 容器）\ndocker run --rm -p 8080:8080 python-mysql-demo\n```\n\n## Dockerfile 最佳实践\n\n请参考 [优化容器镜像](https://docs.cloudbase.net/run/develop/image-optimization)\n",
    "order": 20,
    "containerPort": 8080,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "python",
      "flask",
      "mysql"
    ],
    "envParams": [
      {
        "value": "<mysql-instance-host-and-port>",
        "key": "MYSQL_ADDRESS"
      },
      {
        "value": "<mysql-username>",
        "key": "MYSQL_USERNAME"
      },
      {
        "value": "<mysql-password>",
        "key": "MYSQL_PASSWORD"
      },
      {
        "value": "<mysql-database>",
        "key": "MYSQL_DATABASE"
      }
    ],
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "springboot",
    "lang": "zh",
    "language": "Java",
    "runtimeVersion": "Java11",
    "entryPoint": "main",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cbrf-template-springboot-example:v1.0.0",
    "gitUrl": "https://github.com/TencentCloudBase/cloudrun-springboot.git;https://gitee.com/TencentCloudBase/cloudrun-springboot.git",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/49174bd47addd35f28657bee08c1c69c-cloudrun-springboot-app.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/328d8d380a3913553d94f326558810f1-Spring_Boot.svg",
    "_id": "f51ab3f0689ea66901ed4ca27fc1c412",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2026-02-04 16:55:40",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Springboot 模板",
    "description": "基于 Java 语言框架 Spingboot 实现的 HTTP 调用示例",
    "sampleCode": "# 快速部署 Springboot 应用\n\n源码详情请参考:\n\n* github: https://github.com/TencentCloudBase/cloudrun-springboot\n* gitee: https://gitee.com/TencentCloudBase/cloudrun-springboot",
    "order": 30,
    "containerPort": 8080,
    "isCompile": true,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "Java",
      "Springboot",
      "HTTPFunc",
      "WebFramework"
    ],
    "displayPage": [
      "platform-run"
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "crewai-py",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-agent-crewai-python:v0.0.1",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/crewai-python",
    "scfDemoID": "demo-h56z4j4f",
    "zipFilePath": "https://scf-template-1307578329.cos.ap-guangzhou.myqcloud.com/crewai-python.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/1a0b19f45c687e67a4c355c378ecfb0e.png",
    "_id": "eed7c91a6972e7c5005970c941713e0a",
    "_mainDep": "test1",
    "_openid": "1938132689870721025",
    "createdAt": "2026-01-23 11:15:17",
    "updatedAt": "2026-07-17 10:32:21",
    "owner": "alfredhuang",
    "createBy": "alfredhuang",
    "updateBy": "wangwu1",
    "title": "Crew AI",
    "description": "多 Agent 协作,把团队拆成角色化的子 Agent 分工合作",
    "sampleCode": "\t//创建虚拟环境\npython3.10 -m venv venv\nsource venv/bin/activate  # 激活虚拟环境\n\n//安装依赖\n./install_hybrid.sh\n\n# 运行应用\npython app.py\n\n# 服务将在 9000 端口启动\n# 访问 http://localhost:9000 测试",
    "order": 45,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "Python",
      "多Agent",
      "角色化"
    ],
    "envParams": [
      {
        "placeholder": "您可以选择已有模型，也可以输入新的模型名称",
        "fileld": "模型名",
        "key": "OPENAI_MODEL"
      },
      {
        "placeholder": "请选择或输入兼容 OpenAI 协议的 Base URL",
        "fileld": "模型地址",
        "key": "OPENAI_BASE_URL"
      },
      {
        "placeholder": "请输入模型调用的凭证",
        "fileld": "API Key",
        "key": "OPENAI_API_KEY"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/crewai-python"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/crewai-python"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/crewai-python"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "yuanqi",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/yuanqi-js:0.0.5",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/yuanqi-js",
    "scfDemoID": "demo-kauuzvkz",
    "zipFilePath": "https://tcb.cloud.tencent.com/ai/agent/templates_tcbr_zip/yuanqi-js-0.0.5.zip",
    "titleIcon": "https://7163-qcloud-tcb-console-1258344699.tcb.qcloud.la/cloudbase-cms/upload/2025-07-03/k9kew8lmirmkk5hdk4lvbtigslpk5hii_.png",
    "_id": "2cf12107698016dc008c82c84d9da96f",
    "_mainDep": "test2",
    "_openid": "1795781876440469505",
    "createdAt": "2026-02-02 11:15:40",
    "updatedAt": "2026-07-16 21:46:45",
    "owner": "huming",
    "createBy": "huming",
    "updateBy": "wangwu1",
    "title": "腾讯元器",
    "description": "支持微信公众号智能体，支持工作流、插件、MCP、知识库、multi-agent等能力，低门槛搭建 agent",
    "guide": "去[腾讯元器](https://yuanqi.tencent.com/index)创建智能体，并获取智能体ID和Token，[查看文档](https://yuanqi.tencent.com/guide/publish-agent-api-documentation)",
    "order": 9,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "Agent 开发平台"
    ],
    "envParams": [
      {
        "visible": true,
        "placeholder": "请输入腾讯元器的智能体的 appid",
        "value": "",
        "key": "YUANQI_APP_ID"
      },
      {
        "visible": true,
        "placeholder": "请输入腾讯元器的智能体的 appkey",
        "key": "YUANQI_APP_KEY"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/yuanqi-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/yuanqi-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/yuanqi-js"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "cloudbase-agent",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-agent-cloudbase-agent:0.0.6",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudrunfunctions/cloudbase-agent",
    "zipFilePath": "https://tcb.cloud.tencent.com/cloud-run-function-template/cloudbase-agent.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/5f02790737e0ff71ab148cfd965d88b2.svg",
    "_id": "f51ab3f0689ea66901ed4caa301f2843",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2026-07-16 21:52:40",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "云开发 Agent 模板",
    "description": "云开发开源Agent，支持功能如下：MCP、语音功能、数据模型、文件上传、多会话、知识库、联网搜索、人设与回复约束、开场白、问题建议。",
    "sampleCode": "本示例项目为函数型云托管的Agent项目示例，是 [函数型 Agent](https://docs.cloudbase.net/ai/cbrf-agent/intro) 的一个示例项目。\n\n本示例项目主要演示如何在本地开发环境中开发调试函数型 Agent，以及如何实现Agent 中的基础对话、联网搜索、知识库查询、文件查询等功能。",
    "order": 10,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "tcbrFunc"
    ],
    "tags": [
      "Agent 开发平台"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudrunfunctions/cloudbase-agent"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudrunfunctions/cloudbase-agent"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudrunfunctions/cloudbase-agent"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "phpMyAdmin",
    "lang": "zh",
    "language": "PHP",
    "runtimeVersion": "PHP",
    "entryPoint": "main",
    "imagePath": "phpmyadmin:5.2.2-apache",
    "linkurl": "/platform-run/service/create?type=image&image=phpmyadmin:5.2.2-apache&serverName=phpmyadmin",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/03f209fb5add2a57b20592d0da3fc870-PhpMyAdmin_logo.svg",
    "_id": "f51ab3f0689ea66901ed4ca83ac8cf06",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2025-12-01 12:05:26",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "alfredhuang",
    "title": "phpMyAdmin",
    "description": "phpMyAdmin 是一个非常流行的开源 Web 应用，用于管理 MySQL 和 MariaDB 数据库。它基于 PHP 开发，提供图形化界面，方便用户执行数据库管理任务，比如创建数据库、执行 SQL 查询、管理用户权限、导入导出数据等。",
    "sampleCode": "# phpMyAdmin 数据库管理工具\n## 介绍\nphpMyAdmin 是一款用 PHP 编写的免费软件工具，旨在通过 Web 管理 MySQL。phpMyAdmin 支持 MySQL 和 MariaDB 的多种操作。您可以通过用户界面执行常用操作（管理数据库、表、列、关系、索引、用户、权限等），同时您仍然可以直接执行任何 SQL 语句。\n## 使用\n为了保证安全，我们设置默认情况下 phpMyAdmin 可以连接任意的数据库，每次打开都需要输入数据库登录信息，且服务器本身并不会保存数据库连接信息。\n\n## 连接腾讯云 CloudBase MySQL 数据库\n数据模型服务默认内置了 MySQL 数据库，默认情况下，该 MySQL 与云托管服务内网互通，即只需要在腾讯云 CloudBase MySQL 数据库开启内网访问即可。",
    "order": 45,
    "containerPort": 80,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "php",
      "phpMyAdmin"
    ],
    "envParams": [
      {
        "value": "1",
        "key": "PMA_ARBITRARY"
      }
    ],
    "category": "project",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "supabase-realtime",
    "lang": "zh",
    "language": "Elixir",
    "runtimeVersion": "Mix",
    "entryPoint": "main",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cbrf-template-supabase-realtime:v0.0.2",
    "linkurl": "/platform-run/service/create?type=image&image=crunbuild-az-new.tencentcloudcr.com/cloudbase/cbrf-template-supabase-realtime:v0.0.2&serverName=supabase-realtime&port=4000",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/97ba57bedc5be2dc8d5a00ddddc82bca-supabase.svg",
    "_id": "f51ab3f0689ea66901ed4ca958543e41",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2025-12-01 12:07:49",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "alfredhuang",
    "title": "实时通讯示例",
    "description": "本模板通过使用自行部署的 supabase realtime 框架，提供了可以供多个客户端实时通讯的能力。",
    "sampleCode": "# 实时通讯说明示例\n\nSupabase Realtime 通过 Elixir 进行构建，可实现以下功能：\n\n- **广播**（Broadcast）：以低延迟从客户端向客户端发送临时消息。\n- **存在感知**（Presence）：跟踪并同步客户端之间的共享状态。\n- **Postgres 变化**（Postgres Changes）：监听 Postgres 数据库变化并将其发送给授权客户端。\n\n## 1. 使用场景\n\n实时通讯示例适用于需要低延迟、高并发消息传输的场景，例如：\n\n- **在线聊天应用**：实现用户间的即时消息发送和接收。\n- **实时协作工具**：如在线文档编辑、白板协作，同步用户操作和状态。\n- **游戏**：实时同步玩家位置、游戏状态和聊天信息。\n- **物联网设备监控**：实时接收传感器数据和设备状态更新。\n- **金融交易平台**：实时推送股票行情、交易信息。\n\n## 2. 配置过程\n### 2.1 部署服务\n\n1. 登录 云开发平台控制台。\n2. 点击“通过模版部署”，选择“实时通讯示例”。\n3. 输入自定义服务名称，并根据您的业务场景修改环境变量配置（详见2.2 环境变量配置章节）。\n4. 点击“部署”，等待部署完成。\n5. 部署完成后，点击左上角箭头返回服务详情页，在“概述”中获取默认域名并访问，验证服务是否正常运行。\n### 2.2 环境变量配置\n\n在创建服务时，以下环境变量建议根据您的业务场景进行修改，以提高业务安全性：\n\n| Variable        | Type   | Description                  |\n| --------------- | ------ | ---------------------------- |\n| PORT            | number | 服务启动的端口，默认 4000              |\n| DB_PASSWORD     | string | Database 密码，建议修改为复杂密码        |\n| API_JWT_SECRET  | string | 用于生产 HTTP 请求 JWT Token，建议修改  |\n| SECRET_KEY_BASE | string | 用于生产 Cookie，推荐使用 64 字节的随机字符串 |\n\n更多环境变量配置，请参考 [Supabase Realtime GitHub 仓库](https://github.com/supabase/realtime)。\n\n### 2.3 版本说明\n\n| 组件           | 版本      | 备注                                |\n| ------------ | ------- | --------------------------------- |\n| realtime-js  | 2.11.15 | 2.15.2版本有invalid_token的bug，需要官方修复 |\n| python       | 3.13.5  |                                   |\n| node         | v24.2.0 |                                   |\n| realtime服务版本 | v2.43.1 |                                   |\n\n## 3. 使用过程\n### 3.1 在本地环境调用，创建 Tenant\n\nTenants 用于隔离不同的实时通讯应用或用户组，==**注意**==：Supabase Realtime 默认使用域名的第一段作为 `tenants ID`。例如，如果您的默认域名是`https://supabase-realtime-148085-6-1257473911.sh.run.tcloudbase.com/`，则`tenants ID` 为 `supabase-realtime-148085-6-1257473911`，强烈建议在生产环境中使用自定义域名。\n\nSupabase Realtime 新建客户端时需要`api_key`，`api_key`是一个`JWT Token`，其声明必须包含`exp`和`role`, `role`为`tenants ID`\n\n**创建 Tenants 示例代码**：将以下 Python 代码保存为 `.py` 文件（例如 `create_tenant.py`），并在命令行中运行。此代码会向您的 Supabase Realtime 服务发送 HTTP POST 请求创建Tenants，并打印生成的`api_key`，完整代码如下：\n\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*\nimport datetime\nimport json\nimport jwt\nimport requests\n\n\nhttp_url = \"https://supabase-realtime-160426-9-1307578329.sh.run.tcloudbase.com/api/tenants\" # 替换为您的服务域名\ntenant_id = \"supabase-realtime-160426-9-1307578329\" # 替换为您的 tenants ID\nsecret_key = \"dc447559-996d-4761-a306-f47a5eab1623\" # 替换为您的 API_JWT_SECRET\n\n# 生成api_key\ndef jwt_token():\n    algorithm = \"HS256\"\n    payload = {\n        \"iss\": \"\",\n        \"iat\": int((datetime.datetime.utcnow() + datetime.timedelta(days=-1)).timestamp()),\n        \"exp\": int((datetime.datetime.utcnow() + datetime.timedelta(days=30)).timestamp()),\n        \"aud\": \"\",\n        \"sub\": \"\",\n        \"role\": tenant_id\n    }\n    encoded_jwt = jwt.encode(payload, secret_key, algorithm=algorithm)\n    print(\"api_key:\", encoded_jwt)\n    return encoded_jwt\n\n# 创建租户\ndef create_tenant(tenant_id):\n    payload = {\n        \"tenant\": {\n            \"name\": tenant_id,\n            \"external_id\": tenant_id,\n            \"jwt_secret\": secret_key,\n            \"extensions\": [\n                {\n                    \"type\": \"postgres_cdc_rls\",\n                    \"settings\": {\n                        \"db_name\": \"postgres\",  # 替换为您的数据库名称，下同\n                        \"db_host\": \"127.0.0.1\",\n                        \"db_user\": \"postgres\",\n                        \"db_password\": \"postgres\",\n                        \"db_port\": \"5432\",\n                        \"region\": \"us-west-1\",\n                        \"poll_interval_ms\": 100,\n                        \"poll_max_record_bytes\": 1048576\n                    }\n                }\n            ]\n        }\n    }\n    header = {\n        \"Content-Type\": \"application/json\",\n        \"Authorization\": \"Bearer {}\".format(jwt_token())\n    }\n    try:\n        r = requests.post(url=http_url, headers=header, data=json.dumps(payload))\n        print(r.text)\n    except Exception as e:\n        print(e)\n\n# 查询租户\ndef list_tenants():\n    header = {\n        \"Content-Type\": \"application/json\",\n        \"Authorization\": \"Bearer {}\".format(jwt_token())\n    }\n    try:\n        r = requests.get(url=http_url, headers=header)\n        print(r.text)\n    except Exception as e:\n        print(e)\n\n\ndef main():\n    create_tenant(tenant_id) # 创建租户\n    list_tenants() # 查询租户列表\n\nif __name__ == '__main__':\n    main()\n```\n\noutput示例:\n\n```text\napi_key: eyJhbGciOiJIUzI1NiIsInR************\n{\"data\":{\"id\":\"275e7d4c-dfaa-4aff-944d-540f33309af9\",\"name\":\"sup.....}}\n\napi_key: eyJhbGciOiJIUzI1NiIsInR************\n{\"data\":[{\"id\":\"e41b59f9-f8da-468a-95a9-93de5b10df91\",\"name\":\"realtime-dev\"......}]}\n```\n### 3.2 在客户端应用上监听和发送广播\n\n客户端可以通过 Realtime 库监听和发送广播消息。[参考文档](https://supabase.com/docs/guides/realtime/broadcast)\n\n安装依赖：`npm i @supabase/realtime-js@2.11.15`\n\n**监听广播示例代码**：将以下 JavaScript 代码集成到您的前端应用（如浏览器环境）或 Node.js 后端服务中运行\n\n```js\nimport { RealtimeClient } from \"@supabase/realtime-js\";\n\nconst http_url = \"https://supabase-realtime-160426-9-1307578329.sh.run.tcloudbase.com/socket\"; // 替换为你的自定义域名或者使用默认域名进行测试\nconst api_key = \"******\"; // 替换为上文的api_key\n\nconst client = new RealtimeClient(http_url, { params: { apikey: api_key } });\nconst room = client.channel(\"room_01\");\nroom\n  .on(\n    \"broadcast\",\n    {\n      event: \"RoomBroadCast\",\n    },\n    (payload) => {\n      console.log(\"Recevie:\", payload);\n    }\n  )\n  .subscribe();\n```\n\n**发送广播示例代码**：将以下 JavaScript 代码集成到您的前端应用（如浏览器环境）或 Node.js 后端服务中运行\n\n```js\nimport { RealtimeClient } from \"@supabase/realtime-js\";\n\nconst http_url = \"https://supabase-realtime-160426-9-1307578329.sh.run.tcloudbase.com/socket\"; // 替换为你的自定义域名或者使用默认域名进行测试\nconst api_key = \"******\"; // 替换为上文的api_key\n\nconst client = new RealtimeClient(http_url, { params: { apikey: api_key } });\nconst room = client.channel(\"room_01\");\n\nroom.subscribe(async (status, err) => {\n  if (status === \"SUBSCRIBED\") {\n    await room.send({\n      type: \"broadcast\",\n      event: \"RoomBroadCast\",\n      payload: {\n        from_user: \"client_1\",\n        to_user: \"*\",\n        message: \"client_1 join the room...\",\n      },\n    });\n  }\n});\n```\n### 3.3 在客户端应用上监听存在状态\n\n客户端可以通过 Realtime 库监听存在状态。[参考文档](https://supabase.com/docs/guides/realtime/presence)\n\n**监听存在状态示例代码**：将以下 JavaScript 代码集成到您的前端应用（如浏览器环境）或 Node.js 后端服务中运行\n\n```js\nimport { RealtimeClient } from \"@supabase/realtime-js\";\n\nconst http_url = \"https://supabase-realtime-160426-9-1307578329.sh.run.tcloudbase.com/socket\"; // 替换为你的自定义域名或者使用默认域名进行测试\nconst api_key = \"******\"; // 替换为上文的api_key\n\nconst client = new RealtimeClient(http_url, { params: { apikey: api_key } });\nconst room = client.channel(\"room_02\");\n\nroom\n  .on('presence', { event: 'sync' }, () => {\n    const newState = room.presenceState()\n    console.log('sync 同步', newState)\n  })\n  .on('presence', { event: 'join' }, ({ key, newPresences }) => {\n    console.log('join 加入', key, newPresences)\n  })\n  .on('presence', { event: 'leave' }, ({ key, leftPresences }) => {\n    console.log('leave 离开', key, leftPresences)\n  })\n  .subscribe()\n```\n\n**同步存在状态示例代码**：\n\n```js\nimport { RealtimeClient } from \"@supabase/realtime-js\";\n\nconst http_url = \"https://supabase-realtime-160426-9-1307578329.sh.run.tcloudbase.com/socket\"; // 替换为你的自定义域名或者使用默认域名进行测试\nconst api_key = \"******\"; // 替换为上文的api_key\n\nconst client = new RealtimeClient(http_url, { params: { apikey: api_key } });\nconst room = client.channel(\"room_02\");\n\nconst delay = (ms) => new Promise(resolve => setTimeout(resolve, ms));\n\n// 1. 等待订阅成功 为了方便演示，使用Promise, 实际使用参考官方文档示例\nconst subscribeStatus = await new Promise((resolve, reject) => {\n  room.subscribe((status) => {\n    if (status === 'SUBSCRIBED') resolve(status);\n    else if (status === 'CHANNEL_ERROR') reject(new Error(\"Subscribe failed\"));\n  });\n});\n\n// 2. 同步 Presence 状态\nconst userStatus = { user: 'user-1', online_at: new Date().toISOString() };\nconst trackStatus = await room.track(userStatus);\nconsole.log(\"Track status:\", trackStatus);\n\n// 3. 等待 5 秒\nawait delay(5000);\nconsole.log(\"5秒等待完成\");\n\n// 4. 取消 Presence 同步\nconst untrackStatus = await room.untrack();\nconsole.log(\"Untrack status:\", untrackStatus);\n```\n\n### 3.4 在客户端应用上监听Postgres变化\n\n**WIP**: Supabase Realtime 2.15.2存在bug，需要等待官方修复\n\n### 3.5 在微信小程序中使用\n\n小程序开发者工具设置：\n- 开启 -【详情】-【将JS编译成ES5】\n\n`package.json`如下：\n\n```json\n{\n  \"dependencies\": {\n    \"supabase-wechat-stable-v2\": \"^2.2.0\",\n    \"tdesign-miniprogram\": \"^1.9.7\"\n  }\n}\n```\n\n`index.wxml` 如下：\n\n```xml\n<!--index.wxml-->\n<scroll-view class=\"scrollarea\" scroll-y type=\"list\">\n  <view class=\"container\">\n    <view class=\"button-example\">\n      <t-button bind:tap=\"onButtonTap\" data-type=\"broadcast\" theme=\"primary\" size=\"large\" block>测试Broadcast</t-button>\n      <view class=\"spacer\"></view>\n      <t-button bind:tap=\"onButtonTap\" data-type=\"presence\" theme=\"primary\" size=\"large\" block>测试Presence</t-button>\n    </view>\n  </view>\n</scroll-view>\n```\n\n`index.js` 如下：\n\n```js\n// index.js\nimport {\n  RealtimeClient\n} from 'supabase-wechat-stable-v2/realtime-js/src'\n\nconst url = \"ws://supabase-realtime-160426-9-1307578329.sh.run.tcloudbase.com/socket\"; // 替换为你的自定义域名或者使用默认域名进行测试\nconst api_key = \"******\"; // 替换为上文的api_key\n\nPage({\n  data: {},\n  onButtonTap: function (event) {\n    const buttonType = event.currentTarget.dataset.type; // 获取按钮标识\n\n    // 初始化公共客户端\n    const client = new RealtimeClient(url, {\n      params: { \"apikey\": api_key }\n    });\n\n    // 根据按钮类型执行不同逻辑\n    if (buttonType === 'broadcast') {\n      this.handleBroadcast(client);\n    } else if (buttonType === 'presence') {\n      this.handlePresence(client);\n    }\n  },\n\n  // Broadcast处理逻辑\n  handleBroadcast: function (client) {\n    console.log(\"Broadcast按钮触发\");\n    const room = client.channel('room_01');\n    room.subscribe(async (status, err) => {\n      if (status === 'SUBSCRIBED') {\n        await room.send({\n          type: 'broadcast',\n          event: 'RoomBroadCast',\n          payload: {\n            from_user: \"wx_client_1\",\n            to_user: \"*\",\n            message: 'wx_client_1 join the room...'\n          },\n        })\n      }\n    })\n  },\n\n  // Presence处理逻辑\n  handlePresence: function (client) {\n    console.log(\"Presence按钮触发\");\n    const room = client.channel('room_02');\n    const userStatus = {\n      user: 'wx-user-1',\n      online_at: new Date().toISOString(),\n    }\n    room.subscribe(async (status) => {\n      if (status == 'SUBSCRIBED') {\n        const presenceTrackStatus = await room.track(userStatus)\n        console.log(presenceTrackStatus)\n      }\n    })\n  }\n})\n```\n## 4. 其他注意事项\n\n**数据持久性**：实时通讯示例默认不持久保存数据库数据，服务重启后 tenants 信息可能丢失。建议在服务启动时检查并重建 tenants。\n**域名使用**：强烈建议在生产环境中使用自定义域名，云托管提供的默认域名仅适用于调试。\n**运行方式**：建议使用“持续运行”的方式部署实时通讯服务，以避免服务重启后需要重新初始化的问题。\n\n更多配置方式，请参考[Supabase Realtime GitHub 仓库](https://github.com/supabase/realtime)。\n\n更多示例用法，请参考[Supabase Realtime 文档](https://supabase.com/docs/guides/realtime)\n\n",
    "order": 50,
    "containerPort": 4000,
    "isCompile": true,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "Elixir",
      "supabase-realtime"
    ],
    "envParams": [
      {
        "value": "dc447559-996d-4761-a306-f47a5eab1623",
        "key": "API_JWT_SECRET"
      },
      {
        "value": "realtime",
        "key": "APP_NAME"
      },
      {
        "value": "SET search_path TO _realtime",
        "key": "DB_AFTER_CONNECT_QUERY"
      },
      {
        "value": "supabaserealtime",
        "key": "DB_ENC_KEY"
      },
      {
        "value": "127.0.0.1",
        "key": "DB_HOST"
      },
      {
        "value": "postgres",
        "key": "DB_NAME"
      },
      {
        "value": "postgres",
        "key": "DB_PASSWORD"
      },
      {
        "value": "5432",
        "key": "DB_PORT"
      },
      {
        "value": "postgres",
        "key": "DB_USER"
      },
      {
        "value": "\"''\"",
        "key": "DNS_NODES"
      },
      {
        "value": "\"-proto_dist inet_tcp\"",
        "key": "ERL_AFLAGS"
      },
      {
        "value": "1.14",
        "key": "GOSU_VERSION"
      },
      {
        "value": "60000",
        "key": "JANITOR_INTERVAL"
      },
      {
        "value": "en_US.utf8",
        "key": "LANG"
      },
      {
        "value": "info",
        "key": "LOG_LEVEL"
      },
      {
        "value": "14",
        "key": "PG_MAJOR"
      },
      {
        "value": "4000",
        "key": "PORT"
      },
      {
        "value": "1000000",
        "key": "RLIMIT_NOFILE"
      },
      {
        "value": "true",
        "key": "RUN_JANITOR"
      },
      {
        "value": "UpNVntn3cDxHJpq99YMc1T1AQgQpc8kfYTuRgBiYa15BLrx8etQoXz3gZv1/u2oq",
        "key": "SECRET_KEY_BASE"
      },
      {
        "value": "true",
        "key": "SEED_SELF_HOST"
      }
    ],
    "category": "project",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "empty-agent",
    "lang": "zh",
    "language": "NodeJS",
    "runtimeVersion": "Nodejs20.18",
    "entryPoint": "main",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-agent-empty-agent:0.0.1",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/a13db540ae8c46b4e396f2fe7dfb0bb0-empyt-agent-v1.0.0.zip",
    "titleIcon": "https://7163-qcloud-tcb-console-1258344699.tcb.qcloud.la/cloudbase-cms/upload/2025-07-11/th2c8mlsvartzxmbv2ozpffmz9vlbc0o_.svg",
    "_id": "f51ab3f0689ea66901ed4cab4e72a815",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2025-12-29 19:40:02",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "alfredhuang",
    "title": "空白 Agent 模板",
    "description": "云开发提供的智能体开发模板，您可以基于此模板进行代码编写和更新",
    "sampleCode": "# 空白 Agent\n\n本模板提供了自定义 Agent 的云托管实现，通过使用函数型开放框架，封装了一个最简的 Agent 接口，部署后提供以下 Agent 相关接口：\n\n```shell\nPOST    /v1/aibot/bots/:botId/send-message       发送消息\n```\n\n本模板使用了 `@cloudbase/aiagent-framework`，只需要实现该库定义的 Agent 接口即可完成接入，详见 `src/bot.js`。\n\n## 部署须知\n\n在部署至云托管前，请删除本目录的 node_modules。\n\n## 本地调试指引\n\n运行 `npm run dev` 启动本地调试。\n\n现在即可通过 `127.0.0.1:3000` 访问本地 Agent 服务了。\n\n### cURL 访问本地服务\n\n直接访问 `127.0.0.1:3000` 即可，例如 `POST /v1/aibot/bots/:botId/send-message 发送消息` 接口：\n\n```shell\ncurl 'http://127.0.0.1:3000/v1/aibot/bots/ibot-myBot-botTag/send-message' \\\n  -H 'Accept: text/event-stream' \\\n  -H 'Content-Type: application/json' \\\n  --data-raw '{\"msg\":\"hi\"}'\n```\n\n### Web 访问本地服务\n\n使用 Web 页面访问本地服务，可以直接编写网络请求代码，也可以使用 [@cloudbase/js-sdk 提供的 Agent SDK](https://docs.cloudbase.net/ai/agent/sdk)。\n\n若使用 @cloudbase/js-sdk，则需要配置一定的代理服务。以 [whistle](https://wproxy.org/whistle/) 举例，按照如下配置：\n\n```shell\n/.*.api.tcloudbasegateway.com/([^S]*)/ http://localhost:3000/$1\n```\n\n即可使用 @cloudbase/js-sdk 用以下代码访问到本地服务：\n\n```js\nconst res = await ai.bot.sendMessage({\n  botId: 'ibot-myBot-botTag',\n  msg: 'hi',\n  history: []\n})\n\nfor await (let x of res.textStream) {\n  console.log(x);\n}\n```\n\n## 参考文档\n\n- [函数型开发框架](https://docs.cloudbase.net/cbrf/intro)\n- [云开发 AI+](https://docs.cloudbase.net/ai/introduce)",
    "order": 55,
    "containerPort": 3000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "函数型智能体"
    ],
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "coze-py",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/coze-python:0.0.6",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/coze-python",
    "scfDemoID": "demo-30c5swy5",
    "zipFilePath": "https://tcb.cloud.tencent.com/ai/agent/templates_tcbr_zip/coze-python-0.0.6.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/85ba8656e75faf2c1c8f859c54f71182.png",
    "_id": "eed7c91a6972e8a500598fef53e61711",
    "_mainDep": "test1",
    "_openid": "1938132689870721025",
    "createdAt": "2026-01-23 11:19:01",
    "updatedAt": "2026-07-17 10:33:27",
    "owner": "alfredhuang",
    "createBy": "alfredhuang",
    "updateBy": "wangwu1",
    "title": "扣子",
    "description": "你在扣子平台搭好 Bot,这里只生成一段对接代码,把扣子密钥配进环境变量",
    "sampleCode": "# 创建虚拟环境\npython3.10 -m venv venv\nsource venv/bin/activate  # 激活虚拟环境\n\n# 安装依赖到 env 目录（用于 SCF 部署）\npython -m pip install -r ./requirements.txt \\\n    --platform manylinux_2_17_x86_64 \\\n    --target ./env \\\n    --python-version 3.10 \\\n    --only-binary=:all: \\\n    --upgrade\n\n# 运行应用\npython app.py\n\n# 服务将在 9000 端口启动\n# 访问 http://localhost:9000 测试",
    "guide": "查看环境变量的[获取指南](https://www.coze.cn/open/playground/chat_v3)",
    "order": 50,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "第三方平台",
      "对接",
      "工作流"
    ],
    "envParams": [
      {
        "placeholder": "请输入 Coze 平台的 token",
        "fileld": "API Token",
        "key": "COZE_API_TOKEN"
      },
      {
        "placeholder": "请输入 Coze 平台的 bot_id",
        "fileld": "智能体ID",
        "key": "COZE_BOT_ID"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/coze-python"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/coze-python"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/coze-python"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "Next.js",
    "lang": "zh",
    "language": "React",
    "runtimeVersion": "React",
    "entryPoint": "main",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cbrf-template-nextjs-example:v1.0.0",
    "gitUrl": "https://github.com/TencentCloudBase/cloudrun-nextjs.git;https://gitee.com/TencentCloudBase/cloudrun-nextjs.git",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/fe0c7acd0e1e8eb34b5e95d3adf477ec-cloudrun-nextjs.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/2091a45cf2905b9c8f376e94b03b08d4-Next.js.svg",
    "_id": "f51ab3f0689ea66901ed4cb22ecdde6e",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2026-01-08 16:06:11",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Next.js 模板",
    "description": "基于 Next.js 的 Web 应用示例",
    "sampleCode": "# 快速部署 Next.js 应用\n\n模板介绍了如何在云开发云托管下快速部署 Next.js Web 应用\n\n## 安装体验\n\n- 在云托管菜单下选者通过模板部署\n- 选择 Next.js 模板，点击部署\n- 等待部署完成，使用默认域名访问，即可查看 Next.js 应用\n\n## 基于模板开发\n\n模板使用 Next.js v15 官方脚手架创建，并且编写了部署需要的 dockerfile 文件，可基于模板开发，然后部署到云托管，使用方式如下：\n\n### 下载 Next.js 模板\n\n前往 github [模板仓库](https://github.com/TencentCloudBase/tcbr-templates/tree/main/cloudrun-nextjs)下载模板。\n\n### 本地开发\n\n安装依赖\n\n```bash\nnpm install\n# or\nyarn install\n```\n\n运行dev命令\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\n### 通过代码包部署\n\n开发完成后，在云托管中选择代码包部署，上传代码包，等待构建完成\n\n### 更多部署方式\n\n根据托管代码的方式，可选择不同的部署方式，如 Git 仓库部署，镜像部署等",
    "order": 65,
    "containerPort": 3000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "next.js",
      "react",
      "tailwind.css"
    ],
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "NocoDB",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs",
    "entryPoint": "main",
    "imagePath": "nocodb/nocodb:0.264.0",
    "linkurl": "/platform-run/service/create?type=image&image=nocodb/nocodb:0.264.0&serverName=nocodb&port=8080",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/fddd8e986d7a29262e4a13c8f369809a-nocodb-icon.svg",
    "_id": "f51ab3f0689ea66901ed4cb33687e1c8",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2026-02-04 17:06:49",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "NocoDB",
    "description": "NocoDB 是一个开源的无代码数据库平台，它将关系型数据库（如MySQL、PostgreSQL、SQL Server 等）转化为一个类似 Airtable 的智能电子表格界面。它允许用户通过直观的界面管理数据、创建自定义应用，无需编写代码。NocoDB 支持多种数据库、团队协作、权限管理，并提供API，适用于各种数据管理和应用开发场景。﻿",
    "sampleCode": "# 开源神器 NocoDB: 零代码玩转数据库\n\n## 介绍\n\nNocoDB 是一个开源的无代码数据库平台，它将关系型数据库（如MySQL、PostgreSQL、SQL Server 等）转化为一个类似 Airtable 的智能电子表格界面。它允许用户通过直观的界面管理数据、创建自定义应用，无需编写代码。NocoDB 支持多种数据库、团队协作、权限管理，并提供API，适用于各种数据管理和应用开发场景。\n\n## 使用\n\n* 1、进入[腾讯云托管](https://tcb.cloud.tencent.com/dev?#/platform-run/service/create?type=template)；\n* 2、选择 ```NocoDB``` 模版；\n* 3、跳转到模版安装页面；\n* 4、填写环境变量\n     \n     * NC_ADMIN_EMAIL: 默认管理员邮箱，可自定义，默认为 ```admin@nocodb.com```；\n     * NC_ADMIN_PASSWORD: 默认管理员密码，可自定义，默认为 ```admin@123456```；\n     * NC_DB: MySQL 数据库连接信息```mysql2://{MYSQL_HOST}:{MYSQL_PORT}?u={MYSQL_USERNAME}&p={MYSQL_PASSWORD}&d={MYSQL_DBNAME}```, 需要使用真实数据库连接信息，替换上述值；（注意: 建议优先使用 8.x MySQL 数据库，同时需要提前创建新的数据库 Database）\n* 5、填写完成之后，等待部署完成后，返回```概述```页面，点击域名即可访问。\n\n## MySQL 数据库集成\n\n模版中可通过以下几种方式连接数据库:\n* 使用云开发 MySQL 数据库\n* 连接公网 MySQL 数据库\n* 通过内网连接腾讯云账号下的 MySQL 数据库\n\n以上具体可参考：[云托管 MySQL 数据库集成](https://docs.cloudbase.net/run/develop/databases/mysql)\n\n## 更多\n\n更多 NocoDB 配置请参考: [NocoDB 环境变量配置](https://nocodb.com/docs/self-hosting/environment-variables)",
    "order": 70,
    "containerPort": 8080,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "OpenSource",
      "Nodejs",
      "NocoDB"
    ],
    "envParams": [
      {
        "value": "admin@nocodb.com",
        "key": "NC_ADMIN_EMAIL"
      },
      {
        "value": "admin@123456",
        "key": "NC_ADMIN_PASSWORD"
      },
      {
        "value": "mysql2://{MYSQL_HOST}:{MYSQL_PORT}?u={MYSQL_USERNAME}&p={MYSQL_PASSWORD}&d={MYSQL_DBNAME}",
        "key": "NC_DB"
      }
    ],
    "category": "project",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "Metebase",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs",
    "entryPoint": "main",
    "imagePath": "metabase/metabase:v0.55.10.1",
    "linkurl": "/platform-run/service/create?type=image&image=metabase/metabase:v0.55.10.1&serverName=metabase&port=3000",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/0a9f0847ae51d1f57fcbe8b475dfba79-metabase.svg",
    "_id": "f51ab3f0689ea66901ed4cb41c74f5b4",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2026-02-04 17:06:25",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Metabase",
    "description": "Metabase 是一个开源的商业智能(BI) 工具，它允许用户连接到各种数据源，并以图表、表格等形式可视化数据，从而进行数据分析和探索。Metabase 的主要特点包括易用性、可视化能力、交互式仪表板、团队协作和安全性。﻿",
    "sampleCode": "# Metabase\n\n## 介绍\n\nMetabase 是一个开源的商业智能(BI) 工具，它允许用户连接到各种数据源，并以图表、表格等形式可视化数据，从而进行数据分析和探索。Metabase 的主要特点包括易用性、可视化能力、交互式仪表板、团队协作和安全性。\n\n## 使用\n\n* 1、进入[腾讯云托管](https://tcb.cloud.tencent.com/dev?#/platform-run/service/create?type=template)；\n* 2、选择 ```Metabase``` 模版；\n* 3、跳转到模版安装页面；\n* 4、填写环境变量\n     \n     * MB_DB_USER: 数据库连接用户名称；\n     * MB_DB_PASS: 数据库连接用户密码;\n     * MB_DB_CONNECTION_URI: MySQL 数据库连接信息```jdbc:mysql://{MYSQL_HOST}:{MYSQL_PORT}/{MYSQL_DBNAME}?sessionVariables=sql_mode='STRICT_TRANS_TABLES'```, 需要使用真实数据库连接信息，替换上述值；（注意: 建议优先使用 8.x MySQL 数据库，同时需要提前创建新的数据库 Database）\n* 5、填写完成之后，等待部署完成后，返回```概述```页面，点击域名即可访问。\n\n## MySQL 数据库集成\n\n模版中可通过以下几种方式连接数据库:\n* 使用云开发 MySQL 数据库\n* 连接公网 MySQL 数据库\n* 通过内网连接腾讯云账号下的 MySQL 数据库\n\n以上具体可参考：[云托管 MySQL 数据库集成](https://docs.cloudbase.net/run/develop/databases/mysql)\n\n## 更多\n\n更多 NocoDB 配置请参考: [Metabase 环境变量配置](https://www.metabase.com/docs/latest/configuring-metabase/environment-variables)",
    "order": 75,
    "containerPort": 3000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "OpenSource",
      "Nodejs",
      "Metabase"
    ],
    "envParams": [
      {
        "value": "",
        "key": "MB_DB_CONNECTION_URI"
      },
      {
        "value": "",
        "key": "MB_DB_PASS"
      },
      {
        "value": "",
        "key": "MB_DB_USER"
      }
    ],
    "category": "project",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "strapi",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs",
    "entryPoint": "app.js",
    "linkurl": "/platform-run/service/create?type=package&zipUrl=https://clooudbaserun-az-1258016615.cos.ap-shanghai.myqcloud.com/languages-frameworks/strapi-project.zip&serverName=strapi&port=1337",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/02b21035b0f3fa6603f060aa3d60543f-tvqgm4om55xstl2ti8pv7ni6q7jwg2eo_.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/c92cbba7713c3eee53465f1323b1db48-strapi.svg",
    "_id": "f51ab3f0689ea66901ed4cb55b6a1e05",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2026-02-04 17:05:49",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Strapi CMS",
    "description": "Strapi 是一款开源的无头内容管理系统（Headless CMS），它使用Node.js 构建，旨在为开发者提供灵活高效的开发体验。它允许用户快速搭建可定制的API，满足各种应用场景的内容管理需求。Strapi 以其易用的管理界面和强大的插件系统，简化了内容创建和管理流程，让开发者可以专注于前端开发和用户体验。",
    "sampleCode": "# StrapiCMS\n## 介绍\n\nStrapi 是一款开源的无头内容管理系统（Headless CMS），它使用Node.js 构建，旨在为开发者提供灵活高效的开发体验。它允许用户快速搭建可定制的API，满足各种应用场景的内容管理需求。Strapi 以其易用的管理界面和强大的插件系统，简化了内容创建和管理流程，让开发者可以专注于前端开发和用户体验。\n\n## 使用\n\n* 1、进入[腾讯云托管](https://tcb.cloud.tencent.com/dev?#/platform-run/service/create?type=template)；\n* 2、选择 ```StrapiCMS``` 模版；\n* 3、跳转到模版安装页面；\n* 4、填写环境变量\n     \n     * DATABASE_CLIENT: 数据库连接类型，默认为 ```mysql```；\n     * DATABASE_HOST: 数据库连接地址；\n     * DATABASE_PORT: 数据库连接端口；（注意: 建议优先使用 8.x MySQL 数据库，同时需要提前创建新的数据库 Database）\n     * DATABASE_NAME: 数据库连接库名称;\n     * DATABASE_USERNAME: 数据库连接用户名称；\n     * DATABASE_PASSWORD: 数据库连接密码;\n     * JWT_SECRET: 可以通过 ```Node.js crypto.randomBytes(16).toString('base64')``` 生成\n* 5、填写完成之后，等待部署完成后，返回```概述```页面，点击域名即可访问。\n\n## MySQL 数据库集成\n\n模版中可通过以下几种方式连接数据库:\n* 使用云开发 MySQL 数据库\n* 连接公网 MySQL 数据库\n* 通过内网连接腾讯云账号下的 MySQL 数据库\n\n以上具体可参考：[云托管 MySQL 数据库集成](https://docs.cloudbase.net/run/develop/databases/mysql)\n\n## 腾讯云对象存储集成\n\n默认情况下， Strapi CMS 相关图片均存储在本地目录中，伴随着服务重启或更新，本地目录中的文件可能会丢失，所以我们强烈建议将文件存储在腾讯云对象存储中。(对象存储具体可以参考: [strapi腾讯云对象存储支持](https://market.strapi.io/providers/strapi-provider-upload-tencent-cloud-storage))\n\n### 创建一个 strapi 项目\n\n#### 条件\n\n* Node.js：仅限活动 LTS 或维护 LTS 版本支持（当前v20和v22）。奇数版本的 Node（称为 Node.js 的“当前”版本）不受支持（例如 v21、v23）。\n* 您首选的 Node.js 包管理器：\n  * npm（v6及以上）\n\n#### 运行安装脚本并创建 Strapi 项目\n\n* 1、在终端运行一下命令\n```\nnpx create-strapi@latest strapi-project\n```\n\n* 2、终端会提示您登录注册,您也可以选择跳过登录注册过程;\n\n* 3、选择是否使用 sqlite 数据库，选择 ```n```, 并选择 ```mysql``` 数据库;\n\n* 4、填写真实的数据库信息即可。\n\n* 5、按照提示选择即可，然后等待项目初始化完成。\n\n#### 运行使用\n\n执行 ```npm run develop``` 即可在本地启动项目，项目启动后，通过 ```http://localhost:1337/admin``` 即可访问项目。\n\n#### 项目部署到腾讯云托管\n\n在项目目录下增加 ```Dockerfile``` 文件，内容如下:\n\n```\nFROM node:22-alpine\n# Installing libvips-dev for sharp Compatibility\nRUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev nasm bash vips-dev git\nARG NODE_ENV=development\nENV NODE_ENV=${NODE_ENV}\n\nWORKDIR /opt/\nCOPY package.json package-lock.json ./\nRUN npm install -g node-gyp\nRUN npm config set fetch-retry-maxtimeout 600000 -g && npm install\nENV PATH=/opt/node_modules/.bin:$PATH\n\nWORKDIR /opt/app\nCOPY . .\nRUN chown -R node:node /opt/app\nUSER node\nRUN [\"npm\", \"run\", \"build\"]\nEXPOSE 1337\nCMD [\"npm\", \"run\", \"develop\"]\n```\n\n#### 部署到云托管\n(PS: 注意上传代码包时，请删除本地 node_module 目录)\n\n打开腾讯云托管, 点击通过本地代码部署 -> 填写服务名称 -> 部署方式选择上传代码包 -> 代码包类型选择文件夹 -> 选择项目目录进行上传 -> 端口填写 1337 -> 填写相关环境变量, 点击创建并等待创建完成即可。\n\n### 安装腾讯云对象存储插件\n```\n# using yarn\nyarn add strapi-provider-upload-tencent-cloud-storage\n\n# using npm\nnpm install strapi-provider-upload-tencent-cloud-storage --save\n```\n\n### 插件配置\n\n修改项目 ```./config/plugins.ts``` 文件内容如下:\n\n```\nmodule.exports = ({ env }) => ({\n  // ...\n  upload: {\n    config: {\n      provider: \"strapi-provider-upload-tencent-cloud-storage\",\n      providerOptions: {\n        SecretId: env(\"COS_SECRET_ID\"),\n        SecretKey: env(\"COS_SECRET_KEY\"),\n        Region: env(\"COS_REGION\"),\n        Bucket: env(\"COS_BUCKET\"),\n        ACL: \"private\", // <= set ACL to private\n      },\n    },\n  },\n  // ...\n});\n```\n\n部署时，设置 ```COS_SECRET_ID```, ```COS_SECRET_KEY```, ```COS_REGION```, ```COS_BUCKET``` 环境变量。\n\n### 安全配置\n修改项目 ```./config/middlewares.ts``` 文件内容如下:\n\n```\nmodule.exports = [\n  // ...\n  {\n    name: \"strapi::security\",\n    config: {\n      contentSecurityPolicy: {\n        useDefaults: true,\n        directives: {\n          \"connect-src\": [\"'self'\", \"https:\"],\n          \"img-src\": [\n            \"'self'\",\n            \"data:\",\n            \"blob:\",\n            \"market-assets.strapi.io\",\n            \"yourBucketName.cos.yourRegion.myqcloud.com\",\n          ],\n          \"media-src\": [\n            \"'self'\",\n            \"data:\",\n            \"blob:\",\n            \"market-assets.strapi.io\",\n            \"yourBucketName.cos.yourRegion.myqcloud.com\",\n          ],\n          upgradeInsecureRequests: null,\n        },\n      },\n    },\n  },\n  // ...\n];\n```\n\n### 腾讯云云开发对象存储\n\n你也可以使用[腾讯云开发对象存储](https://tcb.cloud.tencent.com/dev#/storage)作为默认存储来使用。其使用方式和腾讯云对象存储使用方式完全一致。其默认地域为上海(ap-shanghai), 桶名称为默认目录名称同时增加```-{appid}``` appid 可以在[腾讯云账号信息](https://console.cloud.tencent.com/developer) 页面获取 APPID 字段信息即可。",
    "order": 80,
    "containerPort": 1337,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "OpenSource",
      "Nodejs",
      "Strapi"
    ],
    "envParams": [
      {
        "value": "mysql",
        "key": "DATABASE_CLIENT"
      },
      {
        "value": "",
        "key": "DATABASE_HOST"
      },
      {
        "value": "strapi",
        "key": "DATABASE_NAME"
      },
      {
        "value": "",
        "key": "DATABASE_PASSWORD"
      },
      {
        "value": "3306",
        "key": "DATABASE_PORT"
      },
      {
        "value": "",
        "key": "DATABASE_USERNAME"
      },
      {
        "value": "q9v8J3m+X1aR7FzN0YbW9g==",
        "key": "JWT_SECRET"
      }
    ],
    "category": "project",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "n8n",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/n8n-js:v0.0.1",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/n8n-js",
    "scfDemoID": "demo-oph7qmar",
    "zipFilePath": "https://tcb.cloud.tencent.com/ai/agent/templates_tcbr_zip/n8n-js-v0.0.1.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/644f18b601598150f32ca2f668d08603.svg",
    "_id": "1ace8a8369a261070008bef953de0dcd",
    "_mainDep": "test2",
    "_openid": "1795781876440469505",
    "createdAt": "2026-02-28 11:29:11",
    "updatedAt": "2026-07-17 10:27:51",
    "owner": "huming",
    "createBy": "huming",
    "updateBy": "wangwu1",
    "title": "n8n接入模版",
    "description": "你在 n8n 里编排好工作流,这里生成对接代码,触发你的 n8n webhook",
    "sampleCode": "npm install && node src/index.js\n",
    "guide": "查看[配置文档](https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/n8n-js#n8n-workflow-%E9%85%8D%E7%BD%AE)，如需部署开源版本，[点击前往](https://tcb.cloud.tencent.com/dev#/lighthouse/create?blueprintType=APP_OS&blueprintId=lhbp-5utfah5i)",
    "order": 55,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": false,
    "funcTypes": [
      "tcbrContainer",
      "scfWeb"
    ],
    "tags": [
      "第三方平台",
      "对接",
      "工作流"
    ],
    "envParams": [
      {
        "visible": true,
        "placeholder": "请输入 n8n Webhook URL，来自 \"When chat message received\" 节点",
        "key": "N8N_WEBHOOK_URL"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/n8n-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/n8n-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/n8n-js"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "yuanqi-js",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-agent-yuanqi-agent:0.0.1",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudrunfunctions/yuanqi-agent",
    "zipFilePath": "https://tcb.cloud.tencent.com/cloud-run-function-template/cloudbase-custom-yuanqi-agent.zip",
    "titleIcon": "https://7163-qcloud-tcb-console-1258344699.tcb.qcloud.la/cloudbase-cms/upload/2025-07-03/k9kew8lmirmkk5hdk4lvbtigslpk5hii_.png",
    "_id": "e4a8c1446972ed8e005663b7038db739",
    "_mainDep": "test1",
    "_openid": "1938132689870721025",
    "createdAt": "2026-01-23 11:39:58",
    "updatedAt": "2026-07-01 15:10:02",
    "owner": "alfredhuang",
    "createBy": "alfredhuang",
    "updateBy": "wangwu1",
    "title": "腾讯元器（旧版）",
    "description": "提供 1 亿免费 token，支持微信支付MCP、微信公众号知识库、工作流编排、角色扮演等功能",
    "sampleCode": "可以对接元器旧版 Agent，它提供 1 亿免费 token，支持工作流编排、公众号知识库、角色扮演等功能",
    "guide": "去[腾讯元器](https://yuanqi.tencent.com/index)创建智能体，并获取智能体ID和Token，[查看文档](https://docs.qq.com/aio/p/scxmsn78nzsuj64?p=BVUAh9OGFvSEFA7CgBOyED4)",
    "order": 90,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "tcbrFunc"
    ],
    "tags": [
      "Agent 开发平台"
    ],
    "envParams": [
      {
        "placeholder": "请输入元器的智能体ID",
        "fileld": "智能体ID",
        "key": "YUAN_QI_AGENT_ID"
      },
      {
        "placeholder": "请输入元器的 Token",
        "fileld": "元器Token",
        "key": "YUAN_QI_API_KEY"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudrunfunctions/yuanqi-agent"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudrunfunctions/yuanqi-agent"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudrunfunctions/yuanqi-agent"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "adp-test",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-agent-adp-js:latest",
    "scfDemoID": "demo-m9d3d57z",
    "zipFilePath": "https://tcb.cloud.tencent.com/cloud-run-function-template/adp-js.zip",
    "_id": "2f6f1f4b698300ba00d31f494f009b68",
    "_mainDep": "test2",
    "_openid": "1795781876440469505",
    "createdAt": "2026-02-04 16:18:02",
    "updatedAt": "2026-02-28 12:07:15",
    "owner": "huming",
    "createBy": "huming",
    "updateBy": "huming",
    "title": "ADP-test",
    "order": 100,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "Agent 开发平台"
    ],
    "envParams": [
      {
        "visible": true,
        "placeholder": "请输入腾讯云智能体开发平台的 AppKey",
        "key": "ADP_APP_KEY"
      }
    ],
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "ai-test",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-agent-adp-js:latest",
    "zipFilePath": "https://tcb.cloud.tencent.com/cloud-run-function-template/adp-js.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/5f02790737e0ff71ab148cfd965d88b2.svg",
    "_id": "aca45c226980463f00969c76554a3305",
    "_mainDep": "test2",
    "_openid": "1795781876440469505",
    "createdAt": "2026-02-02 14:37:51",
    "updatedAt": "2026-07-01 20:24:39",
    "owner": "huming",
    "createBy": "huming",
    "updateBy": "alfredhuang",
    "title": "ADP 开发测试模板",
    "description": "这是测试模板",
    "order": 100,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "Agent 开发平台",
      "http",
      "Agent"
    ],
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "cloudbase-agent-v2",
    "lang": "zh",
    "language": "Javascript",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudbase-js:0.0.1",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/cloudbase-js",
    "zipFilePath": "https://tcb.cloud.tencent.com/ai/agent/templates_tcbr_zip/cloudbase-js-0.0.1.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/5f02790737e0ff71ab148cfd965d88b2.svg",
    "_id": "e35392d06a013de901dafa7d29699077",
    "_mainDep": "test2",
    "_openid": "1795781876440469505",
    "createdAt": "2026-05-11 10:24:41",
    "updatedAt": "2026-05-11 10:24:41",
    "owner": "huming",
    "createBy": "huming",
    "updateBy": "huming",
    "title": "云开发 Agent 模板",
    "description": "云开发开源Agent，支持功能如下：MCP、语音功能、数据模型、文件上传、多会话、知识库、联网搜索、人设与回复约束、开场白、问题建议。",
    "guide": "点击去[获取 API Key](./dev#/env/apikey)",
    "order": 100,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "Agent 开发平台"
    ],
    "envParams": [
      {
        "visible": true,
        "placeholder": "请输入云开发的服务端 API Key",
        "fileld": "CLOUDBASE_APIKEY",
        "key": "CLOUDBASE_APIKEY"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/cloudbase-js"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/cloudbase-js"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "dify-py",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cloudrun-dify-python-agent:latest",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/dify-python",
    "scfDemoID": "demo-9kbl6coz",
    "zipFilePath": "https://tcb.cloud.tencent.com/cloud-run-function-template/dify-agent.zip",
    "titleIcon": "https://qcloudimg.tencent-cloud.cn/raw/42daad18f5376a08367c027c4b59d50a.png",
    "_id": "b387ab5569816ffb00a8873411066acc",
    "_mainDep": "test2",
    "_openid": "1795781876440469505",
    "createdAt": "2026-02-03 11:48:11",
    "updatedAt": "2026-07-16 21:50:23",
    "owner": "huming",
    "createBy": "huming",
    "updateBy": "wangwu1",
    "title": "Dify",
    "description": "可以对接 Dify 官网和开源部署版本。支持对话API、支持流式响应和阻塞响应、支持 Agent 模式工具调用、支持JWT 认证集成",
    "sampleCode": "支持 Dify 对话API、支持流式响应和阻塞响应、支持 Agent 模式工具调用、支持JWT 认证集成",
    "guide": "查看[获取 API Key 文档](https://docs.dify.ai/zh/use-dify/publish/developing-with-apis)，如需部署开源版本，[点击前往](https://tcb.cloud.tencent.com/dev#/lighthouse/create?blueprintType=APP_OS&blueprintId=lhbp-hvd5b064)",
    "order": 100,
    "containerPort": 9000,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "scfWeb",
      "tcbrContainer"
    ],
    "tags": [
      "Agent 开发平台"
    ],
    "envParams": [
      {
        "visible": true,
        "placeholder": "请输入 Dify 平台的 API Key ",
        "key": "DIFY_API_KEY"
      },
      {
        "visible": true,
        "placeholder": "请输入 Dify 平台的基础 URL",
        "value": "https://api.dify.ai/v1",
        "key": "DIFY_API_BASE"
      }
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/dify-python"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/dify-python"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/httpfunctions/dify-python"
        }
      }
    ],
    "category": "aiAgent",
    "targetPlatform": [
      "default"
    ]
  },
  {
    "identifier": "go-helloworld",
    "lang": "zh",
    "language": "Go",
    "runtimeVersion": "Go1",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/go-helloworld",
    "_id": "daef7e716a4f7b5c000916cb2ff1653e",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:43:40",
    "updatedAt": "2026-07-09 18:49:55",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Go 云托管",
    "description": "Go 语言 CloudBase Run 容器部署示例",
    "order": 115,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "go",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/go-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/go-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/go-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "helloworld-tcbr-func",
    "lang": "zh",
    "language": "Node.js",
    "runtimeVersion": "Nodejs20.19",
    "imagePath": "crunbuild-az-new.tencentcloudcr.com/cloudbase/cbrf-template-basic-example:1.0.0",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/766e4c524c0e932d914d8e14d1fb1ebd-p130ec0d09p6f9de4m15lyb5zn9qk5vp_.zip",
    "_id": "f51ab3f0689ea66901ed4cc01d70727a",
    "_openid": "1524963278340493312",
    "createdAt": "2025-08-15 11:15:53",
    "updatedAt": "2026-02-28 12:07:12",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "huming",
    "title": "Cloud Function In Cloud Run Example",
    "description": "Quickly create a cloud function in cloud run service. Upon completion, it will include callable functions like echo and log. For more details, see the template description.",
    "sampleCode": "Quickly create a cloud function in cloud run service. Upon completion, it will include callable functions like echo and log.: \n\n* Main path: Outputs \"Hello world!\"\n* echo: Outputs the specific request content\n\n\nYou can call the function in the mini program as follows:\n\n```js\n// cloud run call required environment ID, cannot be empty\nconst c1 = new wx.cloud.Cloud({\n  resourceEnv: 'env id'\n})\nawait c1.init()\n\nconst r1 = await c1.callContainer({\n  path: '/',   // Default function's request path\n  header: {\n    'X-WX-SERVICE': 'helloworld', // Fill in the name created helloworld\n  },\n  // Other parameters are the same as wx.request\n  method: 'GET',\n})\nconsole.log(r1) //output Hello world!\n\nconst r2 = await c1.callContainer({\n  path: '/echo',   // echo function's request path\n  header: {\n    'X-WX-SERVICE': 'helloworld', // Fill in the name created helloworld\n  },\n  // Other parameters are the same as wx.request\n  method: 'POST',\n  data: {\n    a: 1,\n    b: 2\n  }\n})\nconsole.log(r2)  //Output the specific request and time\n```\n\nFor more available content or usage methods, see [template project](https://github.com/TencentCloudBase/func-v2-template/tree/main)",
    "order": 100,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "tcbrFunc"
    ],
    "tags": [
      "Agent 开发平台"
    ],
    "targetPlatform": [
      "intl",
      "default"
    ]
  },
  {
    "identifier": "http-go-helloworld",
    "lang": "zh",
    "language": "Go",
    "runtimeVersion": "Go1",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-go-helloworld",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-go-helloworld.zip",
    "_id": "453530246a44ff1a00411a461667852f",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:50",
    "updatedAt": "2026-07-06 19:52:54",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "HTTP Go Hello World",
    "description": "Hello World",
    "order": 60,
    "isCompile": true,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "go",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-go-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-go-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-go-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-java-helloworld",
    "lang": "zh",
    "language": "Java",
    "runtimeVersion": "Java11",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-java-helloworld",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-java-helloworld.zip",
    "_id": "4aee0b4c6a44ff1a002c789a1c44584b",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:50",
    "updatedAt": "2026-07-06 19:52:56",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "HTTP Java Hello World",
    "description": "Hello World",
    "order": 100,
    "isCompile": true,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "java",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-java-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-java-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-java-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-java-springboot",
    "lang": "zh",
    "language": "Java",
    "runtimeVersion": "Java11",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-java-springboot",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-java-springboot.zip",
    "_id": "6bc128366a44ff1b004baf4e3499becb",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:51",
    "updatedAt": "2026-07-06 19:53:05",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Spring Boot 框架",
    "description": "Springboot",
    "order": 135,
    "isCompile": true,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "java",
      "spring-boot",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-java-springboot"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-java-springboot"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-java-springboot"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-nodejs-express",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-express",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-nodejs-express.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/fd8081e956a2608b586963017d0111f7-Express.svg",
    "_id": "453530246a44ff1b00411a82493888bc",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:51",
    "updatedAt": "2026-07-06 19:53:06",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Express 框架",
    "description": "基于 Nodejs 语言框架 Express 实现的 HTTP 调用示例",
    "sampleCode": "# 快速部署 Express 应用\n\n源码详情请参考\n\n* github: https://github.com/TencentCloudBase/cloudrun-express\n* gitee: https://gitee.com/TencentCloudBase/cloudrun-express",
    "order": 65,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "nodejs",
      "express",
      "web-framework"
    ],
    "displayPage": [
      "platform-run"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-express"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-express"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-nodejs-express"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-nodejs-helloworld",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-helloworld",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-nodejs-helloworld.zip",
    "_id": "b917d0ff6a44ff1c00cebd683dc5e78b",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:52",
    "updatedAt": "2026-07-06 19:53:07",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "HTTP Node.js Hello World",
    "description": "Hello World",
    "order": 160,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "nodejs",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-nodejs-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-nodejs-koa",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-koa",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-nodejs-koa.zip",
    "_id": "6bc128366a44ff1c004baf7114f4a0b9",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:52",
    "updatedAt": "2026-07-06 19:53:08",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Koa 框架",
    "description": "Koa",
    "order": 140,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "nodejs",
      "koa",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-koa"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-koa"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-nodejs-koa"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-nodejs-nestjs",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-nestjs",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-nodejs-nestjs.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/cd48f6afd878239823f461784613c21b-Nest.js.svg",
    "_id": "453530246a44ff1c00411ab25826c0a5",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:52",
    "updatedAt": "2026-07-09 18:02:46",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Nest.js 框架",
    "description": "基于 Nodejs 语言框架 Nestjs 实现的 HTTP 调用示例",
    "sampleCode": "# 快速部署 Nestjs 应用\n\n源码详情请参考:\n\n* github: https://github.com/TencentCloudBase/cloudrun-nestjs \n* gitee: https://gitee.com/TencentCloudBase/cloudrun-nestjs",
    "order": 70,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "nodejs",
      "nestjs",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-nestjs"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-nestjs"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-nodejs-nestjs"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-nodejs-sse",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-sse",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-nodejs-sse.zip",
    "_id": "6bc128366a44ff1d004baf937621732a",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:53",
    "updatedAt": "2026-07-06 19:53:09",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Node.js SSE",
    "description": "SSE",
    "order": 145,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "nodejs",
      "realtime",
      "sse"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-sse"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-sse"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-nodejs-sse"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-nodejs-websocket",
    "lang": "zh",
    "language": "Nodejs18.15",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-websocket",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-nodejs-websocket.zip",
    "_id": "453530246a44ff1d00411ad81cc3a699",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:53",
    "updatedAt": "2026-07-06 19:53:10",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Node.js WebSocket",
    "description": "Nodejs 语言 Websocket 模板",
    "sampleCode": "这是 HTTP 云函数 Nodejs 语言的 Websocket 模板.\n\n源码详情请参考:\n\n[github](https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/httpfunctions/websockets)",
    "order": 75,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "nodejs",
      "realtime",
      "websocket"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-websocket"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-nodejs-websocket"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-nodejs-websocket"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-php-helloworld",
    "lang": "zh",
    "language": "Php",
    "runtimeVersion": "Php7.4",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-php-helloworld",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-php-helloworld.zip",
    "_id": "b917d0ff6a44ff1e00cebd862e3c9fad",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:54",
    "updatedAt": "2026-07-06 19:53:11",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "HTTP PHP Hello World",
    "description": "Hello World",
    "order": 165,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "php",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-php-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-php-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-php-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-php-laravel",
    "lang": "zh",
    "language": "Php",
    "runtimeVersion": "Php7.4",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-php-laravel",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-php-laravel.zip",
    "_id": "b917d0ff6a44ff1e00cebd8e10473e96",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:54",
    "updatedAt": "2026-07-09 18:02:47",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Laravel 框架",
    "description": "Laravel",
    "order": 170,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "php",
      "laravel",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-php-laravel"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-php-laravel"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-php-laravel"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-php-slim",
    "lang": "zh",
    "language": "Php",
    "runtimeVersion": "Php7.4",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-php-slim",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-php-slim.zip",
    "_id": "6bc128366a44ff1f004bafb653ab552e",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:55",
    "updatedAt": "2026-07-09 18:02:48",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Slim 框架",
    "description": "Slim",
    "order": 150,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "php",
      "slim",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-php-slim"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-php-slim"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-php-slim"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-python-django",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-django",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-python-django.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/c00f664a239e237ba12d699c13366537-django-logo-positive.svg",
    "_id": "453530246a44ff1f00411b1e18578a00",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:55",
    "updatedAt": "2026-07-09 18:02:49",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Django 框架",
    "description": "基于 Python 语言 Django 框架实现的 HTTP 调用示例",
    "sampleCode": "# 快速部署 Django 应用\n\n源码详情请参考:\n\n* github: https://github.com/TencentCloudBase/cloudrun-django\n* gitee: https://gitee.com/TencentCloudBase/cloudrun-django",
    "order": 80,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "python",
      "django",
      "web-framework"
    ],
    "displayPage": [
      "platform-run"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-django"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-django"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-python-django"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-python-fastapi",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-fastapi",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-python-fastapi.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/339a9c05a139861acae41b63d2370277-FastAPI.svg",
    "_id": "b917d0ff6a44ff2000cebda1556a0ca6",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:56",
    "updatedAt": "2026-07-06 19:53:14",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "FastAPI 框架",
    "description": "基于 Python 框架 FastAPI 的 HTTP 服务",
    "sampleCode": "# 快速部署 FastAPI 应用\n\n源码详情请参考:\n\n* github: https://github.com/TencentCloudBase/cloudrun-fastapi\n* gitee: https://gitee.com/TencentCloudBase/cloudrun-fastapi",
    "order": 175,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "python",
      "fastapi",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-fastapi"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-fastapi"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-python-fastapi"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-python-flask",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-flask",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-python-flask.zip",
    "titleIcon": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/a43a2f509a02123f1b9275868452b1c3-flask-dark.svg",
    "_id": "4aee0b4c6a44ff20002c78ff1cdd609d",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:56",
    "updatedAt": "2026-07-06 19:53:15",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Flask 框架",
    "description": "基于 Python 语言 Flash 框架实现的 HTTP 调用示例",
    "sampleCode": "# 快速部署 Flask 应用\n\n源码详情请参考:\n\n* github: https://github.com/TencentCloudBase/cloudrun-flask\n* gitee: https://gitee.com/TencentCloudBase/cloudrun-flask",
    "order": 105,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "python",
      "flask",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-flask"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-flask"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-python-flask"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "http-python-helloworld",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-helloworld",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/http-python-helloworld.zip",
    "_id": "453530246a44ff2100411bb47c5a6d09",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 19:50:57",
    "updatedAt": "2026-07-06 19:53:15",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "HTTP Python Hello World",
    "description": "Hello World",
    "order": 85,
    "isCompile": false,
    "funcTypes": [
      "scfWeb"
    ],
    "tags": [
      "http",
      "python",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/http-python-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/http-python-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "java-springboot",
    "lang": "zh",
    "language": "Java",
    "runtimeVersion": "Java8",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/java-springboot",
    "_id": "6e56a4026a4f7b5d001838596f008d50",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:43:41",
    "updatedAt": "2026-07-09 18:52:19",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Spring Boot 云托管",
    "description": "基于 Spring Boot 框架的 CloudBase Run 容器部署示例",
    "order": 95,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "java",
      "spring-boot",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/java-springboot"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/java-springboot"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/java-springboot"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "nodejs-express",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-express",
    "_id": "daef7e716a4f7d61000936af697b9508",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:52:17",
    "updatedAt": "2026-07-09 18:52:17",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Express 云托管",
    "description": "基于 Express 框架的 CloudBase Run 容器部署示例",
    "order": 140,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "nodejs",
      "express",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-express"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-express"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/nodejs-express"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "nodejs-helloworld",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-helloworld",
    "_id": "daef7e716a4f7b5e000916e02d8ef5af",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:43:42",
    "updatedAt": "2026-07-09 18:49:56",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Node.js 云托管",
    "description": "Node.js 语言 CloudBase Run 容器部署示例",
    "order": 120,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "nodejs",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/nodejs-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "nodejs-koa",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-koa",
    "_id": "daef7e716a4f7d61000936b42556eaf1",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:52:17",
    "updatedAt": "2026-07-09 18:52:17",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Koa 云托管",
    "description": "基于 Koa 框架的 CloudBase Run 容器部署示例",
    "order": 145,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "nodejs",
      "koa",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-koa"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-koa"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/nodejs-koa"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "nodejs-nextjs",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-nextjs",
    "_id": "6e56a4026a4f7d6200185fd170672fd4",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:52:18",
    "updatedAt": "2026-07-09 18:52:18",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Next.js 云托管",
    "description": "基于 Next.js 框架的 CloudBase Run 容器部署示例",
    "order": 105,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "nodejs",
      "nextjs",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-nextjs"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-nextjs"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/nodejs-nextjs"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "nodejs-nuxt",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-nuxt",
    "_id": "daef7e716a4f7d62000936b91a867266",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:52:18",
    "updatedAt": "2026-07-09 18:52:18",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Nuxt.js 云托管",
    "description": "基于 Nuxt.js 框架的 CloudBase Run 容器部署示例",
    "order": 150,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "nodejs",
      "nuxtjs",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-nuxt"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-nuxt"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/nodejs-nuxt"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "nodejs-websocket",
    "lang": "zh",
    "language": "Nodejs",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-websocket",
    "_id": "daef7e716a4f7cd600092d2b73f0d940",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:49:58",
    "updatedAt": "2026-07-09 18:49:58",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Node.js WebSocket 云托管",
    "description": "Node.js WebSocket 实时通信示例",
    "order": 135,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "nodejs",
      "realtime",
      "websocket"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-websocket"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/nodejs-websocket"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/nodejs-websocket"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "php-helloworld",
    "lang": "zh",
    "language": "Php",
    "runtimeVersion": "Php7.4",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/php-helloworld",
    "_id": "daef7e716a4f7b5f000916e603c5d581",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:43:43",
    "updatedAt": "2026-07-09 18:49:56",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "PHP 云托管",
    "description": "PHP 语言 CloudBase Run 容器部署示例",
    "order": 125,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "php",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/php-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/php-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/php-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "php-laravel",
    "lang": "zh",
    "language": "Php",
    "runtimeVersion": "Php7.4",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/php-laravel",
    "_id": "daef7e716a4f7d63000936c24d9b9657",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:52:19",
    "updatedAt": "2026-07-09 18:52:19",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Laravel 云托管",
    "description": "基于 Laravel 框架的 CloudBase Run 容器部署示例",
    "order": 155,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "php",
      "laravel",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/php-laravel"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/php-laravel"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/php-laravel"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "python-django",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-django",
    "_id": "1a4410256a4f7d60000908d956a74362",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:52:16",
    "updatedAt": "2026-07-09 18:52:16",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Django 云托管",
    "description": "基于 Django 框架的 CloudBase Run 容器部署示例",
    "order": 90,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "python",
      "django",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-django"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-django"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/python-django"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "python-flask",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-flask",
    "_id": "9cef38726a4f7d600014f3844455e853",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:52:16",
    "updatedAt": "2026-07-09 18:52:16",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Flask 云托管",
    "description": "基于 Flask 框架的 CloudBase Run 容器部署示例",
    "order": 110,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "python",
      "flask",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-flask"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-flask"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/python-flask"
        }
      }
    ],
    "category": "framework",
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "python-helloworld",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-helloworld",
    "_id": "daef7e716a4f7b5f000916f22c2771cf",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:43:43",
    "updatedAt": "2026-07-09 18:49:57",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Python 云托管",
    "description": "Python 语言 CloudBase Run 容器部署示例",
    "order": 130,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "python",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/python-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "python-sse",
    "lang": "zh",
    "language": "Python",
    "runtimeVersion": "Python3.10",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-sse",
    "_id": "6e56a4026a4f7cd5001851d52fdcb8a0",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-09 18:49:57",
    "updatedAt": "2026-07-09 18:49:57",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Python SSE 云托管",
    "description": "Python Server-Sent Events 实时推送示例",
    "order": 100,
    "containerPort": 8080,
    "isCompile": false,
    "funcTypes": [
      "tcbrContainer"
    ],
    "tags": [
      "python",
      "realtime",
      "sse"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-sse"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudbaserun/python-sse"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudbaserun/python-sse"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-go-helloworld",
    "lang": "zh",
    "language": "Go",
    "runtimeVersion": "Go1",
    "entryPoint": "main",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-go-helloworld",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-go-helloworld.zip",
    "_id": "b917d0ff6a45056900d1017f35a025af",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:45",
    "updatedAt": "2026-07-06 19:53:18",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Go Hello World",
    "description": "Hello World",
    "order": 180,
    "isCompile": true,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "go",
      "helloworld"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-go-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-go-helloworld"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-go-helloworld"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-integration-pay-common",
    "lang": "zh",
    "language": "nodejs",
    "runtimeVersion": "js20",
    "entryPoint": "main",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/36178c086dca8ca5435b0a56ea4bc700-pay-common-0715.zip",
    "_id": "fec246ca69e7337b0000a52d4194dc52",
    "_openid": "1524963278340493312",
    "createdAt": "2026-04-21 16:21:15",
    "updatedAt": "2026-07-15 16:51:48",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "chrisccchen",
    "title": "集成中心微信支付模板",
    "description": "集成中心小程序支付模板",
    "sampleCode": "这是集成中心使用的支付模板",
    "order": 100,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "scfFunc"
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-integration-wechat-notify",
    "lang": "zh",
    "language": "nodejs",
    "runtimeVersion": "js20",
    "entryPoint": "main",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/51ee17110429d007ed0b68cefe51702f-wechat-notify.zip",
    "_id": "da09b3cc6a02ed790201f1a94905df07",
    "_openid": "1524963278340493312",
    "createdAt": "2026-05-12 17:06:01",
    "updatedAt": "2026-05-13 14:23:28",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "集成中心微信通用回调",
    "description": "集成中心微信通用回调",
    "order": 200,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-integration-wechat-official",
    "lang": "zh",
    "language": "nodejs",
    "runtimeVersion": "js20",
    "entryPoint": "main",
    "zipFileStore": "cloud://lowcode-5g5llxbq5bc9299e.6c6f-lowcode-5g5llxbq5bc9299e-1300677802/weda-uploader/03bb949671781b9dddc7066876d2f651-offiaccount-0525.zip",
    "_id": "f24c8d6a6a05dac30031113519b6b7ab",
    "_openid": "1524963278340493312",
    "createdAt": "2026-05-14 22:22:59",
    "updatedAt": "2026-05-25 11:18:44",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "集成中心公众号模板",
    "order": 100,
    "isCompile": false,
    "isHide": true,
    "funcTypes": [
      "scfFunc"
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-book-analytics-aggregate",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-book-analytics-aggregate",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-book-analytics-aggregate.zip",
    "_id": "453530246a45056b0041fdd8727004fb",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:47",
    "updatedAt": "2026-07-06 19:53:20",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "图书数据分析",
    "description": "图书数据分析云函数，包含聚合操作示例",
    "sampleCode": "你可以使用这个云函数来进行图书数据分析。在小程序中测试调用这个云函数的示例代码如下：\n\n```js\n// 获取作者统计信息\nwx.cloud.callFunction({\n  name: 'book-analytics',\n  data: {\n    action: 'getAuthorStats'\n  }\n}).then(res => {\n  console.log('作者统计结果：', res)\n})\n\n// 响应示例\n{\n  \"data\": [\n    {\n      \"_id\": \"刘慈欣\",\n      \"totalBooks\": 3,\n      \"totalValue\": 167.7,\n      \"averagePrice\": 55.9,\n      \"books\": [\n        {\n          \"title\": \"三体\",\n          \"price\": 55.9,\n          \"isbn\": \"9787536692930\"\n        },\n        {\n          \"title\": \"三体2：黑暗森林\",\n          \"price\": 55.9,\n          \"isbn\": \"9787536693937\"\n        },\n        {\n          \"title\": \"三体3：死神永生\",\n          \"price\": 55.9,\n          \"isbn\": \"9787229030933\"\n        }\n      ]\n    }\n    // ... 更多作者统计\n  ],\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\"\n}\n\n// 获取价格区间统计\nwx.cloud.callFunction({\n  name: 'book-analytics',\n  data: {\n    action: 'getPriceRangeStats'\n  }\n}).then(res => {\n  console.log('价格区间统计结果：', res)\n})\n\n// 响应示例\n{\n  \"data\": [\n    {\n      \"_id\": {\n        \"range\": \"30元以下\"\n      },\n      \"count\": 15,\n      \"books\": [\n        {\n          \"title\": \"活着\",\n          \"author\": \"余华\",\n          \"price\": 28.0\n        }\n        // ... 更多图书\n      ],\n      \"averagePrice\": 25.5\n    }\n    // ... 其他价格区间\n  ],\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\"\n}\n\n// 获取最贵的5本书\nwx.cloud.callFunction({\n  name: 'book-analytics',\n  data: {\n    action: 'getTopPricedBooks',\n    data: {\n      limit: 5\n    }\n  }\n}).then(res => {\n  console.log('最贵图书结果：', res)\n})\n\n// 响应示例\n{\n  \"data\": [\n    {\n      \"_id\": \"64c9f5a79f6c8e0001b60b0a\",\n      \"title\": \"时间简史（珍藏版）\",\n      \"author\": \"霍金\",\n      \"price\": 199.0,\n      \"isbn\": \"9787535732309\"\n    }\n    // ... 更多图书\n  ],\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\"\n}\n\n// 获取月度统计\nwx.cloud.callFunction({\n  name: 'book-analytics',\n  data: {\n    action: 'getMonthlyStats'\n  }\n}).then(res => {\n  console.log('月度统计结果：', res)\n})\n\n// 响应示例\n{\n  \"data\": [\n    {\n      \"_id\": {\n        \"year\": 2023,\n        \"month\": 8\n      },\n      \"count\": 25,\n      \"totalValue\": 1580.5,\n      \"books\": [\n        {\n          \"title\": \"三体\",\n          \"author\": \"刘慈欣\",\n          \"price\": 55.9\n        }\n        // ... 更多图书\n      ]\n    }\n    // ... 更多月份\n  ],\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\"\n}\n\n// 获取作者价格统计\nwx.cloud.callFunction({\n  name: 'book-analytics',\n  data: {\n    action: 'getAuthorPriceStats'\n  }\n}).then(res => {\n  console.log('作者价格统计结果：', res)\n})\n\n// 响应示例\n{\n  \"data\": [\n    {\n      \"_id\": \"刘慈欣\",\n      \"maxPrice\": 59.9,\n      \"minPrice\": 49.9,\n      \"averagePrice\": 55.9,\n      \"priceRange\": 10.0,\n      \"totalBooks\": 3\n    }\n    // ... 更多作者\n  ],\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\"\n}\n```\n\n这个云函数演示了以下聚合操作的用法：\n\n1. `group`: 分组统计，可以按作者、价格区间等维度统计\n2. `sum`/`avg`/`max`/`min`: 常用的聚合函数\n3. `push`: 在分组结果中保存详细数据\n4. `sort`: 结果排序\n5. `match`: 对聚合结果进行筛选\n6. `switch`: 条件分支处理\n7. `subtract`/`multiply`: 数值计算\n8. `year`/`month`: 日期处理\n9. `limit`: 限制结果数量\n\n这些聚合操作可以帮助你进行复杂的数据分析，获取有价值的统计信息。你可以根据实际需求组合使用这些操作。",
    "order": 90,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "data-analytics",
      "aggregation"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-book-analytics-aggregate"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-book-analytics-aggregate"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-book-analytics-aggregate"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-book-management-model",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-book-management-model",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-book-management-model.zip",
    "_id": "b917d0ff6a45056b00d1019277f4e532",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:47",
    "updatedAt": "2026-07-06 19:53:20",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "图书管理",
    "description": "图书管理云函数，包含 models 操作示例",
    "sampleCode": "你可以使用这个云函数来管理图书。在小程序中测试调用这个云函数的示例代码如下：\n\n```js\n// 创建图书\nwx.cloud\n  .callFunction({\n    name: 'book-management',\n    data: {\n      action: 'createBook',\n      data: {\n        title: '三体',\n        author: '刘慈欣',\n        price: 39.9,\n        isbn: '9787536692930',\n      },\n    },\n  })\n  .then((res) => {\n    console.log('创建成功：', res);\n  });\n\n// 更新图书\nwx.cloud\n  .callFunction({\n    name: 'book-management',\n    data: {\n      action: 'updateBook',\n      data: {\n        id: 'xxx', // 图书ID\n        book: {\n          price: 45.0,\n        },\n      },\n    },\n  })\n  .then((res) => {\n    console.log('更新成功：', res);\n  });\n\n// 删除图书\nwx.cloud\n  .callFunction({\n    name: 'book-management',\n    data: {\n      action: 'deleteBook',\n      data: {\n        id: 'xxx', // 图书ID\n      },\n    },\n  })\n  .then((res) => {\n    console.log('删除成功：', res);\n  });\n\n// 获取单本图书\nwx.cloud\n  .callFunction({\n    name: 'book-management',\n    data: {\n      action: 'getBook',\n      data: {\n        id: 'xxx', // 图书ID\n      },\n    },\n  })\n  .then((res) => {\n    console.log('图书信息：', res);\n  });\n\n// 获取图书列表\nwx.cloud\n  .callFunction({\n    name: 'book-management',\n    data: {\n      action: 'listBooks',\n      data: {},\n    },\n  })\n  .then((res) => {\n    console.log('图书列表：', res);\n  });\n\n// 搜索图书\nwx.cloud\n  .callFunction({\n    name: 'book-management',\n    data: {\n      action: 'searchBooks',\n      data: {\n        keyword: '三体',\n      },\n    },\n  })\n  .then((res) => {\n    console.log('搜索结果：', res);\n  });\n```\n\n返回数据结构示例：\n\n```js\n// 创建图书返回\n{\n  \"data\": {\n    \"id\": \"xxx\" // 图书 id\n  }\n}\n\n// 更新/删除图书返回\n{\n  \"data\": {\n    \"count\": 1 // 影响行数\n  }\n}\n\n// 获取单本图书\n{\n  \"data\": {\n    \"_id\": \"xxx\",\n    \"title\": \"三体\",\n    \"author\": \"刘慈欣\",\n    \"price\": 39.9,\n    \"isbn\": \"9787536692930\"\n    // ...\n  }\n}\n\n// 获取图书列表返回\n{\n  \"data\": {\n    \"records\": [\n      {\n        \"_id\": \"xxx\",\n        \"title\": \"三体\",\n        \"author\": \"刘慈欣\",\n        \"price\": 39.9,\n        \"isbn\": \"9787536692930\"\n      }\n      // ...更多图书\n    ],\n    \"total\": 10\n  }\n}\n\n// 搜索图书返回\n{\n  \"data\": {\n    \"records\": [\n      {\n        \"_id\": \"xxx\",\n        \"title\": \"三体\",\n        \"author\": \"刘慈欣\",\n        \"price\": 39.9,\n        \"isbn\": \"9787536692930\"\n      }\n      // ...更多图书\n    ],\n  }\n}\n```",
    "order": 185,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "database",
      "crud"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-book-management-model"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-book-management-model"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-book-management-model"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-custom-auth",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-custom-auth",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-custom-auth.zip",
    "_id": "4aee0b4c6a45056c002cf2ce2d8b51c9",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:48",
    "updatedAt": "2026-07-06 19:53:21",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "自定义登录",
    "description": "自定义鉴权登录云函数示例",
    "sampleCode": "你可以使用这个云函数来管理用户认证。在小程序中测试调用这个云函数的示例代码如下：\n\n```js\n// 用户注册\nwx.cloud.callFunction({\n  name: 'custom-auth',\n  data: {\n    action: 'register',\n    data: {\n      username: 'test@example.com',\n      password: 'password123'\n    }\n  }\n}).then(res => {\n  console.log('注册结果：', res)\n})\n\n// 响应示例\n{\n  \"userId\": \"user1\"\n}\n\n// 用户登录\nwx.cloud.callFunction({\n  name: 'custom-auth',\n  data: {\n    action: 'login',\n    data: {\n      username: 'test@example.com',\n      password: 'password123'\n    }\n  }\n}).then(res => {\n  console.log('登录结果：', res)\n})\n\n// 响应示例\n{\n  \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n  \"refreshToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n  \"userId\": \"user1\"\n}\n\n// 刷新访问令牌\nwx.cloud.callFunction({\n  name: 'custom-auth',\n  data: {\n    action: 'refreshToken',\n    data: {\n      refreshToken: \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\"\n    }\n  }\n}).then(res => {\n  console.log('刷新令牌结果：', res)\n})\n\n// 响应示例\n{\n  \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\"\n}\n\n// 获取用户信息\nwx.cloud.callFunction({\n  name: 'custom-auth',\n  data: {\n    action: 'getUserInfo',\n    data: {\n      authorization: \"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\"\n    }\n  }\n}).then(res => {\n  console.log('用户信息：', res)\n})\n\n// 响应示例\n{\n  \"_id\": \"user1\",\n  \"username\": \"test@example.com\",\n  \"createdAt\": \"2023-08-02T08:30:15.000Z\",\n  \"updatedAt\": \"2023-08-02T08:30:15.000Z\"\n}\n\n// 修改密码\nwx.cloud.callFunction({\n  name: 'custom-auth',\n  data: {\n    action: 'changePassword',\n    data: {\n      authorization: \"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n      oldPassword: \"password123\",\n      newPassword: \"newpassword123\"\n    }\n  }\n}).then(res => {\n  console.log('修改密码结果：', res)\n})\n\n// 响应示例\n{\n  \"success\": true\n}\n\n// 更新用户信息\nwx.cloud.callFunction({\n  name: 'custom-auth',\n  data: {\n    action: 'updateUserInfo',\n    data: {\n      authorization: \"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n      userInfo: {\n        nickname: \"新昵称\",\n        avatar: \"https://example.com/avatar.jpg\"\n      }\n    }\n  }\n}).then(res => {\n  console.log('更新用户信息结果：', res)\n})\n\n// 响应示例\n{\n  \"success\": true\n}\n```\n\n这个认证系统包含以下特点：\n\n1. 安全性：\n\n   - SHA256加盐加密密码\n   - JWT身份验证\n   - 分离accessToken和refreshToken\n   - 防止敏感信息泄露\n\n2. 功能完整：\n\n   - 用户注册\n   - 用户登录\n   - 令牌刷新\n   - 获取用户信息\n   - 修改密码\n   - 更新用户信息\n\n3. 令牌管理：\n\n   - accessToken短期有效（2小时）\n   - refreshToken长期有效（7天）\n   - Bearer Token认证\n\n4. 错误处理：\n   - 用户名重复检查\n   - 密码验证\n   - 令牌有效性验证\n   - 完整的错误提示\n\n使用时注意：\n\n1. 需要修改config.js中的密钥\n2. 在生产环境中使用更强的密钥\n3. 可以根据需要调整令牌过期时间\n4. 建议添加请求频率限制",
    "order": 110,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "auth",
      "wechat-miniprogram",
      "wechat-openapi"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-custom-auth"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-custom-auth"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-custom-auth"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-get-openid",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-get-openid",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-get-openid.zip",
    "_id": "453530246a45056c0041fde815023525",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:48",
    "updatedAt": "2026-07-06 19:53:22",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "OPENID 获取",
    "description": "获取 openid 云函数示例",
    "sampleCode": "你可以使用这个云函数来获取用户的 OPENID。在小程序中测试调用这个云函数的示例代码如下：\n\n```js\nwx.cloud.callFunction({\n  name: 'get-openid',\n  complete: (res) => {\n    console.log('callFunction result: ', res);\n  },\n});\n```\n\n这将会在调试器中输出如下结构的对象：\n\n```json\n{\n  \"openid\": \"oxxxxxxxxxxxxxx\",\n  \"appid\": \"wxxxxxxxxxxx\",\n  \"unionid\": \"oxxx_xxxxxxxxxxxxx\" // 仅在满足 unionId 获取条件时返回\n}\n```",
    "order": 95,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "wechat-miniprogram",
      "wechat-openapi"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-get-openid"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-get-openid"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-get-openid"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-hono-template",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-hono-template",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-hono-template.zip",
    "_id": "4aee0b4c6a45056d002cf2e76d05c507",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:49",
    "updatedAt": "2026-07-06 19:53:24",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "Hono.js 框架",
    "description": "云函数环境中使用 honojs 示例模板",
    "sampleCode": "# Hono 云函数使用示例\n\n该模板演示了如何在云函数环境中使用 Honojs 框架，包含多种功能接口。以下是各个接口的使用示例，包括云函数调用和 HTTP 请求调用方式。\n\n**使用 HTTP 访问前，需要前往 云开发平台-云函数-函数配置 设定 HTTP 访问服务路径。**\n\n## 1. 基础接口调用\n\n### 获取文本响应\n\n**云函数调用方式：**\n```js\n// 小程序中调用示例\nwx.cloud.callFunction({\n  name: 'hono-template',\n  data: { path: '/' }, // 请求根路径\n}).then((res) => {\n  console.log('文本响应结果:', res.result.body); // 输出: Hello Hono!\n})\n```\n\n**HTTP 请求方式：**\n```js\n// 假设云函数HTTP服务地址为 https://your-domain.com/hono-template\nfetch('https://your-domain.com/hono-template/')\n  .then(response => response.text())\n  .then(data => {\n    console.log('文本响应结果:', data); // 输出: Hello Hono!\n  });\n```\n\n**curl 命令：**\n```bash\ncurl https://your-domain.com/hono-template/\n```\n\n### 获取JSON数据\n\n**云函数调用方式：**\n```js\n// 小程序中调用示例\nwx.cloud.callFunction({\n  name: 'hono-template',\n  data: { path: '/json' },\n}).then((res) => {\n  console.log('JSON响应结果:', JSON.parse(res.result.body));\n  // 输出: { data: { a: 123 }, code: 200 }\n});\n```\n\n**HTTP 请求方式：**\n```js\nfetch('https://your-domain.com/hono-template/json')\n  .then(response => response.json())\n  .then(data => {\n    console.log('JSON响应结果:', data);\n    // 输出: { data: { a: 123 }, code: 200 }\n  });\n```\n\n**curl 命令：**\n```bash\ncurl https://your-domain.com/hono-template/json\n```\n\n## 2. 图片代理功能\n\n**HTTP 请求方式：**\n```js\n// 在浏览器或其他环境中直接使用\nconst imageUrl = 'https://your-domain.com/hono-template/image?url=' + \n                 encodeURIComponent('https://example.com/sample-image.jpg');\n\n// 直接在img标签中使用\ndocument.getElementById('proxyImage').src = imageUrl;\n```\n\n## 3. 文件上传功能\n\n**HTTP 请求方式：**\n```js\n// 在浏览器中使用FormData上传文件\nconst fileInput = document.getElementById('fileInput');\nfileInput.addEventListener('change', async (e) => {\n  const file = e.target.files[0];\n  if (!file) return;\n  \n  const formData = new FormData();\n  formData.append('file', file);\n  \n  try {\n    const response = await fetch('https://your-domain.com/hono-template/upload', {\n      method: 'POST',\n      body: formData\n    });\n    const result = await response.json();\n    console.log('文件上传信息:', result);\n  } catch (error) {\n    console.error('上传失败:', error);\n  }\n});\n```\n\n**curl 命令上传文件：**\n```bash\ncurl -X POST https://your-domain.com/hono-template/upload \\\n  -F \"file=@/path/to/local/file.jpg\"\n```\n\n## 4. 定时触发器使用\n\n定时触发器主要由云函数平台根据配置的时间自动触发，但也可以手动模拟触发。\n\n### 配置定时触发器\n\n**手动模拟触发（HTTP方式）：**\n```js\nfetch('https://your-domain.com/hono-template/CLOUDBASE_TIMER_TRIGGER/daily-task')\n  .then(response => response.json())\n  .then(data => {\n    console.log('定时器测试结果:', data);\n  });\n```\n\n**curl 命令模拟触发：**\n```bash\ncurl https://your-domain.com/hono-template/CLOUDBASE_TIMER_TRIGGER/daily-task\n```\n\n当触发器被触发时，云函数会返回如下结果：\n```json\n{\n  \"message\": \"定时器 daily-task 成功执行\",\n  \"timestamp\": \"2023-08-15T08:00:00.123Z\",\n  \"originalEvent\": {...触发器事件对象...}\n}\n```\n\n---\n\n通过上述方式，您可以根据自己的应用场景选择合适的调用方式，以灵活地使用 Hono 框架构建云函数应用。",
    "order": 115,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "hono",
      "web-framework"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-hono-template"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-hono-template"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-hono-template"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-openapi-get-phonenumber",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-openapi-get-phonenumber",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-openapi-get-phonenumber.zip",
    "_id": "b917d0ff6a45056d00d101ac22be6b06",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:49",
    "updatedAt": "2026-07-06 19:53:25",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "云调用解析用户手机号",
    "description": "云调用获取用户手机号（需要在微信 IDE 重新下载和部署）",
    "sampleCode": "在小程序端调用此云函数时，需要传入code参数：\n\n```javascript\n// 小程序端调用示例\nwx.cloud\n  .callFunction({\n    name: 'get-phoneNumber',\n    data: {\n      code: event.detail.code, // 从获取手机号按钮事件中获取\n    },\n  })\n  .then((res) => {\n    console.log('手机号信息：', res.result);\n  })\n  .catch((err) => {\n    console.error('获取手机号失败：', err);\n  });\n```\n\n这将会在调试器中输出如下结构的对象：\n\n```json\n{\n  \"errcode\": 0,\n  \"errmsg\": \"ok\",\n  \"phone_info\": {\n    \"phoneNumber\": \"xxxxxx\",\n    \"purePhoneNumber\": \"xxxxxx\",\n    \"countryCode\": 86,\n    \"watermark\": {\n      \"timestamp\": 1637744274,\n      \"appid\": \"xxxx\"\n    }\n  }\n}\n```\n\n注意事项：\n\n1. 需要在微信小程序管理后台开启\"获取手机号\"功能\n2. 确保已经安装最新版本的wx-server-sdk\n3. code只能使用一次，且有效期为5分钟",
    "order": 190,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "wechat-miniprogram",
      "wechat-openapi",
      "openapi"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-openapi-get-phonenumber"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-openapi-get-phonenumber"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-openapi-get-phonenumber"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-post-management-collection",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-post-management-collection",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-post-management-collection.zip",
    "_id": "4aee0b4c6a45056e002cf2f358223d1e",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:50",
    "updatedAt": "2026-07-06 19:53:25",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "文章管理",
    "description": "文章管理云函数，包含 collection 操作示例",
    "sampleCode": "你可以使用这个云函数来管理文章。在小程序中测试调用这个云函数的示例代码如下：\n\n```js\n// 创建文章\nwx.cloud.callFunction({\n  name: 'post-management',\n  data: {\n    action: 'createPost',\n    data: {\n      title: '我的第一篇文章',\n      content: '这是文章内容',\n      author: '张三',\n    }\n  }\n}).then(res => {\n  console.log('创建文章结果：', res)\n})\n\n// 响应示例\n{\n  \"id\": \"64c9f5a79f6c8e0001b60b0a\",\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\"\n}\n\n// 更新文章\nwx.cloud.callFunction({\n  name: 'post-management',\n  data: {\n    action: 'updatePost',\n    data: {\n      id: '64c9f5a79f6c8e0001b60b0a',\n      post: {\n        content: '更新后的文章内容'\n      }\n    }\n  }\n}).then(res => {\n  console.log('更新文章结果：', res)\n})\n\n// 响应示例\n{\n  \"id\": \"64c9f5a79f6c8e0001b60b0a\",\n  \"updated\": 1\n}\n\n// 删除文章\nwx.cloud.callFunction({\n  name: 'post-management',\n  data: {\n    action: 'deletePost',\n    data: {\n      id: '64c9f5a79f6c8e0001b60b0a'\n    }\n  }\n}).then(res => {\n  console.log('删除文章结果：', res)\n})\n\n// 响应示例\n{\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\",\n  \"deleted\": 1\n}\n\n// 获取单篇文章\nwx.cloud.callFunction({\n  name: 'post-management',\n  data: {\n    action: 'getPost',\n    data: {\n      id: '64c9f5a79f6c8e0001b60b0a'\n    }\n  }\n}).then(res => {\n  console.log('获取文章结果：', res)\n})\n\n// 响应示例\n{\n  \"data\": [\n    {\n      \"_id\": \"64c9f5a79f6c8e0001b60b0a\",\n      \"title\": \"我的第一篇文章\",\n      \"content\": \"这是文章内容\",\n      \"author\": \"张三\"\n      // ...\n    }\n  ],\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\"\n}\n\n// 分页获取文章列表\nwx.cloud.callFunction({\n  name: 'post-management',\n  data: {\n    action: 'listPosts',\n    data: {\n      page: 1,\n      pageSize: 10\n    }\n  }\n}).then(res => {\n  console.log('获取文章列表结果：', res)\n})\n\n// 响应示例\n{\n  \"list\": [\n    {\n      \"_id\": \"64c9f5a79f6c8e0001b60b0a\",\n      \"title\": \"我的第一篇文章\",\n      \"content\": \"更新后的文章内容\",\n      \"author\": \"张三\"\n      // ...\n    }\n    // ... 更多文章\n  ],\n  \"total\": 100,\n  \"page\": 1,\n  \"pageSize\": 10\n}\n\n// 搜索文章\nwx.cloud.callFunction({\n  name: 'post-management',\n  data: {\n    action: 'searchPosts',\n    data: {\n      keyword: '技术'\n    }\n  }\n}).then(res => {\n  console.log('搜索文章结果：', res)\n})\n\n// 响应示例\n{\n  \"data\": [\n    {\n      \"_id\": \"64c9f5a79f6c8e0001b60b0a\",\n      \"title\": \"我的第一篇文章\",\n      \"content\": \"更新后的文章内容\",\n      \"author\": \"张三\"\n      // ...\n    }\n    // 更多文章\n  ],\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\"\n}\n```",
    "order": 120,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "database",
      "crud"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-post-management-collection"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-post-management-collection"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-post-management-collection"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-transaction",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-transaction",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-transaction.zip",
    "_id": "b917d0ff6a45056e00d101b60330a6e0",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:50",
    "updatedAt": "2026-07-06 19:53:26",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "账户转账",
    "description": "账户交易云函数，包含事务操作示例",
    "sampleCode": "你可以使用这个云函数来管理账户和交易。在小程序中测试调用这个云函数的示例代码如下：\n\n```js\n// 创建账户\nwx.cloud.callFunction({\n  name: 'transaction-management',\n  data: {\n    action: 'createAccount',\n    data: {\n      name: '张三',\n      initialBalance: 1000\n    }\n  }\n}).then(res => {\n  console.log('创建账户结果：', res)\n})\n\n// 响应示例\n{\n  \"id\": \"xxx\",\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\"\n}\n\n// 转账操作\nwx.cloud.callFunction({\n  name: 'transaction-management',\n  data: {\n    action: 'transfer',\n    data: {\n      fromAccountId: 'account1',\n      toAccountId: 'account2',\n      amount: 100\n    }\n  }\n}).then(res => {\n  console.log('转账结果：', res)\n})\n\n// 响应示例\n{\n  \"success\": true,\n  \"recordId\": \"xxx\"\n}\n\n// 批量转账\nwx.cloud.callFunction({\n  name: 'transaction-management',\n  data: {\n    action: 'batchTransfer',\n    data: {\n      fromAccountId: 'account1',\n      transfers: [\n        { toAccountId: 'account2', amount: 50 },\n        { toAccountId: 'account3', amount: 50 }\n      ]\n    }\n  }\n}).then(res => {\n  console.log('批量转账结果：', res)\n})\n\n// 响应示例\n{\n  \"success\": true,\n  \"records\": [\"xxx1\", \"xxx2\"]\n}\n\n// 查询余额\nwx.cloud.callFunction({\n  name: 'transaction-management',\n  data: {\n    action: 'getBalance',\n    data: {\n      accountId: 'account1'\n    }\n  }\n}).then(res => {\n  console.log('余额查询结果：', res)\n})\n\n// 响应示例\n{\n    \"result\": 800\n}\n\n\n// 查询交易历史\nwx.cloud.callFunction({\n  name: 'transaction-management',\n  data: {\n    action: 'getTransactionHistory',\n    data: {\n      accountId: 'account1'\n    }\n  }\n}).then(res => {\n  console.log('交易历史：', res)\n})\n\n// 响应示例\n{\n  \"data\": [\n    {\n      \"_id\": \"record3\",\n      \"fromAccount\": \"account1\",\n      \"toAccount\": \"account3\",\n      \"amount\": 50,\n      \"status\": \"success\",\n      \"createdAt\": \"2023-08-02T08:30:15.000Z\",\n      \"updatedAt\": \"2023-08-02T08:30:15.000Z\"\n    },\n    {\n      \"_id\": \"record2\",\n      \"fromAccount\": \"account1\",\n      \"toAccount\": \"account2\",\n      \"amount\": 50,\n      \"status\": \"success\",\n      \"createdAt\": \"2023-08-02T08:30:15.000Z\",\n      \"updatedAt\": \"2023-08-02T08:30:15.000Z\"\n    },\n    {\n      \"_id\": \"record1\",\n      \"fromAccount\": \"account1\",\n      \"toAccount\": \"account2\",\n      \"amount\": 100,\n      \"status\": \"success\",\n      \"createdAt\": \"2023-08-02T08:30:15.000Z\",\n      \"updatedAt\": \"2023-08-02T08:30:15.000Z\"\n    }\n  ],\n  \"requestId\": \"1735086147_0.36272387876657_33594-193f355e_1\"\n}\n\n```",
    "order": 195,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "transaction",
      "aggregation"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-transaction"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-transaction"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-transaction"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-user-management-sql",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-user-management-sql",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-user-management-sql.zip",
    "_id": "4aee0b4c6a45056f002cf30a54b92f8d",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:51",
    "updatedAt": "2026-07-06 19:53:27",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "用户管理 SQL",
    "description": "用户管理云函数，包含 sql 操作示例 （目前仅支持 select 语句）",
    "sampleCode": "你可以使用这个云函数来管理用户。\n\n当前仅开放了 select 语句，如果有其他 SQL 语句需求，请通过官方社群联系我们。\n\n在小程序中测试调用这个云函数的示例代码如下：\n\n```js\n\n// 获取单个用户\nwx.cloud.callFunction({\n  name: 'user-management',\n  data: {\n    action: 'getUser',\n    data: {\n      id: 'xxx'\n    }\n  }\n}).then(res => {\n  console.log('获取用户结果：', res)\n})\n\n// 响应示例\n{\n  \"_id\": \"xxx\",\n  \"username\": \"张三\",\n  \"email\": \"zhangsan@example.com\",\n  \"phone\": \"13900139000\"\n  // ...\n}\n\n// 分页获取用户列表\nwx.cloud.callFunction({\n  name: 'user-management',\n  data: {\n    action: 'listUsers',\n    data: {\n      page: 1,\n      pageSize: 10\n    }\n  }\n}).then(res => {\n  console.log('获取用户列表结果：', res)\n})\n\n// 响应示例\n{\n  \"list\": [\n    {\n      \"_id\": \"xxx\",\n      \"username\": \"张三\",\n      \"email\": \"zhangsan@example.com\",\n      \"phone\": \"13900139000\"\n    }\n    // ... 更多用户\n  ],\n  \"total\": 100,\n  \"page\": 1,\n  \"pageSize\": 10\n}\n\n// 搜索用户\nwx.cloud.callFunction({\n  name: 'user-management',\n  data: {\n    action: 'searchUsers',\n    data: {\n      keyword: '张三'\n    }\n  }\n}).then(res => {\n  console.log('搜索用户结果：', res)\n})\n\n// 响应示例\n[\n  {\n    \"id\": 1,\n    \"username\": \"张三\",\n    \"email\": \"zhangsan@example.com\",\n    \"phone\": \"13900139000\",\n  }\n  // ... 更多匹配的用户\n]\n```",
    "order": 125,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "auth",
      "database",
      "crud"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-user-management-sql"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-user-management-sql"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-user-management-sql"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-wxpay-common",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-wxpay-common",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-wxpay-common.zip",
    "_id": "6bc128366a45056f004c933b46479fd4",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:51",
    "updatedAt": "2026-07-06 19:53:28",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "微信支付通用",
    "description": "微信支付通用模板",
    "sampleCode": "这是一个微信支付相关的云函数,包含了统一下单、订单查询、退款等功能。\n\n使用前，请确保已经正确安装和配置 **小程序微信支付** 云模板。\n\n若未安装，可前往 模板中心-模板市场-小程序微信支付 进行安装。安装完成后，前往 模板中心-我的模板-小程序微信支付-参数设置，完成必要参数的配置。\n\n以下是调用示例:\n\n1. 统一下单:\n\n```js\nwx.cloud.callFunction({\n  name: 'wxpay-common',\n  data: {\n    type: 'wxpay_order',\n  },\n  success: (res) => {\n    console.log('下单成功', res.result);\n    // res.result 示例:\n    // {\n    //   \"code\": 0,\n    //   \"data\": {\n    //     \"prepay_id\": \"wx2016121516****55928f9b1b2c0********\"\n    //   }\n    // }\n  },\n  fail: (err) => {\n    console.error('下单失败', err);\n  },\n});\n```\n\n2. 通过商户订单号查询订单:\n\n```js\nwx.cloud.callFunction({\n  name: 'wxpay-common',\n  data: {\n    type: 'wxpay_query_order_by_out_trade_no',\n  },\n  success: (res) => {\n    console.log('查询成功', res.result);\n    // res.result 示例:\n    // {\n    //   \"code\": 0,\n    //   \"data\": {\n    //     \"out_trade_no\": \"2024040118006666\",\n    //     \"transaction_id\": \"4200000001201801011234567890\",\n    //     \"trade_state\": \"SUCCESS\",\n    //     \"trade_state_desc\": \"支付成功\"\n    //   }\n    // }\n  },\n});\n```\n\n3. 申请退款:\n\n```js\nwx.cloud.callFunction({\n  name: 'wxpay-common',\n  data: {\n    type: 'wxpay_refund',\n  },\n  success: (res) => {\n    console.log('退款申请成功', res.result);\n    // res.result 示例:\n    // {\n    //   \"code\": 0,\n    //   \"data\": {\n    //     \"out_refund_no\": \"2024040118006666\",\n    //     \"refund_id\": \"50000000382019052709732678859\",\n    //     \"status\": \"SUCCESS\"\n    //   }\n    // }\n  },\n});\n```\n\n4. 查询退款:\n\n```js\nwx.cloud.callFunction({\n  name: 'wxpay-common',\n  data: {\n    type: 'wxpay_refund_query',\n  },\n  success: (res) => {\n    console.log('退款查询成功', res.result);\n    // res.result 示例:\n    // {\n    //   \"code\": 0,\n    //   \"data\": {\n    //     \"out_refund_no\": \"2024040118006666\",\n    //     \"refund_status\": \"SUCCESS\",\n    //     \"success_time\": \"2020-12-01T16:18:12+08:00\"\n    //   }\n    // }\n  },\n});\n```",
    "order": 155,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "wechat-miniprogram",
      "wechat-pay",
      "payment"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-wxpay-common"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-wxpay-common"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-wxpay-common"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  },
  {
    "identifier": "scf-nodejs-wxpay-product",
    "lang": "zh",
    "language": "javascript",
    "runtimeVersion": "Nodejs18.15",
    "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-wxpay-product",
    "zipFilePath": "https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/template/scf-nodejs-wxpay-product.zip",
    "_id": "4aee0b4c6a450570002cf3175762ed6d",
    "_openid": "1524963278340493312",
    "createdAt": "2026-07-01 20:17:52",
    "updatedAt": "2026-07-06 19:53:28",
    "owner": "wangwu1",
    "createBy": "wangwu1",
    "updateBy": "wangwu1",
    "title": "商品下单",
    "description": "微信支付云函数商品模板",
    "sampleCode": "这是一个完整的微信支付商品下单云函数示例,包含了商品查询、订单创建、支付、退款等完整流程。\n\n使用前，请确保已经正确安装和配置 **小程序微信支付** 云模板。\n\n若未安装，可前往 模板中心-模板市场-小程序微信支付 进行安装。安装完成后，前往 模板中心-我的模板-小程序微信支付-参数设置，完成必要参数的配置。\n\n以下是调用示例:\n\n1. 创建商品订单:\n\n```js\nwx.cloud.callFunction({\n  name: 'wxpay-product',\n  data: {\n    type: 'wxpay_order',\n    productId: 'product123', // 商品ID\n    count: 2, // 购买数量\n  },\n  success: (res) => {\n    console.log('下单成功', res.result);\n    // res.result 示例:\n    // {\n    //   \"code\": 0,\n    //   \"data\": {\n    //     \"prepay_id\": \"wx2016121516****55928f9b1b2c0********\",\n    //     \"out_trade_no\": \"202404011800666688888\"\n    //   }\n    // }\n  },\n});\n```\n\n2. 查询订单状态(通过商户订单号):\n\n```js\nwx.cloud.callFunction({\n  name: 'wxpay-product',\n  data: {\n    type: 'wxpay_query_order_by_out_trade_no',\n    outTradeNo: '202404011800666688888',\n  },\n  success: (res) => {\n    console.log('查询成功', res.result);\n    // res.result 示例:\n    // {\n    //   \"code\": 0,\n    //   \"data\": {\n    //     \"out_trade_no\": \"202404011800666688888\",\n    //     \"transaction_id\": \"4200000001202404011234567890\",\n    //     \"trade_state\": \"SUCCESS\",\n    //     \"trade_state_desc\": \"支付成功\"\n    //   }\n    // }\n  },\n});\n```\n\n3. 申请退款:\n\n```js\nwx.cloud.callFunction({\n  name: 'wxpay-product',\n  data: {\n    type: 'wxpay_refund',\n    orderId: 'order123', // 订单ID\n  },\n  success: (res) => {\n    console.log('退款申请成功', res.result);\n    // res.result 示例:\n    // {\n    //   \"code\": 0,\n    //   \"data\": {\n    //     \"out_refund_no\": \"202404011800777788888\",\n    //     \"refund_id\": \"50000000382019052709732678859\",\n    //     \"status\": \"SUCCESS\"\n    //   }\n    // }\n  },\n});\n```\n\n4. 查询退款状态:\n\n```js\nwx.cloud.callFunction({\n  name: 'wxpay-product',\n  data: {\n    type: 'wxpay_refund_query',\n    outRefundNo: '202404011800777788888',\n  },\n  success: (res) => {\n    console.log('退款查询成功', res.result);\n    // res.result 示例:\n    // {\n    //   \"code\": 0,\n    //   \"data\": {\n    //     \"out_refund_no\": \"202404011800777788888\",\n    //     \"refund_status\": \"SUCCESS\",\n    //     \"success_time\": \"2024-04-01T16:18:12+08:00\",\n    //     \"amount\": {\n    //       \"refund\": 100,\n    //       \"total\": 100,\n    //       \"currency\": \"CNY\"\n    //     }\n    //   }\n    // }\n  },\n});\n```\n\n注意事项:\n\n1. 商品信息从数据库查询,不要从前端传入\n2. 用户openid从云函数上下文获取,不要从前端传入\n3. 订单相关信息需要存储到数据库\n4. 退款操作需要更新订单状态\n5. 建议对所有操作加入适当的错误处理",
    "order": 130,
    "isCompile": false,
    "funcTypes": [
      "scfFunc"
    ],
    "tags": [
      "nodejs",
      "wechat-miniprogram",
      "wechat-pay",
      "payment"
    ],
    "gitUrlList": [
      {
        "gitPlatform": {
          "gitType": "github",
          "gitUrl": "https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-wxpay-product"
        }
      },
      {
        "gitPlatform": {
          "gitType": "gitee",
          "gitUrl": "https://gitee.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/cloudfunctions/scf-nodejs-wxpay-product"
        }
      },
      {
        "gitPlatform": {
          "gitType": "cnb",
          "gitUrl": "https://cnb.cool/tencent/cloud/cloudbase/awesome-cloudbase-examples/-/tree/master/cloudfunctions/scf-nodejs-wxpay-product"
        }
      }
    ],
    "targetPlatform": [
      "default",
      "intl"
    ]
  }
]
