wifi

package
v2.0.1-beta34 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Client

type Client struct {
	*kernel.BaseClient
}

func NewClient

func NewClient(app kernel.ApplicationInterface) (*Client, error)

func (*Client) GetQrCodeUrl

func (comp *Client) GetQrCodeUrl(bShopID int, ssid string, ImageID int) (*response.ResponseWifiQrCodeURL, error)

添加设备后,通过此接口可以获取物料。 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Connecting/Get_materials_QR_Code.html

func (*Client) SetFinishPage

func (comp *Client) SetFinishPage(bShopID int, finishPageURL string) (*response2.ResponseOfficialAccount, error)

当顾客使用微信连 Wi-Fi 方式连网成功时,点击页面右上角“完成”按钮,即可进入已设置的连网完成页。 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Home_Page_management/Set_up_the_Wi-Fi_Connection_Completion_page.html

func (*Client) SetHomePage

设置商户主页后,点击微信聊首页欢迎语,即可进入设置的商户主页。 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Home_Page_management/Set_up_a_merchant_home_page.html

func (*Client) Summary

func (comp *Client) Summary(beginDate string, endDate string, shopID int) (*response.ResponseWifiSummary, error)

查询一定时间范围内的 WiFi 连接总人数、微信方式连 Wi-Fi 人数、商家主页访问人数、连网后消息发送人数、新增公众号关注人数和累计公众号关注人数。 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Wi-Fi_data_statistics.html

type DeviceClient

type DeviceClient struct {
	*kernel.BaseClient
}

func NewDeviceClient

func NewDeviceClient(app kernel.ApplicationInterface) (*DeviceClient, error)

func (*DeviceClient) AddPasswordDevice

func (comp *DeviceClient) AddPasswordDevice(shopID int, ssid string, password string) (*response2.ResponseOfficialAccount, error)

调用此接口向指定门店添加密码型设备的 Wi-Fi 信息 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Devices_Management/Adding_password-protected_devices.html

func (*DeviceClient) AddPortalDevice

func (comp *DeviceClient) AddPortalDevice(shopID int, ssid string, reset string) (*response2.ResponseOfficialAccount, error)

调用此接口向指定门店添加密码型设备的 Wi-Fi 信息 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Devices_Management/Adding_password-protected_devices.html

func (*DeviceClient) Delete

func (comp *DeviceClient) Delete(macAddress string) (*response2.ResponseOfficialAccount, error)

调用此接口向指定门店删除密码型设备的 Wi-Fi 信息 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Devices_Management/Adding_password-protected_devices.html

func (*DeviceClient) List

func (comp *DeviceClient) List(page int, size int) (*response.ResponseWifiDeviceList, error)

调用此接口向指定门店添加密码型设备的 Wi-Fi 信息 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Devices_Management/Query_devices.html

type ShopClient

type ShopClient struct {
	*kernel.BaseClient
}

func NewShopClient

func NewShopClient(app kernel.ApplicationInterface) (*ShopClient, error)

func (*ShopClient) ClearDevice

func (comp *ShopClient) ClearDevice(shopID int, ssid string) (*response2.ResponseOfficialAccount, error)

通过此接口清空门店的网络配置及所有设备,恢复空门店状态。 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Stores_management/Empty_the_store_network_and_devices.html

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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