2025-10-16 13:28:24 +08:00

409 B

自动生成数据库模型和常见的 CRUD 操作

Usage

go run cmd/handlergen/main.go -h

Usage of ./cmd/handlergen/main.go:
  -table string
        enter the required data table

-table

指定要生成的表名称。

eg :

--tables="admin"       # generate from `admin`

示例

# 根目录下执行
go run cmd/handlergen/main.go -table "customer"