{"id":13687081,"url":"https://github.com/fastwego/offiaccount","last_synced_at":"2026-01-16T18:38:20.562Z","repository":{"id":37410298,"uuid":"282247352","full_name":"fastwego/offiaccount","owner":"fastwego","description":"[微信公众号] A fast wechat offiaccount development sdk written in Golang","archived":false,"fork":false,"pushed_at":"2022-03-01T12:40:27.000Z","size":511,"stargazers_count":116,"open_issues_count":2,"forks_count":34,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-01T12:41:04.095Z","etag":null,"topics":["fastwego","wechat","weixin","weixin-sdk"],"latest_commit_sha":null,"homepage":"https://fastwego.dev","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastwego.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://public.zsxq.com/groups/48415121824218.html","https://pic2.zhimg.com/80/v2-6b84f07b309b6e1ad1b3141c3e9d34dc_1440w.png"]}},"created_at":"2020-07-24T14:57:19.000Z","updated_at":"2025-03-29T06:47:25.000Z","dependencies_parsed_at":"2022-08-18T18:42:01.170Z","dependency_job_id":null,"html_url":"https://github.com/fastwego/offiaccount","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/fastwego/offiaccount","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastwego%2Foffiaccount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastwego%2Foffiaccount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastwego%2Foffiaccount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastwego%2Foffiaccount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastwego","download_url":"https://codeload.github.com/fastwego/offiaccount/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastwego%2Foffiaccount/sbom","scorecard":{"id":393556,"data":{"date":"2025-08-11","repo":{"name":"github.com/fastwego/offiaccount","commit":"eedd0f418a3d6728c473420843cc0c5e424fc609"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 4/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yaml:1","Warn: no topLevel permission defined: .github/workflows/golangci-lint.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/fastwego/offiaccount/ci.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/fastwego/offiaccount/ci.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/fastwego/offiaccount/ci.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/fastwego/offiaccount/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/fastwego/offiaccount/golangci-lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/fastwego/offiaccount/golangci-lint.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":-1,"reason":"internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: non-200 OK status code: 502 Bad Gateway body: \"\u003chtml\u003e\\r\\n\u003chead\u003e\u003ctitle\u003e502 Bad Gateway\u003c/title\u003e\u003c/head\u003e\\r\\n\u003cbody\u003e\\r\\n\u003ccenter\u003e\u003ch1\u003e502 Bad Gateway\u003c/h1\u003e\u003c/center\u003e\\r\\n\u003chr\u003e\u003ccenter\u003enginx\u003c/center\u003e\\r\\n\u003c/body\u003e\\r\\n\u003c/html\u003e\\r\\n\"","details":null,"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T18:24:52.060Z","repository_id":37410298,"created_at":"2025-08-18T18:24:52.060Z","updated_at":"2025-08-18T18:24:52.060Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastwego","wechat","weixin","weixin-sdk"],"created_at":"2024-08-02T15:00:48.350Z","updated_at":"2026-01-16T18:38:20.537Z","avatar_url":"https://github.com/fastwego.png","language":"Go","funding_links":["https://public.zsxq.com/groups/48415121824218.html","https://pic2.zhimg.com/80/v2-6b84f07b309b6e1ad1b3141c3e9d34dc_1440w.png"],"categories":["Go"],"sub_categories":[],"readme":"# fastwego/offiaccount\n\nA fast [wechat offiaccount](https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Overview.html) development sdk written in Golang\n\n[![GoDoc](https://pkg.go.dev/badge/github.com/fastwego/offiaccount?status.svg)](https://pkg.go.dev/github.com/fastwego/offiaccount?tab=doc)\n[![Go Report Card](https://goreportcard.com/badge/github.com/fastwego/offiaccount)](https://goreportcard.com/report/github.com/fastwego/offiaccount)\n\n## 快速开始 \u0026 demo\n\n```shell script\ngo get github.com/fastwego/offiaccount\n```\n```go\n// 创建公众号实例\napp := offiaccount.New(offiaccount.Config{\n    Appid:  \"APPID\",\n    Secret: \"SECRET\",\n})\n\n// 调用 api\npayload := []byte(`\n{\n     \"button\":[\n     {\n           \"name\":\"菜单\",\n           \"sub_button\":[\n           {\t\n               \"type\":\"view\",\n               \"name\":\"搜索\",\n               \"url\":\"http://www.baidu.com/\"\n            }]\n       }]\n}`)\n\nresp, err := menu.Create(app, payload)\nfmt.Println(resp, err)\n```\n\n完整的演示项目：\n\n[https://github.com/fastwego/offiaccount-demo](https://github.com/fastwego/offiaccount-demo)\n\n接口列表：\n\n[doc/apilist.md](doc/apilist.md)\n\n## 架构设计\n\n![sdk](./doc/img/sdk.jpg)\n\n## 框架特点\n\n### 快速\n\n「快」作为框架设计的核心理念，体现在方方面面：\n\n- 使用 Go 语言，开发快、编译快、部署快、运行快，轻松服务海量用户\n- 丰富的[文档](https://pkg.go.dev/github.com/fastwego/offiaccount) / [教程](./doc/SUMMARY.md) 和 [演示代码](https://github.com/fastwego/offiaccount-demo) ，快速上手，5 分钟即可搭建一套完整的微信公众号服务\n- 独立清晰的模块划分，快速熟悉整个框架，没有意外，一切都是你期望的样子\n- 甚至连框架自身的大部分代码也是自动生成的，维护更新快到超乎想象\n\n### 符合直觉\n\n作为第三方开发框架，尽可能贴合官方文档和设计，不引入新的概念，不给开发者添加学习负担\n\n### 简洁而不过度封装\n\n作为具体业务和微信公众号之间的中间层，专注于通道的角色：帮业务把配置/材料投递到公众号，将公众号响应/推送透传回业务\n\n至于 [AccessToken 管理](./doc/access_token.md) 和 [消息加解密处理](./doc/message.md)，框架内部完成得干净利落，开发者甚至觉察不到存在\n\n### 官方文档就是最好的文档\n\n每个接口的注释都附带官方文档的链接，让你随时翻阅，省时省心\n\n### 完备的单元测试\n\n100% 覆盖每一个接口，让你每一次调用都信心满满\n\n### 详细的日志\n\n每个关键环节都为你完整记录，Debug 倍轻松，你可以自由定义日志输出，甚至可以关闭日志\n\n### 多账号支持\n\n一套服务支持多个微信公众号账号，轻松成为第三方开发服务平台，业务节节高\n\n### 支持服务集群\n\n单台服务器支撑不住访问流量/想提高服务可用性？\n\n只需 [设置 GetAccessTokenFunc 方法](https://pkg.go.dev/github.com/fastwego/offiaccount/?tab=doc#example-OffiAccount.SetGetAccessTokenHandler) ，从中控服务获取 AccessToken，即可解决多实例刷新冲突/覆盖的问题\n\n### 活跃的开发者社区\n\nFastWeGo 是一套完整的微信开发框架，包括公众号、开放平台、微信支付、企业微信、小程序、小游戏等微信服务，拥有庞大的开发者用户群体\n\n你遇到的所有问题几乎都可以在社区找到解决方案\n\n\n## 参与贡献\n\n欢迎提交 pull request / issue / 文档，一起让微信开发更快更好！\n\nFaster we go together!\n\n[加入开发者交流群](https://github.com/fastwego/fastwego.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastwego%2Foffiaccount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastwego%2Foffiaccount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastwego%2Foffiaccount/lists"}