初始化

This commit is contained in:
SunYF
2026-08-28 14:07:22 +08:00
parent a185247ab1
commit b34325a16f
971 changed files with 291 additions and 220360 deletions
-28
View File
@@ -1,28 +0,0 @@
//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!")
}