wifi

package
v3.0.0-...-471bf3a Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Client

type Client struct {
	BaseClient *kernel.BaseClient
}

func NewClient

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

func (*Client) GetQrCodeUrl

func (comp *Client) GetQrCodeUrl(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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