Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddParameters ¶
type AddParameters struct { ShopId int64 `json:"shop_id"` // 必须, 门店ID SSID string `json:"ssid"` // 必须, 无线网络设备的ssid。非认证公众号添加的ssid必需是“WX”开头(“WX”为大写字母),认证公众号和第三方平台无此限制;所有ssid均不能包含中文字符 Password string `json:"password"` // 必须, 无线网络设备的密码,大于8个字符,不能包含中文字符 BSSID string `json:"bssid"` // 必须, 无线网络设备无线mac地址,格式冒号分隔,字符长度17个,并且字母小写,例如:00:1f:7a:ad:5c:a8 }
type DeviceIterator ¶
type DeviceIterator struct {
// contains filtered or unexported fields
}
DeviceIterator
iter, err := NewDeviceIterator(*core.Client, *SearchQuery) if err != nil { // TODO: 增加你的代码 } for iter.HasNext() { items, err := iter.NextPage() if err != nil { // TODO: 增加你的代码 } // TODO: 增加你的代码 }
func NewDeviceIterator ¶
func NewDeviceIterator(clt *core.Client, query *SearchQuery) (iter *DeviceIterator, err error)
func (*DeviceIterator) HasNext ¶
func (iter *DeviceIterator) HasNext() bool
func (*DeviceIterator) NextPage ¶
func (iter *DeviceIterator) NextPage() (records []Device, err error)
func (*DeviceIterator) TotalCount ¶
func (iter *DeviceIterator) TotalCount() int
type ListResult ¶
type SearchQuery ¶
type SearchQuery struct { ShopId *int64 `json:"shop_id,omitempty"` // 根据门店id查询 PageIndex int `json:"pageindex,omitempty"` // 分页下标,默认从1开始 PageSize int `json:"pagesize,omitempty"` // 每页的个数,默认10个,最大20个 }
func NewSearchQuery1 ¶
func NewSearchQuery1(PageIndex, PageSize int) *SearchQuery
func NewSearchQuery2 ¶
func NewSearchQuery2(ShopId int64, PageIndex, PageSize int) *SearchQuery
Click to show internal directories.
Click to hide internal directories.