Repository navigation
Conversation
Author
|
Hi @GuangmingLuo, sorry to bump this one. This PR only adds a single link to the The CLA check is green now. The Whenever you get a moment, a quick look would be much appreciated. Happy Thanks! |
Member
|
@gjing1st thanks, we won't add any more external examples, it's not necessary. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds hertz-admin to the
Bizdemosection.About the project
hertz-admin is a production-ready Go backend scaffolding built on Hertz. Unlike the existing demo-oriented bizdemos, it targets the "start a real project" scenario: clone it and you can start writing business logic immediately without re-deciding project layout, error handling conventions, or auth wiring.
Key points:
Architecture: follows the golang-standards/project-layout convention, with a one-way dependency chain
router → controller → service → store → model(MCSS)Auth: three-level role model (login / admin / super admin) implemented as route-group middleware, with Bearer token
Error handling: all errors converge into observable business error codes, decoupled from HTTP status codes
Crypto: built-in SM3 (including HMAC-SM3 for password storage) and SM4 in CBC/ECB/CFB/OFB modes, plus SM4-GCM — aimed at Chinese regulated industries
Versioning: follows the Kubernetes approach — git tag/commit is injected into the binary at build time and exposed via a
/versionendpointDatabase adapters: MySQL, PostgreSQL, openGauss, KingbaseES, DM, SQLite and ClickHouse, all verified against real instances; only MySQL is enabled by default so drivers a project does not need never end up in the binary
Ops: multi-arch Dockerfile, docker-compose, Kubernetes Deployment, Jenkinsfile
Stack: Hertz v0.10.6, GORM, logrus + lumberjack, swag/Swagger
Repository: https://github.com/gjing1st/hertz-admin
License: Apache-2.0
Actively maintained; last commit September 2026, currently on Hertz v0.10.6 and Go 1.27, complete
vendor/committed for offline/intranet buildsHappy to adjust the wording or the position in the list if needed. Thanks for the great work on Hertz!