# 生产model goctl model pg datasource --url="postgres://postgres:123456@10.0.1.36:5432/postgres?sslmode=disable" --table="te_thoroughly_register" -dir ./model # 本机 # api 生成 goctl api go -api demo.api -dir . ## 编写api文件 ```go domo.api ``` ## 运行工具,自动生成 ```shell goctl api go -api demo.api -dir . ``` ## 编写逻辑 /internal/logic ## go run demo.go ## 打包 ```shell ./build.bat ```