提交 e29748ac authored 作者: 屈传平's avatar 屈传平

Merge branch 'featrue/yonghui'

......@@ -45,7 +45,8 @@ type OrderCreateRes struct {
Data interface{} `json:"data"`
}
/**
/*
*
创建订单
*/
func (s *order) Create(ctx context.Context, req *OrderCreateReq) (res *OrderCreateRes, err error) {
......@@ -71,7 +72,8 @@ type OrderConfirmRes struct {
Data string `json:"data"`
}
/**
/*
*
确认订单
*/
func (s *order) Confirm(ctx context.Context, req *OrderConfirmReq) (res *OrderConfirmRes, err error) {
......@@ -106,54 +108,48 @@ type OrderDetailRes struct {
ReceiverAddress string `json:"receiverAddress"`
ReceiverName string `json:"receiverName"`
ReceiverPhone string `json:"receiverPhone"`
ShipTime string `json:"shipTime"`
UserName string `json:"userName"`
UserTelephone string `json:"userTelephone"`
OrderType int `json:"orderType"`
PushType string `json:"pushType"`
ShipTime string `json:"shipTime"`
GoodsDetails []struct {
ClassCode string `json:"classCode"`
ClassName string `json:"className"`
GoodsCode string `json:"goodsCode"`
GoodsQty int `json:"goodsQty"`
GoodsImage string `json:"goodsImage"`
GoodsName string `json:"goodsName"`
GoodsPrice int `json:"goodsPrice"`
GoodsSpec string `json:"goodsSpec"`
GoodsUnit string `json:"goodsUnit"`
NetPrice float64 `json:"netPrice"`
TaxPrice int `json:"taxPrice"`
TaxRate int `json:"taxRate"`
TotalPrice int `json:"totalPrice"`
ClassCode string `json:"classCode"`
ClassName string `json:"className"`
GoodsCode string `json:"goodsCode"`
GoodsQty string `json:"goodsQty"`
GoodsImage string `json:"goodsImage"`
GoodsName string `json:"goodsName"`
GoodsPrice string `json:"goodsPrice"`
GoodsSpec string `json:"goodsSpec"`
GoodsUnit string `json:"goodsUnit"`
NetPrice string `json:"netPrice"`
TaxPrice string `json:"taxPrice"`
TaxRate int `json:"taxRate"`
TotalPrice string `json:"totalPrice"`
} `json:"goodsDetails"`
PayDetails []struct {
PayAmount int `json:"payAmount"`
PayCode string `json:"payCode"`
PayType string `json:"payType"`
} `json:"payDetails"`
SubOrderDetails []struct {
CsxSubOrderCode string `json:"csxSubOrderCode"`
OrderStatus string `json:"orderStatus"`
GoodsDetails []struct {
ClassCode string `json:"classCode"`
ClassName string `json:"className"`
GoodsCode string `json:"goodsCode"`
GoodsQty int `json:"goodsQty"`
GoodsImage string `json:"goodsImage"`
GoodsName string `json:"goodsName"`
GoodsPrice float64 `json:"goodsPrice"`
GoodsSpec string `json:"goodsSpec"`
GoodsUnit string `json:"goodsUnit"`
NetPrice float64 `json:"netPrice"`
TaxPrice float64 `json:"taxPrice"`
TaxRate int `json:"taxRate"`
TotalPrice float64 `json:"totalPrice"`
} `json:"goodsDetails"`
SubOrderCode string `json:"subOrderCode"`
SubOrderStatus string `json:"subOrderStatus"`
SubGoodsDetails []struct {
ClassCode string `json:"classCode"`
ClassName string `json:"className"`
GoodsCode string `json:"goodsCode"`
GoodsQty string `json:"goodsQty"`
GoodsImage string `json:"goodsImage"`
GoodsName string `json:"goodsName"`
GoodsPrice string `json:"goodsPrice"`
GoodsSpec string `json:"goodsSpec"`
GoodsUnit string `json:"goodsUnit"`
NetPrice string `json:"netPrice"`
TaxPrice string `json:"taxPrice"`
TaxRate int `json:"taxRate"`
TotalPrice string `json:"totalPrice"`
} `json:"subGoodsDetails"`
} `json:"subOrderDetails"`
} `json:"data"`
}
/**
/*
*
订单详情
*/
func (s *order) Detail(ctx context.Context, req *OrderDetailReq) (res *OrderDetailRes, err error) {
......@@ -177,7 +173,8 @@ type OrderQueryRes struct {
Data int64 `json:"data"`
}
/**
/*
*
反查订单
*/
func (s *order) Query(ctx context.Context, req *OrderQueryReq) (res *OrderQueryRes, err error) {
......@@ -202,7 +199,8 @@ type OrderReceiveRes struct {
Data interface{} `json:"data"`
}
/**
/*
*
签收订单
*/
func (s *order) Receive(ctx context.Context, req *OrderReceiveReq) (res *OrderReceiveRes, err error) {
......@@ -236,7 +234,8 @@ type OrderCancelRes struct {
} `json:"data"`
}
/**
/*
*
取消订单
*/
func (s *order) Cancel(ctx context.Context, req *OrderCancelReq) (res *OrderCancelRes, err error) {
......@@ -285,7 +284,8 @@ type OrderLogisticsRes struct {
} `json:"data"`
}
/**
/*
*
查询物流
*/
func (s *order) Logistics(ctx context.Context, req *OrderLogisticsReq) (res *OrderLogisticsRes, err error) {
......@@ -342,7 +342,8 @@ type OrderFreightRes struct {
} `json:"data"`
}
/**
/*
*
订单运费
*/
func (s *order) Freight(ctx context.Context, req *OrderFreightReq) (res *OrderFreightRes, err error) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论