fix: rebuild MES as compilable go-zero+ent backend (renamed bj_power_mes), restore 3 workstation projects from pristine original, align naming; all Go projects go build clean
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//go:build ignore
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/zeromicro/go-zero/tools/goctl/api/format"
|
||||
)
|
||||
|
||||
func main() {
|
||||
format.VarStringDir = "."
|
||||
if err := format.GoFormatApi(nil, nil); err != nil {
|
||||
log.Fatal("running goctl format failed:", err)
|
||||
}
|
||||
log.Println("goctl formatted apis successfully!")
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/zeromicro/go-zero/tools/goctl/api/gogen"
|
||||
"github.com/zeromicro/go-zero/tools/goctl/pkg/env"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// v1.8.3 关闭类型分组
|
||||
if err := env.WriteEnv([]string{env.GoctlExperimental + "=off"}); err != nil {
|
||||
log.Fatal("set env failed:", err)
|
||||
}
|
||||
if err := gogen.DoGenProject("main.api", "../", "go_zero", false); err != nil {
|
||||
log.Fatal("running goctl gogen failed:", err)
|
||||
}
|
||||
log.Println("goctl code generated successfully!")
|
||||
}
|
||||
Reference in New Issue
Block a user