Documentation ¶
Overview ¶
Package express 微信小店/邮费模板管理管理
Index ¶
- func Add(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func Del(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetAll(ctx *offiaccount.OffiAccount) (resp []byte, err error)
- func GetById(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func Update(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
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.