mirror of
https://github.com/go-home-admin/toolset.git
synced 2025-12-24 13:37:52 +08:00
文件不存在, 无法加载环境变量
This commit is contained in:
17
Makefile
17
Makefile
@@ -1,17 +0,0 @@
|
||||
GOBIN := $(shell go env GOBIN)
|
||||
ATDIR := $(shell pwd)
|
||||
|
||||
# 只维护 protoc
|
||||
protoc:
|
||||
go run main.go make:protoc
|
||||
|
||||
make-route:
|
||||
go run main.go make:route
|
||||
|
||||
make-bean:
|
||||
go run main.go make:bean
|
||||
|
||||
# 调试启动
|
||||
dev:protoc make-route make-bean
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ connections:
|
||||
````shell
|
||||
user@macOs path $ toolset make:orm -config=./config/database.yaml -out=your_path
|
||||
````
|
||||
使用, 基本上和php laravel 很类似
|
||||
使用, 基本上和`php` `laravel` 很类似, 如果不使用整套的`home`代码, 应该在生成目录下编写新的`NewOrmUsers`函数
|
||||
````go
|
||||
orm := NewOrmUsers()
|
||||
user, has := orm.WhereId(1).First()
|
||||
|
||||
Reference in New Issue
Block a user