{"id":21548494,"url":"https://github.com/beeven/etg-mobile-service","last_synced_at":"2025-06-21T12:38:14.800Z","repository":{"id":72128646,"uuid":"72720878","full_name":"beeven/etg-mobile-service","owner":"beeven","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-20T08:37:42.000Z","size":145,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T09:28:59.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/beeven.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":"2016-11-03T07:45:34.000Z","updated_at":"2019-12-31T07:35:19.000Z","dependencies_parsed_at":"2023-02-26T16:45:40.479Z","dependency_job_id":null,"html_url":"https://github.com/beeven/etg-mobile-service","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/beeven%2Fetg-mobile-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeven%2Fetg-mobile-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeven%2Fetg-mobile-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeven%2Fetg-mobile-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beeven","download_url":"https://codeload.github.com/beeven/etg-mobile-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141588,"owners_count":20404835,"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-24T06:18:48.861Z","updated_at":"2025-03-18T01:54:08.118Z","avatar_url":"https://github.com/beeven.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 广州海关易通关接口\n\n接口使用gRPC传输，对象以protobuf方式序列化，使用服务器证书与客户端证书认证。\n\n接口及对象定义参看[protos](./protos) 文件夹\n\n## 使用方法\n1. 参考[gRPC网站](https://grpc.io)安装对应语言版本的gRPC环境\n2. 根据protos文件夹里面的 .proto 文件生成对应的文件，添加到项目中\n3. 使用`openssl`等工具生成证书签名请求，发给 administrator@gzcustoms.gov.cn ，由海关签名生成证书后发回\n4. 将证书与key应用到client的channel中，服务器地址是 gzeport.gzcustoms.gov.cn:8080\n\n## Client示例\n[python/entry_data_client.py](python/entry_data_client.py)\n[csharp/EtgServiceClient](csharp/EtgServiceClient)\n\n\n## Server 部署步骤\n### Windows\n0. 在部署环境安装 [OpenSSL](https://slproweb.com/products/Win32OpenSSL.html)\n1. 编译生成 csharp/EtgService 下的解决方案\n2. 命令行执行 csharp/EtgService/EtgService 项目，看是否能正确执行，根据即将部署的服务器域名生成证书，添加到 csharp/EtgService/EtgService/appsettings.json 中\n3. 使用 `sc` 命令创建 Windows 服务：`sc create EtgService binPath= 'x:\\.....\\EtgService.exe --service'`\n4. 启动服务\n\n### Linux\n1. 编辑 cpp/ :\n```bash\nmkdir cpp/build\ncd cpp/build\ncmake ../\nmake\n```\n2. 运行 `./cpp/build/etg_service_server`\n\n### Docker\n已经生成的镜像在国内存放于aliyun中，直接下载运行即可\n```bash\ndocker pull registry.cn-hangzhou.aliyuncs.com/beeven/etg-grpc-service\ndocker run -d -p 8443:8443 registry.cn-hangzhou.aliyuncs.com/beeven/etg-grpc-service\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeeven%2Fetg-mobile-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeeven%2Fetg-mobile-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeeven%2Fetg-mobile-service/lists"}