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:
SunYF
2026-08-27 10:56:41 +08:00
parent 380715f8a9
commit 371b494c54
523 changed files with 67923 additions and 24758 deletions
+17
View File
@@ -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!")
}
+19
View File
@@ -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!")
}