provider

package
v0.0.0-...-a2de57b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package provider 即时配送/运力方

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateOrder

func UpdateOrder(ctx *miniprogram.Miniprogram, payload []byte) (resp []byte, err error)

配送公司更新配送单状态

See: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-provider/immediateDelivery.updateOrder.html

POST https://api.weixin.qq.com/cgi-bin/express/local/delivery/update_order?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/Lead-NorthStar/miniprogram"
	"github.com/Lead-NorthStar/miniprogram/apis/delivery/provider"
)

func main() {
	var ctx *miniprogram.Miniprogram

	payload := []byte("{}")
	resp, err := provider.UpdateOrder(ctx, payload)

	fmt.Println(resp, err)
}
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL