Documentation ¶
Index ¶
Constants ¶
View Source
const ( OrderStatusWaitingForDelivery int64 = 2 OrderStatusDelivered = 3 OrderStatusCompleted = 5 OrderStatusRightsProtection = 8 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Merchant ¶
Merchant 订单消息
func (*Merchant) GetOrderByID ¶
GetOrderByID 通过订单号获取订单
func (*Merchant) GetOrderListByFilter ¶
func (merchant *Merchant) GetOrderListByFilter(filter *ReqOrderByFilter) (orderList *[]Order, err error)
getOrderListByFilter 筛选订单
func (*Merchant) SetDelivery ¶
func (merchant *Merchant) SetDelivery(delivery *ReqSetDelivery) (err error)
getOrderListByFilter 筛选订单
type Order ¶
type Order struct { OrderID string `json:"order_id"` OrderStatus int64 `json:"order_status"` OrderTotalPrice int64 `json:"order_total_price"` OrderCreateTime int64 `json:"order_create_time"` OrderExpressPrice int64 `json:"order_express_price"` BuyerOpenid string `json:"buyer_openid"` BuyerNick string `json:"buyer_nick"` ReceiverName string `json:"receiver_name"` ReceiverProvince string `json:"receiver_province"` ReceiverCity string `json:"receiver_city"` ReceiverZone string `json:"receiver_zone"` ReceiverAddress string `json:"receiver_address"` ReceiverMobile string `json:"receiver_mobile"` ReceiverPhone string `json:"receiver_phone"` ProductID string `json:"product_id"` ProductName string `json:"product_name"` ProductPrice int64 `json:"product_price"` ProductSku string `json:"product_sku"` ProductCount int64 `json:"product_count"` ProductImg string `json:"product_img"` DeliveryID string `json:"delivery_id"` DeliveryCompany string `json:"delivery_company"` TransID string `json:"trans_id"` Products []struct { ProductID string `json:"product_id"` ProductName string `json:"product_name"` ProductPrice int64 `json:"product_price"` ProductSku string `json:"product_sku"` ProductCount int64 `json:"product_count"` ProductImg string `json:"product_img"` } `json:"products"` }
Order 订单
type ReqOrderByFilter ¶
type ReqOrderByFilter struct { Status int64 `json:"status,omitempty"` BeginTime int64 `json:"begintime,omitempty"` EndTime int64 `json:"endtime,omitempty"` }
ReqOrderByFilter 设置菜单请求数据
type ReqSetDelivery ¶
type ReqSetDelivery struct { OrderID string `json:"order_id,omitempty"` DeliveryCompany string `json:"delivery_company,omitempty"` DeliveryTrackNO string `json:"delivery_track_no,omitempty"` NeedDelivery int64 `json:"need_delivery"` IsOthers int64 `json:"is_others"` }
ReqSetDelivery 设置订单状态
Click to show internal directories.
Click to hide internal directories.