Versions in this module Expand all Collapse all v1 v1.5.2 Dec 6, 2019 Changes in this version + const Bind + const BindFailed + const BindSuccess + const CardTypeBack + const CardTypeFront + 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 EventUserTempsessionEnter + const Insured + const MsgCard + const MsgEvent + const MsgImg + const MsgText + const Unbind + const Uninsured + const UpdatableMsgParamMemberCount + const UpdatableMsgParamPath + const UpdatableMsgParamRoomLimit + const UpdatableMsgParamVersionType + type AbnormalConfirmer struct + DeliverySign string + Remark string + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + func (confirmer *AbnormalConfirmer) Confirm(token string) (*CommonResult, error) + type AccountList struct + Count uint + List []struct{ ... } + func GetAllAccount(token string) (*AccountList, error) + 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 AddNearbyPoiAuditResult struct + AuditID uint + PoiID uint + Reason string + Status uint8 + type AddNearbyPoiResponse struct + Data struct{ ... } + type AddTemplateResponse struct + TemplateID string + func AddTemplate(id, token string, keywordIDList []uint) (*AddTemplateResponse, error) + type AgentPosQueryResult struct + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + type AgentPosQueryReturn struct + Distance float64 + Lat float64 + Lng float64 + ReachTime uint + type Attribute struct + AccessSourceVisitUV uint + ID uint + Name string + type AuthAccountCancelResult struct + ShopID string + WxAppID string + type AuthAccountCancelReturn CommonServerReturn + type AuthInfoGetResult struct + Code string + WxAppID string + type AuthInfoGetReturn struct + Account string + AccountType uint + AppKey string + type BankCardResponse struct + Number string + func BankCard(token, filename string, mode RecognizeMode) (*BankCardResponse, error) + func BankCardByURL(token, cardURL string, mode RecognizeMode) (*BankCardResponse, error) + type BindStatus = int8 + type BindType = string + type BusinessResultCode = int8 + const ResultFailed + const ResultSuccess + type BusinnessUpdater struct + BizID string + ResultCode BusinessResultCode + ResultMsg string + ShopAppID string + func (updater *BusinnessUpdater) Update(token string) (*CommonError, error) + type CSMsgImage struct + MediaID string + func (msg CSMsgImage) SendTo(openID, token string) (*CommonError, error) + type CSMsgLink struct + Description string + ThumbURL string + Title string + URL string + func (msg CSMsgLink) SendTo(openID, token string) (*CommonError, error) + type CSMsgMPCard struct + PagePath string + ThumbMediaID string + Title string + func (msg CSMsgMPCard) SendTo(openID, token string) (*CommonError, error) + type CSMsgText struct + Content string + func (msg CSMsgText) SendTo(openID, token string) (*CommonError, error) + type CancelDeliveryOrderResponse struct + DeductFee float64 + Desc string + type CancelOrderResponse struct + Count uint + Data []struct{ ... } + type CardMessageResult struct + AppID string + MsgID int + PagePath string + ThumbMediaID string + ThumbURL string + Title string + type CardResponse struct + Type CardType + ValidDate string + type CardType = string + type CargoDetail struct + Count uint + Name string + type CheckBusinessResult struct + BizID string + BizPwd string + SenderAddress string + ServiceName string + ShopAppID string + ShopContact string + ShopName string + ShopTelphone string + type CheckBusinessReturn struct + BizID string + Quota float64 + type CheckMediaResponse struct + TraceID string + func MediaCheckAsync(token, mediaURL string, mediaType MediaType) (*CheckMediaResponse, error) + type Color struct + B string + G string + R string + type CommonError struct + ErrCode int + ErrMSG string + func ApplyPlugin(token, appID, reason string) (*CommonError, error) + func DeleteNearbyPoi(token, id string) (*CommonError, error) + func DeleteTemplate(id, token string) (*CommonError, error) + func GetTempMedia(token, mediaID string) (*http.Response, *CommonError, error) + func IMGSecCheck(token, filename string) (*CommonError, error) + func MSGSecCheck(token, content string) (*CommonError, error) + func SetDevPluginApplyStatus(token, appID, reason string, action DevAction) (*CommonError, error) + func SetNearbyPoiShowStatus(token, poiID string, status NearbyPoiShowStatus) (*CommonError, error) + func SetTyping(token, openID string, cmd SetTypingCommand) (*CommonError, error) + func UnbindPlugin(token, appID string) (*CommonError, error) + func (err *CommonError) GetResponseError() error + type CommonResult struct + ResultCode int + ResultMsg string + func (err *CommonResult) GetResponseError() error + type CommonServerResult struct + CreateTime uint64 + 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 ContactUser struct + Address string + Mobile string + Name string + Tel string + type CreateActivityIDResponse struct + ActivityID string + ExpirationTime uint + func CreateActivityID(token string) (*CreateActivityIDResponse, error) + type CreateDeliveryOrderResponse struct + Couponfee uint + Deliverfee uint + DispatchDuration uint + Distance float64 + Fee uint + FinishCode uint + Insurancefee uint + OrderStatus int + PickupCode uint + Tips uint + WaybillID string + type CreateExpressOrderResponse struct + DeliveryResultcode int + DeliveryResultmsg string + OrderID string + WaybillData []struct{ ... } + WaybillID string + type DailySummary struct + List []Summary + func GetDailySummary(accessToken, begin, end string) (*DailySummary, error) + type DeliveryAgent struct + Encrypted uint8 + Name string + Phone string + type DeliveryCargo struct + CargoFirstClass string + CargoSecondClass string + GoodsDeliveryInfo string + GoodsDetail DeliveryGoodsDetail + GoodsHeight float64 + GoodsLength float64 + GoodsPickupInfo string + GoodsValue float64 + GoodsWeight float64 + GoodsWidth float64 + type DeliveryGoods struct + Count uint + Name string + Price float32 + Unit string + type DeliveryGoodsDetail struct + Goods []DeliveryGoods + type DeliveryList struct + Count uint + Data []struct{ ... } + func GetAllDelivery(token string) (*DeliveryList, error) + 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 DeliveryOrderCancelResult struct + CancelReason string + CancelReasonID uint + DeliverySign string + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + type DeliveryOrderCancelReturn struct + DeductFee uint + Desc string + type DeliveryOrderCanceler struct + DeliveryID string + DeliverySign string + Reason string + ReasonID uint8 + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + func (canceler *DeliveryOrderCanceler) Cancel(token string) (*CancelDeliveryOrderResponse, error) + func (canceler *DeliveryOrderCanceler) Prepare(token string) (*CancelDeliveryOrderResponse, error) + type DeliveryOrderCreator struct + Cargo DeliveryCargo + DeliveryID string + DeliverySign string + DeliveryToken string + OpenID string + OrderInfo DeliveryOrderInfo + Receiver DeliveryUser + Sender DeliveryUser + Shop DeliveryShop + ShopID string + ShopNo string + ShopOrderID string + SubBizID string + func (creator *DeliveryOrderCreator) Create(token string) (*CreateDeliveryOrderResponse, error) + func (creator *DeliveryOrderCreator) Prepare(token string) (*PreDeliveryOrderResponse, error) + func (creator *DeliveryOrderCreator) Recreate(token string) (*CreateDeliveryOrderResponse, error) + type DeliveryOrderGetter struct + DeliverySign string + ShopID string + ShopNo string + ShopOrderID string + func (getter *DeliveryOrderGetter) Get(token string) (*GetDeliveryOrderResponse, error) + type DeliveryOrderInfo struct + CashOnDelivery uint + CashOnPickup uint + DeclaredValue float64 + DeliveryServiceCode string + ExpectedDeliveryTime uint + ExpectedFinishTime uint + ExpectedPickTime uint + IsDirectDelivery uint + IsFinishCodeNeeded uint8 + IsInsured uint8 + IsPickupCodeNeeded uint8 + Note string + OrderTime uint + OrderType uint8 + PoiSeq string + RiderPickMethod uint8 + Tips float64 + 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 + 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 DeliveryOrderTipsAddResult struct + DeliverySign string + Remark string + ShopID string + ShopNo string + ShopOrderID string + Tips float64 + WaybillID string + type DeliveryOrderTipsAddReturn CommonServerReturn + type DeliveryOrderUpdater struct + ActionMsg string + ActionTime uint + Agent DeliveryAgent + ExpectedDeliveryTime uint + OrderStatus int + ShopID string + ShopNo string + ShopOrderID string + WXToken string + WaybillID string + WxaPath string + func (updater *DeliveryOrderUpdater) Update(token string) (*CommonResult, error) + type DeliveryShop struct + GoodsCount uint + GoodsName string + ImgURL string + WxaPath string + type DeliveryTipAdder struct + DeliverySign string + OpenID string + Remark string + ShopID string + ShopNo string + ShopOrderID string + Tips float64 + WaybillID string + func (adder *DeliveryTipAdder) Add(token string) (*CommonResult, error) + type DeliveryUser struct + Address string + AddressDetail string + City string + CoordinateType uint8 + Lat float64 + Lng float64 + Name string + Phone string + type DevAction string + const DevAgree + const DevDelete + const DevRefuse + type Distribution struct + Index string + ItemList []DistributionItem + type DistributionItem struct + AccessSourceVisitUV uint + Key uint + Value uint + type DrivingLicenseResponse = CardResponse + func DriverLicense(token, filename string) (*DrivingLicenseResponse, error) + func DriverLicenseByURL(token, licenseURL string) (*DrivingLicenseResponse, error) + 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 + type ExpreseeUserInfo struct + Address string + Area string + City string + Company string + Country string + Mobile string + Name string + PostCode string + Province string + Tel string + type ExpressAccount struct + BizID string + DeliveryID string + Password string + RemarkContent string + Type BindType + func (ea *ExpressAccount) Bind(token string) (*CommonError, error) + type ExpressCargo struct + Count uint + DetailList []CargoDetail + SpaceX float64 + SpaceY float64 + SpaceZ float64 + Weight float64 + type ExpressInsure struct + Used InsureStatus + Value uint + type ExpressOrder struct + BizID string + Cargo ExpressCargo + CustomRemark string + DeliveryID string + Insured ExpressInsure + OpenID string + OrderID string + Receiver ExpreseeUserInfo + Sender ExpreseeUserInfo + Service ExpressService + Shop ExpressShop + type ExpressOrderCancelResult struct + BizID string + BizPwd string + OrderID string + ShopAppID string + WayBillID string + type ExpressOrderCancelReturn struct + BizID string + OrderID string + WayBillID string + type ExpressOrderCanceler ExpressOrderGetter + func (canceler *ExpressOrderCanceler) Cancel(token string) (*CommonError, error) + type ExpressOrderCreator struct + AddSource ExpressOrderSource + ExpectTime uint + TagID uint + WXAppID string + func (creator *ExpressOrderCreator) Create(token string) (*CreateExpressOrderResponse, error) + type ExpressOrderGetter struct + DeliveryID string + OpenID string + OrderID string + WaybillID string + func (getter *ExpressOrderGetter) Get(token string) (*GetExpressOrderResponse, error) + type ExpressOrderSource = uint8 + const FromAppOrH5 + const FromWeapp + type ExpressPathGetter ExpressOrderGetter + func (ep *ExpressPathGetter) Get(token string) (*GetExpressPathResponse, error) + type ExpressPathNode struct + ActionMsg string + ActionTime uint + ActionType uint + type ExpressPathUpdateResult struct + Actions []struct{ ... } + Count uint + DeliveryID string + Version uint + WayBillID string + type ExpressPathUpdater struct + ActionMsg string + ActionTime uint + ActionType uint + Token string + WaybillID string + func (updater *ExpressPathUpdater) Update(token string) (*CommonError, error) + type ExpressService struct + Name string + Type uint8 + type ExpressShop struct + GoodsCount uint + GoodsName string + IMGUrl string + WXAPath string + type GetAllImmediateDeliveryResponse struct + List []struct{ ... } + func GetAllImmediateDelivery(token string) (*GetAllImmediateDeliveryResponse, error) + type GetBindAccountResponse struct + ShopList []struct{ ... } + func GetBindAccount(token string) (*GetBindAccountResponse, error) + type GetContactResponse struct + Receiver ContactUser + Sender ContactUser + WaybillID string + func GetContact(accessToken, token, watBillID string) (*GetContactResponse, error) + type GetDeliveryOrderResponse struct + OrderStatus int + RiderLat float64 + RiderLng float64 + RiderName string + RiderPhone string + WaybillID string + type GetExpressOrderResponse struct + PrintHTML string + WaybillData []struct{ ... } + type GetExpressPathResponse struct + DeliveryID string + OpenID string + PathItemList []ExpressPathNode + PathItemNum uint + WaybillID string + type GetPaidUnionIDResponse struct + UnionID string + func GetPaidUnionID(accessToken, openID, transactionID string) (*GetPaidUnionIDResponse, error) + func GetPaidUnionIDWithMCH(accessToken, openID, outTradeNo, mchID string) (*GetPaidUnionIDResponse, error) + type GetPluginDevApplyListResponse struct + ApplyList []struct{ ... } + func GetPluginDevApplyList(token string, page, num uint) (*GetPluginDevApplyListResponse, error) + type GetPluginListResponse struct + PluginList []struct{ ... } + func GetPluginList(token string) (*GetPluginListResponse, error) + type GetPrinterResponse struct + Count uint + OpenID []string + TagIDList []string + func GetPrinter(token string) (*GetPrinterResponse, error) + type GetTemplateLibraryByIDResponse struct + ID string + KeywordList []KeywordItem + Title string + func GetTemplateLibraryByID(id, token string) (*GetTemplateLibraryByIDResponse, error) + type GetTemplateLibraryListResponse struct + List []struct{ ... } + TotalCount uint + func GetTemplateLibraryList(token string, offset uint, count uint) (*GetTemplateLibraryListResponse, error) + type GetTemplateListResponse struct + List []struct{ ... } + func GetTemplateList(token string, offset uint, count uint) (*GetTemplateListResponse, error) + type IDCardResponse = CardResponse + func IDCard(token, filename string, mode RecognizeMode) (*IDCardResponse, error) + func IDCardByURL(token, cardURL string, mode RecognizeMode) (*IDCardResponse, error) + type ImageMessageResult struct + MediaID string + MsgID int + PicURL string + type InsureStatus = uint8 + type KFInfo struct + KFHeading string + KFName string + OpenKF bool + type KeywordItem struct + Example string + KeywordID uint + Name string + type LoginResponse struct + OpenID string + SessionKey string + UnionID string + func Login(appID, secret, code string) (*LoginResponse, error) + type MediaCheckAsyncResult struct + AppID string + ExtraInfoJSON string + IsRisky uint8 + StatusCode int + TraceID string + type MediaType = uint8 + const MediaTypeAudio + const MediaTypeImage + type Miniprogram struct + AppID string + PagePath string + type Mobile struct + CountryCode string + PhoneNumber string + PurePhoneNumber string + Watermark watermark + func DecryptMobile(ssk, data, iv string) (*Mobile, error) + type MsgType = string + type NearbyPoi struct + Address string + CompanyName string + Credential string + Hour string + KFInfo KFInfo + PicList PicList + PoiID string + QualificationList string + ServiceInfos ServiceInfos + StoreName string + func (p *NearbyPoi) Add(token string) (*AddNearbyPoiResponse, error) + type NearbyPoiShowStatus int8 + const HideNearbyPoi + const ShowNearbyPoi + type Page struct + EntrypagePV uint + ExitpagePV uint + PagePath string + PageSharePV uint + PageShareUV uint + PageStaytimePV float64 + PageVisitPV uint + PageVisitUV uint + type PicList struct + List []string + type Portrait struct + Ages []Attribute + City []Attribute + Devices []Attribute + Genders []Attribute + Index uint + Platforms []Attribute + Province []Attribute + type PositionList struct + Data struct{ ... } + func GetNearbyPoiList(token string, page, rows uint) (*PositionList, error) + type PreAuthCodeGetResult struct + WxAppID string + type PreAuthCodeGetReturn struct + type PreDeliveryOrderResponse struct + Couponfee float64 + Deliverfee float64 + DeliveryToken string + DispatchDuration uint + Distance float64 + Fee float64 + Insurancefee float64 + Tips float64 + type PreviewTemplateResponse struct + RenderedWaybillTemplate string + WaybillID string + type PrinterUpdater struct + OpenID string + TagIDList string + Type BindType + func (updater *PrinterUpdater) Update(token string) (*CommonError, error) + type QRCode struct + AutoColor bool + IsHyaline bool + LineColor Color + Path string + Width int + func (code *QRCode) Get(token string) (*http.Response, *CommonError, error) + type QRCodeCreator struct + Path string + Width int + func (creator *QRCodeCreator) Create(token string) (*http.Response, *CommonError, error) + type QRCodePoint struct + X uint + Y uint + type QuotaGetResponse struct + Number uint + type QuotaGetResult struct + BizID string + BizPwd string + ShopAppID string + type QuotaGetReturn struct + BizID string + Quota float64 + type QuotaGetter struct + BizID string + DeliveryID string + func (getter *QuotaGetter) Get(token string) (*QuotaGetResponse, error) + type RecognizeMode = string + const RecognizeModePhoto + const RecognizeModeScan + type Retain struct + Key uint8 + Value uint + type RetainResponse struct + RefDate string + VisitUV []Retain + VisitUVNew []Retain + func GetDailyRetainAPI(accessToken, begin, end string) (*RetainResponse, error) + func GetMonthlyRetain(accessToken, begin, end string) (*RetainResponse, error) + func GetWeeklyRetain(accessToken, begin, end string) (*RetainResponse, error) + type RiderScoreSetResult struct + AttitudeScore uint + CargoIntactScore uint + DeliveryOntimeScore uint + ShopID string + ShopNo string + ShopOrderID string + WaybillID string + type RiderScoreSetReturn CommonServerReturn + type ScanQRCodeResponse struct + CodeResults []struct{ ... } + IMGSize struct{ ... } + func ScanQRCode(token, filename string) (*ScanQRCodeResponse, error) + func ScanQRCodeByURL(token, imgURL string) (*ScanQRCodeResponse, error) + type Server struct + func NewServer(appID, token, aesKey, mchID, apiKey string, validate bool) (*Server, error) + func (srv *Server) CustomerServiceCardMessageHandler(fn func(*CardMessageResult)) + func (srv *Server) CustomerServiceImageMessageHandler(fn func(*ImageMessageResult)) + func (srv *Server) CustomerServiceTextMessageHandler(fn func(*TextMessageResult)) + func (srv *Server) HandleAddExpressOrderRequest(fn func(*AddExpressOrderResult) *AddExpressOrderReturn) + func (srv *Server) HandleAddNearbyPoiAuditRequest(fn func(*AddNearbyPoiAuditResult)) + func (srv *Server) HandleAgentPosQuery(fn func(*AgentPosQueryResult) *AgentPosQueryReturn) + func (srv *Server) HandleAuthAccountCancel(fn func(*AuthAccountCancelResult) *AuthAccountCancelReturn) + func (srv *Server) HandleAuthInfoGet(fn func(*AuthInfoGetResult) *AuthInfoGetReturn) + func (srv *Server) HandleCheckBusinessRequest(fn func(*CheckBusinessResult) *CheckBusinessReturn) + func (srv *Server) HandleDeliveryOrderAdd(fn func(*DeliveryOrderAddResult) *DeliveryOrderAddReturn) + func (srv *Server) HandleDeliveryOrderCancel(fn func(*DeliveryOrderCancelResult) *DeliveryOrderCancelReturn) + func (srv *Server) HandleDeliveryOrderPreAdd(fn func(*DeliveryOrderPreAddResult) *DeliveryOrderPreAddReturn) + func (srv *Server) HandleDeliveryOrderPreCancel(fn func(*DeliveryOrderPreCancelResult) *DeliveryOrderPreCancelReturn) + func (srv *Server) HandleDeliveryOrderQuery(fn func(*DeliveryOrderQueryResult) *DeliveryOrderQueryReturn) + func (srv *Server) HandleDeliveryOrderReadd(fn func(*DeliveryOrderReaddResult) *DeliveryOrderReaddReturn) + func (srv *Server) HandleDeliveryOrderReturnConfirm(fn func(*DeliveryOrderReturnConfirmResult) *DeliveryOrderReturnConfirmReturn) + func (srv *Server) HandleDeliveryOrderStatusUpdate(fn func(*DeliveryOrderStatusUpdateResult) *DeliveryOrderStatusUpdateReturn) + func (srv *Server) HandleDeliveryOrderTipsAdd(fn func(*DeliveryOrderTipsAddResult) *DeliveryOrderTipsAddReturn) + func (srv *Server) HandleExpressOrderCancelRequest(fn func(*ExpressOrderCancelResult) *ExpressOrderCancelReturn) + func (srv *Server) HandleExpressPathUpdateRequest(fn func(*ExpressPathUpdateResult)) + func (srv *Server) HandleMediaCheckAsyncRequest(fn func(*MediaCheckAsyncResult)) + func (srv *Server) HandlePreAuthCodeGet(fn func(*PreAuthCodeGetResult) *PreAuthCodeGetReturn) + func (srv *Server) HandleQuotaGetRequest(fn func(*QuotaGetResult) *QuotaGetReturn) + func (srv *Server) HandleRiderScoreSet(fn func(*RiderScoreSetResult) *RiderScoreSetReturn) + func (srv *Server) Serve(w http.ResponseWriter, r *http.Request) error + func (srv *Server) UserTempsessionEnterHandler(fn func(*UserTempsessionEnterResult)) + type ServiceInfo struct + AppID string + ID uint + Name string + Path string + Type uint8 + type ServiceInfos struct + ServiceInfos []ServiceInfo + type SetTypingCommand = string + const SetTypingCommandCancelTyping + const SetTypingCommandTyping + type ShareInfo struct + GID string + func DecryptShareInfo(ssk, data, iv string) (*ShareInfo, error) + type Summary struct + RefDate string + SharePV uint + ShareUV uint + VisitTotal uint + type SuperResolutionResponse struct + MediaID string + func SuperResolution(token, filename string) (*SuperResolutionResponse, error) + func SuperResolutionByURL(token, imgURL string) (*SuperResolutionResponse, error) + type TempMediaType = string + const TempMediaTypeImage + type TempMsgData map[string]TempMsgKeyword + type TempMsgKeyword struct + Value string + type TempMsgSender struct + Data TempMsgData + EmphasisKeyword string + FormID string + Page string + TemplateID string + ToUser string + func (sender *TempMsgSender) Send(token string) (*CommonError, error) + type TemplatePreviewer struct + Custom ExpressOrder + WaybillData string + WaybillID string + WaybillTemplate string + func (previewer *TemplatePreviewer) Preview(token string) (*PreviewTemplateResponse, error) + type TextMessageResult struct + Content string + MsgID int + type TokenResponse struct + AccessToken string + ExpiresIn uint + func GetAccessToken(appID, secret string) (*TokenResponse, error) + type Trend struct + RefDate string + SessionCNT uint + StayTimeSession float64 + StayTimeUV float64 + VisitDepth float64 + VisitPV uint + VisitUV uint + VisitUVNew uint + type UniformMPMsg struct + Data UniformMsgData + EmphasisKeyword string + FormID string + Page string + TemplateID string + type UniformMsgData map[string]UniformMsgKeyword + type UniformMsgKeyword struct + Color string + Value string + type UniformMsgMiniprogram struct + AppID string + PagePath string + type UniformMsgSender struct + ToUser string + UniformMPMsg UniformMPMsg + UniformOAMsg UniformOAMsg + func (msg *UniformMsgSender) Send(token string) (*CommonError, error) + type UniformOAMsg struct + AppID string + Data UniformMsgData + Miniprogram UniformMsgMiniprogram + TemplateID string + URL string + type UnlimitedQRCode struct + AutoColor bool + IsHyaline bool + LineColor Color + Page string + Scene string + Width int + func (code *UnlimitedQRCode) Get(token string) (*http.Response, *CommonError, error) + type UpdatableMsgParamName = string + type UpdatableMsgParameter struct + Name UpdatableMsgParamName + Value string + type UpdatableMsgSetter struct + ActivityID string + TargetState UpdatableMsgTargetState + TemplateInfo UpdatableMsgTempInfo + func (setter *UpdatableMsgSetter) Set(token string) (*CommonError, error) + type UpdatableMsgTargetState = uint8 + const UpdatableMsgJoining + const UpdatableMsgStarted + type UpdatableMsgTempInfo struct + ParameterList []UpdatableMsgParameter + type UpdateDeliveryOrderMocker struct + ActionMsg string + ActionTime uint + OrderStatus int + ShopID string + ShopOrderID string + func (mocker *UpdateDeliveryOrderMocker) Mock(token string) (*CommonResult, error) + type UpdateExpressOrderTester struct + ActionMsg string + ActionTime uint + ActionType uint + BizID string + DeliveryID string + OrderID string + WaybillID string + func (tester *UpdateExpressOrderTester) Test(token string) (*CommonError, error) + type UploadTempMediaResponse struct + CreatedAt uint + MediaID string + Type string + func UploadTempMedia(token string, mediaType TempMediaType, medianame string) (*UploadTempMediaResponse, error) + func UploadTempMediaByURL(token string, mediaType TempMediaType, mediaurl string) (*UploadTempMediaResponse, error) + type UserInfo struct + Avatar string + City string + Country string + Gender int + Language string + Nickname string + OpenID string + Province string + UnionID string + Watermark watermark + func DecryptUserInfo(rawData, encryptedData, signature, iv, ssk string) (*UserInfo, error) + type UserPortrait struct + RefDate string + VisitUV Portrait + VisitUVNew Portrait + func GetUserPortrait(accessToken, begin, end string) (*UserPortrait, error) + type UserTempsessionEnterResult struct + SessionFrom string + type VehicleLicenseResponse struct + Addr string + EngineNum string + IssueDate string + Model string + Owner string + PassengersNum string + PlateNumB string + Record string + RegisterDate string + TotalQuality string + TotalprepareQualityQuality string + UseCharacter string + VehicleType string + Vin string + func VehicleLicense(token, filename string, mode RecognizeMode) (*VehicleLicenseResponse, error) + func VehicleLicenseByURL(token, cardURL string, mode RecognizeMode) (*VehicleLicenseResponse, error) + type VerifySignatureResponse struct + IsOk bool + func VerifySignature(token, openID, data, signature string) (*VerifySignatureResponse, error) + type VisitDistribution struct + List []Distribution + RefDate string + func GetVisitDistribution(accessToken, begin, end string) (*VisitDistribution, error) + type VisitPage struct + List []Page + RefDate string + func GetVisitPage(accessToken, begin, end string) (*VisitPage, error) + type VisitTrend struct + List []Trend + func GetDailyVisitTrend(accessToken, begin, end string) (*VisitTrend, error) + func GetMonthlyVisitTrend(accessToken, begin, end string) (*VisitTrend, error) + func GetWeeklyVisitTrend(accessToken, begin, end string) (*VisitTrend, error)