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

yh

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