Versions in this module Expand all Collapse all v0 v0.0.1 Mar 14, 2022 Changes in this version + type AddExpressOrderResult struct + BizID string + BizPwd string + Cargo struct{ ... } + Insured struct{ ... } + OrderID string + Receiver struct{ ... } + Remark string + Sender struct{ ... } + Service struct{ ... } + ShopAppID string + Token string + WayBillID string + type AddExpressOrderReturn struct + BizID string + OrderID string + Token string + WayBillID string + WaybillData string + type AddNearbyPoiResult struct + AuditID uint + PoiID uint + Reason string + Status uint8 + type AgentPosQueryResult struct + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + type AgentPosQueryReturn struct + Distance float64 + Lat float64 + Lng float64 + ReachTime uint + type AuthInfoGetResult struct + Code string + WxAppID string + type AuthInfoGetReturn struct + Account string + AccountType uint + AppKey string + type CancelAuthResult struct + ShopID string + WxAppID string + type CancelAuthReturn CommonServerReturn + type CancelExpressOrderResult struct + BizID string + BizPwd string + OrderID string + ShopAppID string + WayBillID string + type CancelExpressOrderReturn struct + BizID string + OrderID string + WayBillID string + type CardMessageResult struct + AppID string + MsgID int + PagePath string + ThumbMediaID string + ThumbURL string + Title string + type CheckExpressBusinessResult struct + BizID string + BizPwd string + SenderAddress string + ServiceName string + ShopAppID string + ShopContact string + ShopName string + ShopTelphone string + type CheckExpressBusinessReturn struct + BizID string + Quota float64 + type CommonServerResult struct + CreateTime uint + Event EventType + FromUserName string + MsgType MsgType + ToUserName string + XMLName xml.Name + type CommonServerReturn struct + CreateTime uint + Event string + FromUserName string + MsgType string + ResultCode int + ResultMsg string + ToUserName string + type DeliveryOrderAddResult struct + Cargo struct{ ... } + DeliverySign string + DeliveryToken string + OrderInfo struct{ ... } + Receiver struct{ ... } + Sender struct{ ... } + ShopID string + ShopNo string + ShopOrderID string + WxToken string + type DeliveryOrderAddReturn struct + Couponfee uint + Deliverfee uint + DispatchDuration uint + Distance float64 + Event string + Fee uint + FinishCode uint + Insurancefee uint + OrderStatus int + PickupCode uint + SenderLat float64 + SenderLng float64 + Tips uint + WaybillID string + type DeliveryOrderAddTipsResult struct + DeliverySign string + Remark string + ShopID string + ShopNo string + ShopOrderID string + Tips float64 + WaybillID string + type DeliveryOrderAddTipsReturn CommonServerReturn + type DeliveryOrderCancelResult struct + CancelReason string + CancelReasonID uint + DeliverySign string + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + type DeliveryOrderCancelReturn struct + DeductFee uint + Desc string + type DeliveryOrderPreAddResult struct + Cargo struct{ ... } + DeliverySign string + OrderInfo struct{ ... } + Receiver struct{ ... } + Sender struct{ ... } + ShopID string + ShopNo string + ShopOrderID string + type DeliveryOrderPreAddReturn struct + Couponfee uint + Deliverfee uint + DeliveryToken string + DispatchDuration uint + Distance uint + Fee uint + Insurancefee uint + Tips float64 + type DeliveryOrderPreCancelResult struct + CancelReason string + CancelReasonID uint + DeliverySign string + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + type DeliveryOrderPreCancelReturn struct + DeductFee uint + Desc string + type DeliveryOrderQueryResult struct + DeliverySign string + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + type DeliveryOrderQueryReturn struct + ActionMsg string + OrderStatus float64 + WaybillID string + type DeliveryOrderReaddResult struct + Cargo struct{ ... } + DeliverySign string + DeliveryToken string + OrderInfo struct{ ... } + Receiver struct{ ... } + Sender struct{ ... } + ShopID string + ShopNo string + ShopOrderID string + WxToken string + type DeliveryOrderReaddReturn struct + Couponfee uint + Deliverfee uint + DispatchDuration uint + Distance uint + Fee uint + FinishCode uint + Insurancefee uint + OrderStatus float64 + PickupCode uint + SenderLat float64 + SenderLng float64 + Tips float64 + WaybillID string + type DeliveryOrderReturnConfirmResult struct + DeliverySign string + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + type DeliveryOrderReturnConfirmReturn CommonServerReturn + type DeliveryOrderStatusUpdateResult struct + ActionMsg string + ActionTime uint + Agent struct{ ... } + OrderStatus int + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + type DeliveryOrderStatusUpdateReturn CommonServerReturn + type EncryptedMsgRequest struct + Encrypt string + MsgSignature string + Nonce string + TimeStamp string + XMLName xml.Name + type EncryptedResult struct + Encrypt string + ToUserName string + XMLName xml.Name + type EventType string + const EventAddExpressOrder + const EventAgentPosQuery + const EventAuthAccountCancel + const EventAuthInfoGet + const EventCheckBusiness + const EventDeliveryOrderAdd + const EventDeliveryOrderCancel + const EventDeliveryOrderPreAdd + const EventDeliveryOrderPreCancel + const EventDeliveryOrderQuery + const EventDeliveryOrderReadd + const EventDeliveryOrderReturnConfirm + const EventDeliveryOrderStatusUpdate + const EventDeliveryOrderTipsAdd + const EventExpressOrderCancel + const EventExpressPathUpdate + const EventMediaCheckAsync + const EventNearbyPoiAuditInfoAdd + const EventPreAuthCodeGet + const EventQuotaGet + const EventRiderScoreSet + const EventSubscribeMsgChange + const EventSubscribeMsgPopup + const EventSubscribeMsgSentEvent + const EventUserTempsessionEnter + type ExpressPathUpdateResult struct + Actions []struct{ ... } + Count uint + DeliveryID string + Version uint + WayBillID string + type GetExpressQuotaResult struct + BizID string + BizPwd string + ShopAppID string + type GetExpressQuotaReturn struct + BizID string + Quota float64 + type ImageMessageResult struct + MediaID string + MsgID int + PicURL string + type MediaCheckAsyncResult struct + AppID string + Detail []struct{ ... } + Result struct{ ... } + TraceID string + Version string + type MsgType = string + const MsgCard + const MsgEvent + const MsgImg + const MsgText + const MsgTrans + type PreAuthCodeGetResult struct + WxAppID string + type PreAuthCodeGetReturn struct + PreAuthCode string + type RiderScoreSetResult struct + AttitudeScore uint + CargoIntactScore uint + DeliveryOntimeScore uint + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + type RiderScoreSetReturn CommonServerReturn + type Server struct + func NewServer(appID, token, aesKey, mchID, apiKey string, validate bool, ...) (*Server, error) + func (srv *Server) OnAddExpressOrder(fn func(*AddExpressOrderResult) *AddExpressOrderReturn) + func (srv *Server) OnAddNearbyPoi(fn func(*AddNearbyPoiResult)) + func (srv *Server) OnAgentPosQuery(fn func(*AgentPosQueryResult) *AgentPosQueryReturn) + func (srv *Server) OnAuthInfoGet(fn func(*AuthInfoGetResult) *AuthInfoGetReturn) + func (srv *Server) OnCancelAuth(fn func(*CancelAuthResult) *CancelAuthReturn) + func (srv *Server) OnCancelExpressOrder(fn func(*CancelExpressOrderResult) *CancelExpressOrderReturn) + func (srv *Server) OnCheckExpressBusiness(fn func(*CheckExpressBusinessResult) *CheckExpressBusinessReturn) + func (srv *Server) OnCustomerServiceCardMessage(fn func(*CardMessageResult) *TransferCustomerMessage) + func (srv *Server) OnCustomerServiceImageMessage(fn func(*ImageMessageResult) *TransferCustomerMessage) + func (srv *Server) OnCustomerServiceTextMessage(fn func(*TextMessageResult) *TransferCustomerMessage) + func (srv *Server) OnDeliveryOrderAdd(fn func(*DeliveryOrderAddResult) *DeliveryOrderAddReturn) + func (srv *Server) OnDeliveryOrderAddTips(fn func(*DeliveryOrderAddTipsResult) *DeliveryOrderAddTipsReturn) + func (srv *Server) OnDeliveryOrderCancel(fn func(*DeliveryOrderCancelResult) *DeliveryOrderCancelReturn) + func (srv *Server) OnDeliveryOrderPreAdd(fn func(*DeliveryOrderPreAddResult) *DeliveryOrderPreAddReturn) + func (srv *Server) OnDeliveryOrderPreCancel(fn func(*DeliveryOrderPreCancelResult) *DeliveryOrderPreCancelReturn) + func (srv *Server) OnDeliveryOrderQuery(fn func(*DeliveryOrderQueryResult) *DeliveryOrderQueryReturn) + func (srv *Server) OnDeliveryOrderReadd(fn func(*DeliveryOrderReaddResult) *DeliveryOrderReaddReturn) + func (srv *Server) OnDeliveryOrderReturnConfirm(fn func(*DeliveryOrderReturnConfirmResult) *DeliveryOrderReturnConfirmReturn) + func (srv *Server) OnDeliveryOrderStatusUpdate(fn func(*DeliveryOrderStatusUpdateResult) *DeliveryOrderStatusUpdateReturn) + func (srv *Server) OnExpressPathUpdate(fn func(*ExpressPathUpdateResult)) + func (srv *Server) OnGetExpressQuota(fn func(*GetExpressQuotaResult) *GetExpressQuotaReturn) + func (srv *Server) OnMediaCheckAsync(fn func(*MediaCheckAsyncResult)) + func (srv *Server) OnPreAuthCodeGet(fn func(*PreAuthCodeGetResult) *PreAuthCodeGetReturn) + func (srv *Server) OnRiderScoreSet(fn func(*RiderScoreSetResult) *RiderScoreSetReturn) + func (srv *Server) OnSubscribeMsgChange(fn func(*SubscribeMsgChangeEvent)) + func (srv *Server) OnSubscribeMsgPopup(fn func(*SubscribeMsgPopupEvent)) + func (srv *Server) OnSubscribeMsgSent(fn func(*SubscribeMsgSentEvent)) + func (srv *Server) OnUserTempsessionEnter(fn func(*UserTempsessionEnterResult)) + func (srv *Server) Serve(w http.ResponseWriter, r *http.Request) error + type SubscribeMsgChangeEvent struct + List []*UserChangesSubscribeMsg + SubscribeMsgChangeEvent []*UserChangesSubscribeMsg + type SubscribeMsgPopupEvent struct + List []*UserSubscribedMsg + SubscribeMsgPopupEvent []*UserSubscribedMsg + type SubscribeMsgSentEvent struct + SubscribeMsgSentEvent struct{ ... } + type SubscribeResult = string + const SubscribeResultAccept + const SubscribeResultReject + type TextMessageResult struct + Content string + MsgID int + type TransferCustomerMessage struct + CreateTime uint + FromUserName string + MsgType MsgType + ToUserName string + XMLName xml.Name + type UserChangesSubscribeMsg struct + SubscribeStatusString string + TemplateId string + type UserSubscribedMsg struct + PopupScene string + SubscribeStatusString string + TemplateId string + type UserTempsessionEnterResult struct + SessionFrom string