Documentation ¶
Index ¶
- Variables
- func NewShopping(partnerId int, partnerRep partner.IPartnerRep, rep shopping.IShoppingRep, ...) shopping.IShopping
- type Cart
- func (this *Cart) AddItem(goodsId, num int) *shopping.ValueCartItem
- func (this *Cart) BindOrder(orderNo string) error
- func (this *Cart) Combine(c shopping.ICart) (shopping.ICart, error)
- func (this *Cart) GetDomainId() int
- func (this *Cart) GetFee() (totalFee float32, orderFee float32)
- func (this *Cart) GetSettleData() (s partner.IShop, d member.IDeliver, paymentOpt, deliverOpt int)
- func (this *Cart) GetSummary() string
- func (this *Cart) GetValue() shopping.ValueCart
- func (this *Cart) RemoveItem(goodsId, num int) error
- func (this *Cart) Save() (int, error)
- func (this *Cart) SetBuyer(buyerId int) error
- func (this *Cart) SettlePersist(shopId, paymentOpt, deliverOpt, deliverId int) error
- type Order
- func (this *Order) AddRemark(remark string)
- func (this *Order) AppendLog(t enum.OrderLogType, system bool, message string) error
- func (this *Order) ApplyCoupon(coupon promotion.ICoupon) error
- func (this *Order) Cancel(reason string) error
- func (this *Order) Complete() error
- func (this *Order) Confirm() error
- func (this *Order) Deliver() error
- func (this *Order) GetCoupons() []promotion.ICoupon
- func (this *Order) GetDomainId() int
- func (this *Order) GetValue() shopping.ValueOrder
- func (this *Order) IsOver() bool
- func (this *Order) Process() error
- func (this *Order) Save() (int, error)
- func (this *Order) SetDeliver(deliverAddrId int) error
- func (this *Order) SetPayment(payment int)
- func (this *Order) SetShop(shopId int) error
- func (this *Order) SignPaid() error
- func (this *Order) SignReceived() error
- func (this *Order) Submit() (string, error)
- func (this *Order) Suspend(reason string) error
- type Shopping
- func (this *Shopping) BindCartBuyer(cartKey string, buyerId int) error
- func (this *Shopping) BuildOrder(memberId int, couponCode string) (shopping.IOrder, shopping.ICart, error)
- func (this *Shopping) CreateOrder(val *shopping.ValueOrder, cart shopping.ICart) shopping.IOrder
- func (this *Shopping) GetAggregateRootId() int
- func (this *Shopping) GetCart(key string) (shopping.ICart, error)
- func (this *Shopping) GetFreeOrderNo() string
- func (this *Shopping) GetNotBoughtCart(buyerId int) (shopping.ICart, error)
- func (this *Shopping) GetOrderByNo(orderNo string) (shopping.IOrder, error)
- func (this *Shopping) NewCart(buyerId int) shopping.ICart
- func (this *Shopping) OrderAutoSetup(f func(error))
- func (this *Shopping) ParseShoppingCart(memberId int) (shopping.IOrder, member.IMember, shopping.ICart, error)
- func (this *Shopping) SmartChoiceShop(address string) (partner.IShop, error)
- func (this *Shopping) SubmitOrder(memberId int, couponCode string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EXP_BIT float32
)
Functions ¶
func NewShopping ¶
func NewShopping(partnerId int, partnerRep partner.IPartnerRep, rep shopping.IShoppingRep, saleRep sale.ISaleRep, promRep promotion.IPromotionRep, memberRep member.IMemberRep, deliveryRep delivery.IDeliveryRep) shopping.IShopping
Types ¶
type Cart ¶
type Cart struct {
// contains filtered or unexported fields
}
func (*Cart) GetDomainId ¶
func (*Cart) GetSettleData ¶
获取结算数据
func (*Cart) SettlePersist ¶
结算数据持久化
type Order ¶
type Order struct {
// contains filtered or unexported fields
}
func (*Order) GetDomainId ¶
func (*Order) GetValue ¶
func (this *Order) GetValue() shopping.ValueOrder
type Shopping ¶
type Shopping struct {
// contains filtered or unexported fields
}
func (*Shopping) BindCartBuyer ¶
绑定购物车会员编号
func (*Shopping) BuildOrder ¶
func (this *Shopping) BuildOrder(memberId int, couponCode string) (shopping.IOrder, shopping.ICart, error)
生成订单
func (*Shopping) CreateOrder ¶
func (*Shopping) GetAggregateRootId ¶
func (*Shopping) GetFreeOrderNo ¶
func (*Shopping) GetNotBoughtCart ¶
获取没有结算的购物车
func (*Shopping) GetOrderByNo ¶
func (*Shopping) ParseShoppingCart ¶
func (this *Shopping) ParseShoppingCart(memberId int) (shopping.IOrder, member.IMember, shopping.ICart, error)
将购物车转换为订单
func (*Shopping) SmartChoiceShop ¶
智能选择门店
Click to show internal directories.
Click to hide internal directories.