Documentation ¶
Overview ¶
Package miniprogram 微信门店小程序
Index ¶
- func AddStore(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func ApplyMerchant(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func CardStorewxaGet(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func CreateMapPoi(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func DelStore(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetDistrict(ctx *offiaccount.OffiAccount) (resp []byte, err error)
- func GetMerchantAuditInfo(ctx *offiaccount.OffiAccount) (resp []byte, err error)
- func GetMerchantCategory(ctx *offiaccount.OffiAccount) (resp []byte, err error)
- func GetStoreInfo(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetStoreList(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func ModifyMerchant(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func SearchMapPoi(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func UpdateStore(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
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)
添加门店
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)
创建门店小程序
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)
获取门店小程序配置的卡券
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)
在腾讯地图中创建门店
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)
删除门店
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)
从腾讯地图拉取省市区信息
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)
查询门店小程序审核结果
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)
拉取门店小程序类目
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)
获取单个门店信息
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)
获取门店信息列表
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)
修改门店小程序信息
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)
在腾讯地图中搜索门店
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)
更新门店信息
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.