func (bu *BeerUpdate) AddPrice(i int64) *BeerUpdate {
	bu.mutation.AddPrice(i)
	return bu
}
AddPrice adds i to the "price" 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/catalog/service/internal/biz"
	"github.com/go-kratos/beer-shop/app/catalog/service/internal/data/ent/beer"
	"github.com/go-kratos/beer-shop/app/catalog/service/internal/data/ent/predicate"
)
type BeerUpdate struct {
	config
	hooks    []Hook
	mutation *BeerMutation
}
func (bu *BeerUpdate) Where(ps ...predicate.Beer) *BeerUpdate {
	bu.mutation.predicates = append(bu.mutation.predicates, ps...)
	return bu
}
func (bu *BeerUpdate) SetName(s string) *BeerUpdate {
	bu.mutation.SetName(s)
	return bu
}
func (bu *BeerUpdate) SetDescription(s string) *BeerUpdate {
	bu.mutation.SetDescription(s)
	return bu
}
func (bu *BeerUpdate) SetCount(i int64) *BeerUpdate {
	bu.mutation.ResetCount()
	bu.mutation.SetCount(i)
	return bu
}
func (bu *BeerUpdate) AddCount(i int64) *BeerUpdate {
	bu.mutation.AddCount(i)
	return bu
}
func (bu *BeerUpdate) SetPrice(i int64) *BeerUpdate {
	bu.mutation.ResetPrice()
	bu.mutation.SetPrice(i)
	return bu
}