express

package
v1.0.0-beta.11 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package express 微信小店/邮费模板管理管理

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

增加邮费模板

See: https://developers.weixin.qq.com/doc/offiaccount/Instant_Stores/WeChat_Store_Interface.html

POST https://api.weixin.qq.com/merchant/express/add?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/store/express"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func Del

func Del(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

删除邮费模板

See: https://developers.weixin.qq.com/doc/offiaccount/Instant_Stores/WeChat_Store_Interface.html

POST https://api.weixin.qq.com/merchant/express/del?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/store/express"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func GetAll

func GetAll(ctx *offiaccount.OffiAccount) (resp []byte, err error)

获取所有邮费模板

See: https://developers.weixin.qq.com/doc/offiaccount/Instant_Stores/WeChat_Store_Interface.html

GET https://api.weixin.qq.com/merchant/express/getall?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/store/express"
)

func main() {
	var ctx *offiaccount.OffiAccount

	resp, err := express.GetAll(ctx)

	fmt.Println(resp, err)
}
Output:

func GetById

func GetById(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

获取指定ID的邮费模板

See: https://developers.weixin.qq.com/doc/offiaccount/Instant_Stores/WeChat_Store_Interface.html

POST https://api.weixin.qq.com/merchant/express/getbyid?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/store/express"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func Update

func Update(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

修改邮费模板

See: https://developers.weixin.qq.com/doc/offiaccount/Instant_Stores/WeChat_Store_Interface.html

POST https://api.weixin.qq.com/merchant/express/update?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/store/express"
)

func main() {
	var ctx *offiaccount.OffiAccount

	payload := []byte("{}")
	resp, err := express.Update(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