Init V4 community edition (#2265)

* Init V4 community edition

* Init V4 community edition
This commit is contained in:
AaronLiu
2025-04-20 17:31:25 +08:00
committed by GitHub
parent da4e44b77a
commit 21d158db07
597 changed files with 119415 additions and 41692 deletions

View File

@@ -0,0 +1,20 @@
{{/* The line below tells Intellij/GoLand to enable the autocompletion based on the *gen.Graph type. */}}
{{/* gotype: entgo.io/ent/entc/gen.Graph */}}
{{ define "mutationhelper" }}
{{ $pkg := base $.Config.Package }}
{{ template "header" $ }}
{{ range $n := $.Nodes }}
// SetUpdatedAt sets the "updated_at" field.
{{ with $n.HasOneFieldID }}
func (m *{{ $n.Name }}Mutation) SetRawID(t {{ $n.ID.Type }}) {
m.id = &t
}
{{ end }}
{{ end }}
{{ end }}