hertz_jwt

command module
v0.0.0-...-231bdf8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

hertz_jwt

Introduce

A demo with Hertz and JWT

  • Use hz to generate code
  • Use JWT to complete login and authentication
  • Use Gorm and MySQL

JWT

Use Hertz's JWT extension, refer to jwt

Code generation tool

This demo use hz to generate code. The use of hz refers to hz

The hz commands used can be found in Makefile

Binding and Validate

The use of binding and Validate refers to Binding and Validate

Gorm

This demo use Gorm to operate MySQL and refers to Gorm

How to run

Run mysql docker
cd bizdemo/hertz_jwt && docker-compose up
Run demo
cd bizdemo/hertz_jwt && go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
biz
dal
mw

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL