{"id":24491807,"url":"https://github.com/huahuai23/unionpay3060","last_synced_at":"2025-10-06T00:32:27.284Z","repository":{"id":271521737,"uuid":"913675801","full_name":"HUAHUAI23/unionpay3060","owner":"HUAHUAI23","description":"对接银联3060，基于 Javalin 框架构建的企业认证服务，适用于需要企业认证和授权能力的微服务环境，也可以作为普通 web 服务初始的脚手架。","archived":false,"fork":false,"pushed_at":"2025-02-26T03:50:27.000Z","size":3984,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T00:34:27.079Z","etag":null,"topics":["authentication","java","javalin","swagger","unionpay"],"latest_commit_sha":null,"homepage":"","language":"Java","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/HUAHUAI23.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,"zenodo":null}},"created_at":"2025-01-08T06:24:32.000Z","updated_at":"2025-02-26T03:50:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"f33a474b-6fca-4d77-872b-399618806097","html_url":"https://github.com/HUAHUAI23/unionpay3060","commit_stats":null,"previous_names":["huahuai23/unionpay3060"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HUAHUAI23/unionpay3060","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HUAHUAI23%2Funionpay3060","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HUAHUAI23%2Funionpay3060/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HUAHUAI23%2Funionpay3060/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HUAHUAI23%2Funionpay3060/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HUAHUAI23","download_url":"https://codeload.github.com/HUAHUAI23/unionpay3060/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HUAHUAI23%2Funionpay3060/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264578862,"owners_count":23631553,"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":["authentication","java","javalin","swagger","unionpay"],"created_at":"2025-01-21T18:19:24.390Z","updated_at":"2025-10-06T00:32:22.231Z","avatar_url":"https://github.com/HUAHUAI23.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enterprise Authentication Service\n\n![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)\n![JDK](https://img.shields.io/badge/JDK-17-green.svg)\n![Javalin](https://img.shields.io/badge/Javalin-Latest-orange.svg)\n\n[English](readme.en.md)\n\n---\n\n### 项目简介\n基于 Javalin 框架开发的企业认证服务，对接银联 3060 接口，提供 RESTful API 接口，支持 Swagger 文档，使用 Bearer Token 进行身份验证。\n\n### 环境要求\n- OpenJDK 17.0.2+\n- Maven\n\n### 项目结构\n```\n.\n├── conf/                 # 配置文件目录\n│   ├── cert/            # 证书文件\n│   └── security.properties # 银联 3060 加密配置文件\n├── src/\n│   └── main/\n│       ├── java/        # 源代码\n│       └── resources/   # 资源文件\n├── .env.example        # 环境变量文件\n└── pom.xml             # Maven 配置文件\n```\n\n### 核心模块\n- **Config**: 应用配置管理，包含环境变量、错误处理和 Swagger 配置\n- **Exception**: 全局统一异常处理\n- **Model**: 数据模型定义，包含 POJO 类和统一响应格式\n- **Middleware**: 中间件组件，如认证中间件\n- **Router**: 路由注册管理\n- **Handler**: 请求处理器，负责调用 Service 处理业务逻辑\n- **Service**: 无状态的业务逻辑实现层\n\n### 设计原则\n- Handler 负责状态管理（如维持数据库连接等有状态维护）\n- Service 保持无状态设计\n- 统一的错误处理和响应格式\n- 模块化的项目结构\n\n### 使用方法\n1. 复制 .env.example 文件为 .env 文件，并配置相关环境变量\n2. 运行 `mvn clean package assembly:single` 进行编译和打包\n3. 运行 `java -jar target/unionpay3060-1.0-SNAPSHOT-with-dependencies.jar` 启动应用\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuahuai23%2Funionpay3060","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuahuai23%2Funionpay3060","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuahuai23%2Funionpay3060/lists"}