handler

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCouponRequest

type AddCouponRequest struct {
	OrderID string       `thrift:"OrderID,1,required" frugal:"1,required,string" json:"OrderID"`
	Coupon  *sale.Coupon `thrift:"Coupon,2,required" frugal:"2,required,Coupon" json:"Coupon"`
}

type AddCouponResponse

type AddCouponResponse struct {
}

type AddSaleItemRequest

type AddSaleItemRequest struct {
	OrderID string         `thrift:"OrderID,1,required" frugal:"1,required,string" json:"OrderID"`
	Item    *sale.SaleItem `thrift:"Item,2,required" frugal:"2,required,SaleItem" json:"Item"`
}

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 GetOrderResponse struct {
	Order *sale.Order `thrift:"Order,1" frugal:"1,default,Order" json:"Order"`
}

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 UpdateOrderRequest struct {
	ID     string  `thrift:"ID,1,required" frugal:"1,required,string" json:"ID"`
	Remark *string `thrift:"Remark,2,optional" frugal:"2,optional,string" json:"Remark,omitempty"`
}

type UpdateOrderResponse

type UpdateOrderResponse struct {
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL