{"id":18903767,"url":"https://github.com/bububa/bankcn","last_synced_at":"2025-09-04T15:33:01.174Z","repository":{"id":240329778,"uuid":"801948504","full_name":"bububa/bankcn","owner":"bububa","description":"国内银行支行的联行号和地区信息, 校验银行卡","archived":false,"fork":false,"pushed_at":"2024-06-20T07:51:41.000Z","size":3255,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-16T20:32:20.684Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bububa.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-17T08:20:11.000Z","updated_at":"2024-09-24T06:37:28.000Z","dependencies_parsed_at":"2024-05-18T04:10:08.702Z","dependency_job_id":"6011c593-f78c-4c8c-9cb6-4d6cca6ee848","html_url":"https://github.com/bububa/bankcn","commit_stats":null,"previous_names":["bububa/bankcn"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fbankcn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fbankcn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fbankcn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fbankcn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bububa","download_url":"https://codeload.github.com/bububa/bankcn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231971074,"owners_count":18453937,"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-08T09:06:18.510Z","updated_at":"2024-12-31T10:16:10.940Z","avatar_url":"https://github.com/bububa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 国内银行支行的联行号和地区信息, 银行图标, 校验银行卡\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/bububa/bankcn.svg)](https://pkg.go.dev/github.com/bububa/bankcn)\n[![Go](https://github.com/bububa/bankcn/actions/workflows/go.yml/badge.svg)](https://github.com/bububa/bankcn/actions/workflows/go.yml)\n[![goreleaser](https://github.com/bububa/bankcn/actions/workflows/goreleaser.yml/badge.svg)](https://github.com/bububa/bankcn/actions/workflows/goreleaser.yml)\n[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/bububa/bankcn.svg)](https://github.com/bububa/bankcn)\n[![GoReportCard](https://goreportcard.com/badge/github.com/bububa/bankcn)](https://goreportcard.com/report/github.com/bububa/bankcn)\n[![GitHub license](https://img.shields.io/github/license/bububa/bankcn.svg)](https://github.com/bububa/bankcn/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/bububa/bankcn.svg)](https://GitHub.com/bububa/bankcn/releases/)\n\n\n## API List\n\n- 获取所有支行 [ BankBranchList() []Bank ]\n- 根据 areaID 获取当前区域下所有支行 [ BankListByArea(bankID string, areaID string) []*Bank ]\n- 检测是否是银行卡 [ IsBankCard(bankCardNo string) bool ]\n- 根据卡号获取银行信息 [ GetBankByCardBin(bankCardNo string, bank *Bank) error ]\n- 使用阿里接口查询银行卡信息 [ GetBankByCardOnline(cardNo string, bankInfo *Bank) error ]\n\n\n## Usage\n```golang\n\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/bububa/bankcn\"\n)\n\nfunc main() {\n    cardNo := \"XXXXXX\"\n\tvar bank bankcn.Bank\n\tif err := bankcn.GetBankByCardOnline(cardNo, \u0026bank); err != nil {\n\t\tlog.Fatalln(err)\n\t\treturn\n\t}\n\tfmt.Printf(\"%+v\\n\", bank)\n\tif err := bankcn.GetBankByCardBin(cardNo, \u0026bank); err != nil {\n\t\tlog.Fatalln(err)\n\t\treturn\n\t}\n\tfmt.Printf(\"%+v\\n\", bank)\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbububa%2Fbankcn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbububa%2Fbankcn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbububa%2Fbankcn/lists"}