Versions in this module Expand all Collapse all v1 v1.1.0 Oct 24, 2023 v1.0.0 Oct 9, 2023 Changes in this version + type AddCouponCommand struct + func NewAddCouponCommand(orderID string, coupon *sale.Coupon) *AddCouponCommand + func (c *AddCouponCommand) Act(ctx context.Context, container ddd.RootContainer, roots ...ddd.IEntity) error + func (c *AddCouponCommand) Build(ctx context.Context, builder ddd.DomainBuilder) (roots []ddd.IEntity, err error) + func (c *AddCouponCommand) Init(ctx context.Context) ([]string, error) + type AddSaleItemCommand struct + func NewAddSaleItemCommand(orderID string, item *sale.SaleItem) *AddSaleItemCommand + func (c *AddSaleItemCommand) Act(ctx context.Context, container dddfirework.RootContainer, ...) error + func (c *AddSaleItemCommand) Build(ctx context.Context, h dddfirework.DomainBuilder) (roots []dddfirework.IEntity, err error) + func (c *AddSaleItemCommand) Init(ctx context.Context) ([]string, error) + type CreateOrderCommand struct + Result *CreateOrderResult + func NewCreateOrderCommand(userID string, items []*sale.SaleItem, coupons []*sale.Coupon) *CreateOrderCommand + func (c *CreateOrderCommand) Act(ctx context.Context, container dddfirework.RootContainer, ...) error + func (c *CreateOrderCommand) PostSave(ctx context.Context, res *dddfirework.Result) + type CreateOrderResult struct + OrderID string + type DeleteOrderCommand struct + func NewDeleteOrderCommand(orderID string) *DeleteOrderCommand + func (c *DeleteOrderCommand) Act(ctx context.Context, container dddfirework.RootContainer, ...) error + func (c *DeleteOrderCommand) Build(ctx context.Context, builder dddfirework.DomainBuilder) (roots []dddfirework.IEntity, err error) + type UpdateOrderCommand struct + func NewUpdateOrderCommand(orderID string, opt UpdateOrderOpt) *UpdateOrderCommand + func (c *UpdateOrderCommand) Act(ctx context.Context, container dddfirework.RootContainer, ...) error + func (c *UpdateOrderCommand) Build(ctx context.Context, builder dddfirework.DomainBuilder) (roots []dddfirework.IEntity, err error) + func (c *UpdateOrderCommand) Init(ctx context.Context) (lockIDs []string, err error) + type UpdateOrderOpt struct + Remark *string