hertz_gorm

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: 4 Imported by: 0

README

hertz_gorm

Introduce

A demo with Hertz and Gorm

  • Use thrift IDL to define HTTP interface
  • Use hz to generate code
  • Use Hertz binding and validate
  • Use Gorm and MySQL

IDL

This demo use thrift IDL to define HTTP interface. The specific interface define in api.thrift

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_gorm && docker-compose up
Run demo
cd bizdemo/hertz_gorm
go build -o hertz_gorm && ./hertz_gorm

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
biz
dal

Jump to

Keyboard shortcuts

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