{"id":20669701,"url":"https://github.com/fox-one/fake-gateway","last_synced_at":"2026-04-22T06:04:47.664Z","repository":{"id":97516493,"uuid":"167660277","full_name":"fox-one/fake-gateway","owner":"fox-one","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-13T14:01:57.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T13:32:41.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fox-one.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-26T07:02:55.000Z","updated_at":"2019-02-13T14:01:59.000Z","dependencies_parsed_at":"2024-03-15T17:32:41.617Z","dependency_job_id":null,"html_url":"https://github.com/fox-one/fake-gateway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffake-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffake-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffake-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffake-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fox-one","download_url":"https://codeload.github.com/fox-one/fake-gateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242886166,"owners_count":20201495,"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":[],"created_at":"2024-11-16T20:15:39.390Z","updated_at":"2025-12-16T05:37:41.879Z","avatar_url":"https://github.com/fox-one.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fake-gateway\n\n## How It Works\n\nFoxONE gateway接收来自用户的请求，经过简单处理后，添加相应的token等header，将请求发送至业务方的相应接口。业务方可使用token访问钱包服务。\n\n转发的请求中，网关将为请求加上headers:\n\n```text\nAuthorization: Bearer xxx\nFox-Merchant-ID: xxx\nFox-Member-ID: xxx\nFox-Wallet-ID: xxx\n```\n\n业务方的请求将分为四种，公共接口，需要访问钱包信息的接口，需要进行转账操作的接口，以及管理员接口。根据不同的接口，分别将请求发送至:\n\n```text\n/member/:service/p/*gw   # public\n/member/:service/u/*gw   # login required\n/member/:service/pin/*gw   # pin required\n/admin/:service/u/*gw        # no pin required \u0026 must admin login reuired\n```\n\n其中service由FoxONE为业务分配。如otc, exchange等。\n\n## Build And Run\n\n```shell\ncd fake_gateway\ngo build\n./fake_gateway --debug api -p 8081 -s http://locahost:8111\n```\n\n## Updates\n\n- 所有转发接口不再以 /gw 结尾\n- public接口更新为 /p/:service/*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Ffake-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffox-one%2Ffake-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Ffake-gateway/lists"}