{"id":29259104,"url":"https://github.com/birjemin/wxgameod","last_synced_at":"2025-07-16T12:40:16.853Z","repository":{"id":57560857,"uuid":"309588444","full_name":"Birjemin/wxgameod","owner":"Birjemin","description":"wxgame 开放数据 weixin 微信小游戏 关系链数据","archived":false,"fork":false,"pushed_at":"2021-01-07T08:13:54.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T17:48:37.229Z","etag":null,"topics":["data","interactive-data","relation","user-storage"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Birjemin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-03T05:57:08.000Z","updated_at":"2021-01-09T09:57:49.000Z","dependencies_parsed_at":"2022-09-01T11:51:48.250Z","dependency_job_id":null,"html_url":"https://github.com/Birjemin/wxgameod","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Birjemin/wxgameod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Birjemin%2Fwxgameod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Birjemin%2Fwxgameod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Birjemin%2Fwxgameod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Birjemin%2Fwxgameod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Birjemin","download_url":"https://codeload.github.com/Birjemin/wxgameod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Birjemin%2Fwxgameod/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263457304,"owners_count":23469302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["data","interactive-data","relation","user-storage"],"created_at":"2025-07-04T06:14:04.535Z","updated_at":"2025-07-04T06:14:05.915Z","avatar_url":"https://github.com/Birjemin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## wxgameod-微信小游戏开放数据后台接口\n\n[![Build Status](https://travis-ci.com/Birjemin/wxgameod.svg?branch=master)](https://travis-ci.com/Birjemin/wxgameod) \n[![Go Report Card](https://goreportcard.com/badge/github.com/birjemin/wxgameod)](https://goreportcard.com/report/github.com/birjemin/wxgameod) \n[![codecov](https://codecov.io/gh/Birjemin/wxgameod/branch/master/graph/badge.svg)](https://codecov.io/gh/Birjemin/wxgameod)\n\n\n[开发者中心](https://developers.weixin.qq.com/minigame/dev/api-backend/open-api/data/storage.removeUserStorage.html)\n\n### 引入方式\n```\ngo get github.com/birjemin/wxgameod\n```\n\n### 接口列表\n\n- [removeUserStorage](https://developers.weixin.qq.com/minigame/dev/api-backend/open-api/data/storage.removeUserStorage.html) ✅\n- [setUserInteractiveData](https://developers.weixin.qq.com/minigame/dev/api-backend/open-api/data/storage.setUserInteractiveData.html) ✅\n- [setUserStorage](https://developers.weixin.qq.com/minigame/dev/api-backend/open-api/data/storage.setUserStorage.html) ✅\n\n### 使用方式\n\n- 示例\n\n```golang\nhttpClient := \u0026utils.HTTPClient{\n    Client: \u0026http.Client{\n        Timeout: 5 * time.Second,\n    },\n}\nvar m = SetUserStorage{\n    AccessToken: \"ACCESS_TOKEN\",\n    SessionKey:  \"SESSION_KEY\",\n    OpenID:      \"OPEN_ID\",\n    KvList:      \"{\\\"kv_list\\\":[{\\\"key\\\":\\\"1\\\",\\\"value\\\":\\\"0\\\"}]}\",\n    HTTPRequest: httpClient,\n}\n\nif ret, err := m.doSetUserStorage(ts.URL); err != nil {\n    t.Error(err)\n} else {\n    if ret.ErrCode != 0 {\n        t.Error(errors.New(\"msg: \" + ret.ErrMsg))\n    }\n}\n```\n\n### 测试\n- 测试\n    ```\n    go test\n    ```\n- 格式化代码\n    ```\n    golint\n    ```\n- 覆盖率\n    ```\n    go test -cover\n    go test -coverprofile=coverage.out \n    go tool cover -html=coverage.out\n    ```\n\n### 备注\n无","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirjemin%2Fwxgameod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbirjemin%2Fwxgameod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirjemin%2Fwxgameod/lists"}