Documentation ¶
Index ¶
- func RegisterProvider(app kernel.ApplicationInterface) (*Client, *CardClient, *DeviceClient, *ShopClient)
- type CardClient
- type Client
- func (comp *Client) GetQrCodeUrl(bShopID int, ssid string, ImageID int) (*response.ResponseWifiQrCodeURL, error)
- func (comp *Client) SetFinishPage(bShopID int, finishPageURL string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) SetHomePage(data *request.RequestWifiSetHomePage) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) Summary(beginDate string, endDate string, shopID int) (*response.ResponseWifiSummary, error)
- type DeviceClient
- func (comp *DeviceClient) AddPasswordDevice(shopID int, ssid string, password string) (*response2.ResponseOfficialAccount, error)
- func (comp *DeviceClient) AddPortalDevice(shopID int, ssid string, reset string) (*response2.ResponseOfficialAccount, error)
- func (comp *DeviceClient) Delete(macAddress string) (*response2.ResponseOfficialAccount, error)
- func (comp *DeviceClient) List(page int, size int) (*response.ResponseWifiDeviceList, error)
- type ShopClient
- func (comp *ShopClient) ClearDevice(shopID int, ssid string) (*response2.ResponseOfficialAccount, error)
- func (comp *ShopClient) Get(shopID int) (*response.ResponseWifiShopGet, error)
- func (comp *ShopClient) List(page int, size int) (*response.ResponseWifiShopList, error)
- func (comp *ShopClient) Update(shopID int, oldSSID string, ssid string) (*response2.ResponseOfficialAccount, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, *CardClient, *DeviceClient, *ShopClient)
Types ¶
type CardClient ¶
type CardClient struct {
*kernel.BaseClient
}
func NewCardClient ¶
func NewCardClient(app kernel.ApplicationInterface) *CardClient
func (*CardClient) Get ¶
func (comp *CardClient) Get(shopID int) (*response.ResponseWifiCardGet, error)
通过此接口查询某一门店的详细卡券投放信息 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Cards/Query_the_store_card_and_coupon_delivery_information.html
func (*CardClient) Set ¶
func (comp *CardClient) Set(data *request.RequestWifiCardSet) (*response2.ResponseOfficialAccount, error)
调用设置门店卡劵投放信息接口 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Cards/Set_store_card_and_coupon_delivery_information.html
type Client ¶
type Client struct {
*kernel.BaseClient
}
func NewClient ¶
func NewClient(app kernel.ApplicationInterface) *Client
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 ¶
func (comp *Client) SetHomePage(data *request.RequestWifiSetHomePage) (*response2.ResponseOfficialAccount, error)
设置商户主页后,点击微信聊首页欢迎语,即可进入设置的商户主页。 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
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
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
func (*ShopClient) Get ¶
func (comp *ShopClient) Get(shopID int) (*response.ResponseWifiShopGet, error)
查询门店 WiFi 信息接口 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/WiFi_mini_programs.html
func (*ShopClient) List ¶
func (comp *ShopClient) List(page int, size int) (*response.ResponseWifiShopList, error)
通过此接口获取 WiFi 的门店列表 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Stores_management/Get_a_Wi-Fi_store_list.html
func (*ShopClient) Update ¶
func (comp *ShopClient) Update(shopID int, oldSSID string, ssid string) (*response2.ResponseOfficialAccount, error)
通过此接口修改门店的网络信息 https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/Stores_management/Modify_the_store_network_information.html