adding validated services? patching forcad_local.py
This commit is contained in:
23
OmCTF-2025/services/block_game/backend/codegen/entc.go
Normal file
23
OmCTF-2025/services/block_game/backend/codegen/entc.go
Normal file
@@ -0,0 +1,23 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"entgo.io/ent/entc"
|
||||
"entgo.io/ent/entc/gen"
|
||||
)
|
||||
|
||||
func main() {
|
||||
opt := entc.TemplateFiles("./template/create_from.tmpl")
|
||||
|
||||
config := gen.Config{
|
||||
Target: "./ent/",
|
||||
Package: "omctf.ru/block-game-backend/codegen/ent",
|
||||
}
|
||||
if err := entc.Generate("../schema", &config, opt); err != nil {
|
||||
log.Fatal("running ent codegen:", err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user