添加订单接口

master
杨赟 5 months ago
parent 1770af0d91
commit aedde55db9

@ -20,6 +20,8 @@ type OrderInterface interface {
Trajectory(ctx context.Context, orderSn string, reply *[]ReplyTrajectory) error Trajectory(ctx context.Context, orderSn string, reply *[]ReplyTrajectory) error
// Finish @Title 确认收货 // Finish @Title 确认收货
Finish(ctx context.Context, orderSn string, reply *int) error Finish(ctx context.Context, orderSn string, reply *int) error
// SubmitData @Title 订单下单数据
SubmitData(ctx context.Context, supplyOrderSn string, reply *ReplySubmitData) error
} }
type ArgsOrderCancel struct { type ArgsOrderCancel struct {
OrderSn string // 订单编号 OrderSn string // 订单编号
@ -67,3 +69,20 @@ type PackageStep struct {
Content string `json:"content"` Content string `json:"content"`
OperatorAt int64 `json:"operatorAt"` OperatorAt int64 `json:"operatorAt"`
} }
type ReplySubmitData struct {
OrderSn string `json:"orderSn"`
Status int64 `json:"status"`
OrderFee decimal.Decimal `json:"orderFee"`
FreightFee decimal.Decimal `json:"freightFee"`
LadingBillAt int64 `json:"ladingBillAt"`
Skus []ReplySubmitDataSku `json:"skus"`
}
type ReplySubmitDataSku struct {
SkuId string `json:"skuId"`
Name string `json:"name"`
Quantity int64 `json:"quantity"`
SupplyPrice decimal.Decimal `json:"supplyPrice"`
GuidePrice decimal.Decimal `json:"guidePrice"`
Amount decimal.Decimal `json:"amount"`
}

Loading…
Cancel
Save