func (au *AddressUpdate) SetUpdatedAt(t time.Time) *AddressUpdate {
	au.mutation.SetUpdatedAt(t)
	return au
}
SetUpdatedAt sets the "updated_at" field.
package ent
import (
	"context"
	"fmt"
	"time"
	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
	"github.com/go-kratos/beer-shop/app/user/service/internal/data/ent/address"
	"github.com/go-kratos/beer-shop/app/user/service/internal/data/ent/predicate"
	"github.com/go-kratos/beer-shop/app/user/service/internal/data/ent/user"
)
type AddressUpdate struct {
	config
	hooks    []Hook
	mutation *AddressMutation
}
func (au *AddressUpdate) Where(ps ...predicate.Address) *AddressUpdate {
	au.mutation.predicates = append(au.mutation.predicates, ps...)
	return au
}
func (au *AddressUpdate) SetName(s string) *AddressUpdate {
	au.mutation.SetName(s)
	return au
}
func (au *AddressUpdate) SetMobile(s string) *AddressUpdate {
	au.mutation.SetMobile(s)
	return au
}
func (au *AddressUpdate) SetAddress(s string) *AddressUpdate {
	au.mutation.SetAddress(s)
	return au
}
func (au *AddressUpdate) SetPostCode(s string) *AddressUpdate {
	au.mutation.SetPostCode(s)
	return au
}
func (au *AddressUpdate) SetCreatedAt(t time.Time) *AddressUpdate {
	au.mutation.SetCreatedAt(t)
	return au
}
func (au *AddressUpdate) SetNillableCreatedAt(t *time.Time) *AddressUpdate {
	if t != nil {
		au.SetCreatedAt(*t)
	}
	return au
}