Documentation
¶
Index ¶
- type AddCouponRequest
- type AddCouponResponse
- type AddSaleItemRequest
- type AddSaleItemResponse
- type CreateOrderRequest
- type CreateOrderResponse
- type DeleteOrderRequest
- type DeleteOrderResponse
- type GetOrderListRequest
- type GetOrderListResponse
- type GetOrderRequest
- type GetOrderResponse
- type 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
- type UpdateOrderResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCouponRequest ¶
type AddCouponResponse ¶
type AddCouponResponse struct { }
type AddSaleItemRequest ¶
type AddSaleItemResponse ¶
type AddSaleItemResponse struct { }
type CreateOrderRequest ¶
type CreateOrderRequest struct { User string `thrift:"User,1,required" frugal:"1,required,string" json:"User"` Items []*sale.SaleItem `thrift:"Items,2,required" frugal:"2,required,list<SaleItem>" json:"Items"` Coupons []*sale.Coupon `thrift:"Coupons,3,optional" frugal:"3,optional,list<Coupon>" json:"Coupons,omitempty"` }
type CreateOrderResponse ¶
type CreateOrderResponse struct {
OrderID string `thrift:"OrderID,1,required" frugal:"1,required,string" json:"OrderID"`
}
type DeleteOrderRequest ¶
type DeleteOrderRequest struct {
ID string `thrift:"ID,1,required" frugal:"1,required,string" json:"ID"`
}
type DeleteOrderResponse ¶
type DeleteOrderResponse struct { }
type GetOrderListRequest ¶
type GetOrderListRequest struct { UserID *string `thrift:"UserID,1,optional" frugal:"1,optional,string" json:"UserID,omitempty"` CreateTimeBegin *int64 `thrift:"CreateTimeBegin,2,optional" frugal:"2,optional,i64" json:"CreateTimeBegin,omitempty"` CreateTimeEnd *int64 `thrift:"CreateTimeEnd,3,optional" frugal:"3,optional,i64" json:"CreateTimeEnd,omitempty"` Offset *int32 `thrift:"Offset,4,optional" frugal:"4,optional,i32" json:"Offset,omitempty"` Limit *int32 `thrift:"Limit,5,optional" frugal:"5,optional,i32" json:"Limit,omitempty"` }
type GetOrderListResponse ¶
type GetOrderListResponse struct {
Items []*sale.SimpleOrder `thrift:"Items,1" frugal:"1,default,list<SimpleOrder>" json:"Items"`
}
type GetOrderRequest ¶
type GetOrderRequest struct {
ID string `thrift:"ID,1,required" frugal:"1,required,string" json:"ID"`
}
type GetOrderResponse ¶
type SaleServiceImpl ¶
type SaleServiceImpl struct {
// contains filtered or unexported fields
}
SaleServiceImpl implements the last service interface defined in the IDL.
func NewSaleService ¶
func NewSaleService(engine *dddfirework.Engine) *SaleServiceImpl
func (*SaleServiceImpl) AddCoupon ¶
func (s *SaleServiceImpl) AddCoupon(ctx context.Context, req *AddCouponRequest) (resp *AddCouponResponse, err error)
AddCoupon implements the SaleServiceImpl interface.
func (*SaleServiceImpl) AddSaleItem ¶
func (s *SaleServiceImpl) AddSaleItem(ctx context.Context, req *AddSaleItemRequest) (resp *AddSaleItemResponse, err error)
AddSaleItem implements the SaleServiceImpl interface.
func (*SaleServiceImpl) CreateOrder ¶
func (s *SaleServiceImpl) CreateOrder(ctx context.Context, req *CreateOrderRequest) (resp *CreateOrderResponse, err error)
CreateOrder implements the SaleServiceImpl interface.
func (*SaleServiceImpl) DeleteOrder ¶
func (s *SaleServiceImpl) DeleteOrder(ctx context.Context, req *DeleteOrderRequest) (resp *DeleteOrderResponse, err error)
DeleteOrder implements the SaleServiceImpl interface.
func (*SaleServiceImpl) GetOrder ¶
func (s *SaleServiceImpl) GetOrder(ctx context.Context, req *GetOrderRequest) (resp *GetOrderResponse, err error)
GetOrder implements the SaleServiceImpl interface.
func (*SaleServiceImpl) GetOrderList ¶
func (s *SaleServiceImpl) GetOrderList(ctx context.Context, req *GetOrderListRequest) (resp *GetOrderListResponse, err error)
GetOrderList implements the SaleServiceImpl interface.
func (*SaleServiceImpl) UpdateOrder ¶
func (s *SaleServiceImpl) UpdateOrder(ctx context.Context, req *UpdateOrderRequest) (resp *UpdateOrderResponse, err error)
UpdateOrder implements the SaleServiceImpl interface.
type UpdateOrderRequest ¶
type UpdateOrderResponse ¶
type UpdateOrderResponse struct { }
Click to show internal directories.
Click to hide internal directories.