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
+28
View File
@@ -0,0 +1,28 @@
//go:build ignore
package main
import (
"log"
"entgo.io/ent/entc"
"entgo.io/ent/entc/gen"
)
func main() {
if err := entc.Generate(
".",
&gen.Config{
Target: "../ent",
Package: "bj_power_mes/ent",
Features: []gen.Feature{
gen.FeatureExecQuery, // Allows users to execute statements using the ExecContext/QueryContext methods of the underlying driver
gen.FeatureLock, // Allows users to use row-level locking in SQL using the 'FOR {UPDATE|SHARE}' clauses
gen.FeatureModifier, // Allows users to attach custom modifiers to queries
gen.FeatureNamedEdges, // NamedEdges provides an API for eager-loading edges with dynamic names
},
}); err != nil {
log.Fatal("running ent codegen:", err)
}
log.Println("ent code generated successfully!")
}