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

29 lines
409 B
Markdown

## 自动生成数据库模型和常见的 CRUD 操作
### Usage
```shell
go run cmd/handlergen/main.go -h
Usage of ./cmd/handlergen/main.go:
-table string
enter the required data table
```
#### -table
指定要生成的表名称。
eg :
```shell
--tables="admin" # generate from `admin`
```
## 示例
```shell
# 根目录下执行
go run cmd/handlergen/main.go -table "customer"
```