mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
entc/gen: add missing braces in mutation template (#1014)
This commit is contained in:
@@ -53,7 +53,7 @@ var _ ent.Mutation = (*CityMutation)(nil)
|
||||
// cityOption allows to manage the mutation configuration using functional options.
|
||||
type cityOption func(*CityMutation)
|
||||
|
||||
// newCityMutation creates new mutation for $n.Name.
|
||||
// newCityMutation creates new mutation for City.
|
||||
func newCityMutation(c config, op Op, opts ...cityOption) *CityMutation {
|
||||
m := &CityMutation{
|
||||
config: c,
|
||||
@@ -438,7 +438,7 @@ var _ ent.Mutation = (*StreetMutation)(nil)
|
||||
// streetOption allows to manage the mutation configuration using functional options.
|
||||
type streetOption func(*StreetMutation)
|
||||
|
||||
// newStreetMutation creates new mutation for $n.Name.
|
||||
// newStreetMutation creates new mutation for Street.
|
||||
func newStreetMutation(c config, op Op, opts ...streetOption) *StreetMutation {
|
||||
m := &StreetMutation{
|
||||
config: c,
|
||||
|
||||
@@ -45,7 +45,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
@@ -53,7 +53,7 @@ var _ ent.Mutation = (*GroupMutation)(nil)
|
||||
// groupOption allows to manage the mutation configuration using functional options.
|
||||
type groupOption func(*GroupMutation)
|
||||
|
||||
// newGroupMutation creates new mutation for $n.Name.
|
||||
// newGroupMutation creates new mutation for Group.
|
||||
func newGroupMutation(c config, op Op, opts ...groupOption) *GroupMutation {
|
||||
m := &GroupMutation{
|
||||
config: c,
|
||||
@@ -441,7 +441,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
@@ -53,7 +53,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
@@ -56,7 +56,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
@@ -52,7 +52,7 @@ var _ ent.Mutation = (*PetMutation)(nil)
|
||||
// petOption allows to manage the mutation configuration using functional options.
|
||||
type petOption func(*PetMutation)
|
||||
|
||||
// newPetMutation creates new mutation for $n.Name.
|
||||
// newPetMutation creates new mutation for Pet.
|
||||
func newPetMutation(c config, op Op, opts ...petOption) *PetMutation {
|
||||
m := &PetMutation{
|
||||
config: c,
|
||||
@@ -418,7 +418,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
@@ -54,7 +54,7 @@ var _ ent.Mutation = (*NodeMutation)(nil)
|
||||
// nodeOption allows to manage the mutation configuration using functional options.
|
||||
type nodeOption func(*NodeMutation)
|
||||
|
||||
// newNodeMutation creates new mutation for $n.Name.
|
||||
// newNodeMutation creates new mutation for Node.
|
||||
func newNodeMutation(c config, op Op, opts ...nodeOption) *NodeMutation {
|
||||
m := &NodeMutation{
|
||||
config: c,
|
||||
|
||||
@@ -54,7 +54,7 @@ var _ ent.Mutation = (*CardMutation)(nil)
|
||||
// cardOption allows to manage the mutation configuration using functional options.
|
||||
type cardOption func(*CardMutation)
|
||||
|
||||
// newCardMutation creates new mutation for $n.Name.
|
||||
// newCardMutation creates new mutation for Card.
|
||||
func newCardMutation(c config, op Op, opts ...cardOption) *CardMutation {
|
||||
m := &CardMutation{
|
||||
config: c,
|
||||
@@ -473,7 +473,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
@@ -52,7 +52,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
@@ -53,7 +53,7 @@ var _ ent.Mutation = (*NodeMutation)(nil)
|
||||
// nodeOption allows to manage the mutation configuration using functional options.
|
||||
type nodeOption func(*NodeMutation)
|
||||
|
||||
// newNodeMutation creates new mutation for $n.Name.
|
||||
// newNodeMutation creates new mutation for Node.
|
||||
func newNodeMutation(c config, op Op, opts ...nodeOption) *NodeMutation {
|
||||
m := &NodeMutation{
|
||||
config: c,
|
||||
|
||||
@@ -48,7 +48,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
@@ -57,7 +57,7 @@ var _ ent.Mutation = (*GroupMutation)(nil)
|
||||
// groupOption allows to manage the mutation configuration using functional options.
|
||||
type groupOption func(*GroupMutation)
|
||||
|
||||
// newGroupMutation creates new mutation for $n.Name.
|
||||
// newGroupMutation creates new mutation for Group.
|
||||
func newGroupMutation(c config, op Op, opts ...groupOption) *GroupMutation {
|
||||
m := &GroupMutation{
|
||||
config: c,
|
||||
@@ -497,7 +497,7 @@ var _ ent.Mutation = (*TenantMutation)(nil)
|
||||
// tenantOption allows to manage the mutation configuration using functional options.
|
||||
type tenantOption func(*TenantMutation)
|
||||
|
||||
// newTenantMutation creates new mutation for $n.Name.
|
||||
// newTenantMutation creates new mutation for Tenant.
|
||||
func newTenantMutation(c config, op Op, opts ...tenantOption) *TenantMutation {
|
||||
m := &TenantMutation{
|
||||
config: c,
|
||||
@@ -796,7 +796,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
@@ -56,7 +56,7 @@ var _ ent.Mutation = (*CarMutation)(nil)
|
||||
// carOption allows to manage the mutation configuration using functional options.
|
||||
type carOption func(*CarMutation)
|
||||
|
||||
// newCarMutation creates new mutation for $n.Name.
|
||||
// newCarMutation creates new mutation for Car.
|
||||
func newCarMutation(c config, op Op, opts ...carOption) *CarMutation {
|
||||
m := &CarMutation{
|
||||
config: c,
|
||||
@@ -474,7 +474,7 @@ var _ ent.Mutation = (*GroupMutation)(nil)
|
||||
// groupOption allows to manage the mutation configuration using functional options.
|
||||
type groupOption func(*GroupMutation)
|
||||
|
||||
// newGroupMutation creates new mutation for $n.Name.
|
||||
// newGroupMutation creates new mutation for Group.
|
||||
func newGroupMutation(c config, op Op, opts ...groupOption) *GroupMutation {
|
||||
m := &GroupMutation{
|
||||
config: c,
|
||||
@@ -865,7 +865,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
@@ -57,7 +57,7 @@ var _ ent.Mutation = (*GroupMutation)(nil)
|
||||
// groupOption allows to manage the mutation configuration using functional options.
|
||||
type groupOption func(*GroupMutation)
|
||||
|
||||
// newGroupMutation creates new mutation for $n.Name.
|
||||
// newGroupMutation creates new mutation for Group.
|
||||
func newGroupMutation(c config, op Op, opts ...groupOption) *GroupMutation {
|
||||
m := &GroupMutation{
|
||||
config: c,
|
||||
@@ -502,7 +502,7 @@ var _ ent.Mutation = (*PetMutation)(nil)
|
||||
// petOption allows to manage the mutation configuration using functional options.
|
||||
type petOption func(*PetMutation)
|
||||
|
||||
// newPetMutation creates new mutation for $n.Name.
|
||||
// newPetMutation creates new mutation for Pet.
|
||||
func newPetMutation(c config, op Op, opts ...petOption) *PetMutation {
|
||||
m := &PetMutation{
|
||||
config: c,
|
||||
@@ -956,7 +956,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
Reference in New Issue
Block a user