初始化2

This commit is contained in:
SunYF
2026-08-28 15:06:01 +08:00
parent b34325a16f
commit a9c3fbeb41
537 changed files with 176215 additions and 17 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,
gen.FeatureLock,
gen.FeatureModifier,
gen.FeatureNamedEdges,
},
}); err != nil {
log.Fatal("running ent codegen:", err)
}
log.Println("ent code generated successfully!")
}