miniprogram

package
v1.0.0-beta.10 Latest Latest
Warning

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

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

Documentation

Overview

Package miniprogram 微信门店小程序

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStore

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

添加门店

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

POST https://api.weixin.qq.com/wxa/add_store?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func ApplyMerchant

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

创建门店小程序

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

POST https://api.weixin.qq.com/wxa/apply_merchant?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func CardStorewxaGet

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

获取门店小程序配置的卡券

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

POST https://api.weixin.qq.com/card/storewxa/get?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func CreateMapPoi

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

在腾讯地图中创建门店

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

POST https://api.weixin.qq.com/wxa/create_map_poi?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func DelStore

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

删除门店

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

POST https://api.weixin.qq.com/wxa/del_store?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func GetDistrict

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

从腾讯地图拉取省市区信息

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

GET https://api.weixin.qq.com/wxa/get_district?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

	resp, err := miniprogram.GetDistrict(ctx)

	fmt.Println(resp, err)
}
Output:

func GetMerchantAuditInfo

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

查询门店小程序审核结果

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

GET https://api.weixin.qq.com/wxa/get_merchant_audit_info?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

	resp, err := miniprogram.GetMerchantAuditInfo(ctx)

	fmt.Println(resp, err)
}
Output:

func GetMerchantCategory

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

拉取门店小程序类目

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

GET https://api.weixin.qq.com/wxa/get_merchant_category?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

	resp, err := miniprogram.GetMerchantCategory(ctx)

	fmt.Println(resp, err)
}
Output:

func GetStoreInfo

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

获取单个门店信息

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

POST https://api.weixin.qq.com/wxa/get_store_info?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func GetStoreList

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

获取门店信息列表

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

POST https://api.weixin.qq.com/wxa/get_store_list?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func ModifyMerchant

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

修改门店小程序信息

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

POST https://api.weixin.qq.com/wxa/modify_merchant?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func SearchMapPoi

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

在腾讯地图中搜索门店

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

POST https://api.weixin.qq.com/wxa/search_map_poi?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func UpdateStore

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

更新门店信息

See: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Stores/WeChat_Shop_Miniprogram_Interface.html

POST https://api.weixin.qq.com/wxa/update_store?access_token=TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/poi/miniprogram"
)

func main() {
	var ctx *offiaccount.OffiAccount

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