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 AddCouponRequest struct + Coupon *sale.Coupon + OrderID string + type AddCouponResponse struct + type AddSaleItemRequest struct + Item *sale.SaleItem + OrderID string + type AddSaleItemResponse struct + type CreateOrderRequest struct + Coupons []*sale.Coupon + Items []*sale.SaleItem + User string + type CreateOrderResponse struct + OrderID string + type DeleteOrderRequest struct + ID string + type DeleteOrderResponse struct + type GetOrderListRequest struct + CreateTimeBegin *int64 + CreateTimeEnd *int64 + Limit *int32 + Offset *int32 + UserID *string + type GetOrderListResponse struct + Items []*sale.SimpleOrder + type GetOrderRequest struct + ID string + type GetOrderResponse struct + Order *sale.Order + type SaleServiceImpl struct + func NewSaleService(engine *dddfirework.Engine) *SaleServiceImpl + func (s *SaleServiceImpl) AddCoupon(ctx context.Context, req *AddCouponRequest) (resp *AddCouponResponse, err error) + func (s *SaleServiceImpl) AddSaleItem(ctx context.Context, req *AddSaleItemRequest) (resp *AddSaleItemResponse, err error) + func (s *SaleServiceImpl) CreateOrder(ctx context.Context, req *CreateOrderRequest) (resp *CreateOrderResponse, err error) + func (s *SaleServiceImpl) DeleteOrder(ctx context.Context, req *DeleteOrderRequest) (resp *DeleteOrderResponse, err error) + func (s *SaleServiceImpl) GetOrder(ctx context.Context, req *GetOrderRequest) (resp *GetOrderResponse, err error) + func (s *SaleServiceImpl) GetOrderList(ctx context.Context, req *GetOrderListRequest) (resp *GetOrderListResponse, err error) + func (s *SaleServiceImpl) UpdateOrder(ctx context.Context, req *UpdateOrderRequest) (resp *UpdateOrderResponse, err error) + type UpdateOrderRequest struct + ID string + Remark *string + type UpdateOrderResponse struct