Documentation ¶
Index ¶
- type ApiLog
- type Attence
- type Auth
- type Blood
- func (p *Blood) DeleteBlood(query *query.BloodDeleteQuery) *result.Result
- func (p *Blood) GetBlood(query *query.BloodGetQuery) *result.BloodGetResult
- func (p *Blood) GetBloodUpload(query *query.BloodUploadGetQuery) *result.BloodUploadResult
- func (p *Blood) GetBloods(query *query.BloodsGetQuery) *result.BloodsGetResult
- func (p *Blood) UpdateBloodUpload(param *query.BloodUploadSetQuery) *result.Result
- type BloodOxygen
- type Bluetooth
- type Config
- type CoreLog
- type Device
- func (p *Device) BindDevice(query *query.DeviceBindQuery) *result.Result
- func (p *Device) DeviceBatchLocateMode(query *query.DeviceBatchLocateMode) *result.Result
- func (p *Device) DeviceCreate(query *query.DeviceCreateQuery) *result.Result
- func (p *Device) DeviceDelete(query *query.DeviceDeleteQuery) *result.Result
- func (p *Device) DevicePoetrybook(query *query.TspSetPoetryBookRequest) *result.Result
- func (p *Device) DeviceRemind(query *query.DeviceRemind) *result.Result
- func (p *Device) DeviceSimLock(query *query.TspSetSimLockRequest) *result.Result
- func (p *Device) DeviceSimPinLock(query *query.TspSetSimPinLockRequest) *result.Result
- func (p *Device) DeviceSleepTime(query *query.SendSleepTimeQuery) *result.Result
- func (p *Device) DeviceSmsStatus(query *query.TspSetSmsStatusRequest) *result.Result
- func (p *Device) DeviceUpdate(query *query.DeviceUpdateQuery) *result.Result
- func (p *Device) DeviceUpdateStatus(query *query.DeviceStatusQuery) *result.Result
- func (p *Device) DeviceWechat(query *query.DeviceWechatQuery) *result.Result
- func (p *Device) DeviceWhitelistStatus(query *query.DeviceWhitelistStatus) *result.Result
- func (p *Device) DeviceWordbook(query *query.TspSetWordBookRequest) *result.Result
- func (p *Device) DeviceWordsmessage(query *query.DeviceWordsmessage) *result.Result
- func (p *Device) GetDevice(query *query.DeviceGetQuery) *result.DeviceGetResult
- func (p *Device) GetDeviceIsOnline(query *query.DeviceIsOnlineQuery) *result.DeviceIsOnlineResult
- func (p *Device) GetDeviceModules(query *query.DeviceModulesQuery) *result.DeviceModulesResult
- func (p *Device) GetDevices(query *query.DevicesGetQuery) *result.DevicesResult
- func (p *Device) SendDnd(query *query.DeviceDndQuery) *result.Result
- func (p *Device) SendFamily(query *query.DeviceFamilyQuery) *result.Result
- func (p *Device) SendFindDevice(query *query.DeviceFindQuery) *result.Result
- func (p *Device) SendHost(query *query.DeviceHostQuery) *result.Result
- func (p *Device) SendLocate(query *query.DeviceLocateQuery) *result.Result
- func (p *Device) SendLocateMode(query *query.DeviceLocateModeQuery) *result.Result
- func (p *Device) SendLocateUpload(query *query.DeviceLocateUploadQuery) *result.Result
- func (p *Device) SendMessage(query *query.DeviceMessageQuery) *result.Result
- func (p *Device) SendMonitor(query *query.DeviceMonitorQuery) *result.Result
- func (p *Device) SendPowerOff(query *query.DevicePowerOffQuery) *result.Result
- func (p *Device) SendRestart(query *query.DeviceRestartQuery) *result.Result
- func (p *Device) SendUdtime(query *query.DeviceUdtimeQuery) *result.Result
- func (p *Device) SetCronshutdown(query *query.TspSetCronshutdownRequest) *result.Result
- func (p *Device) UnBindDevice(query *query.DeviceUnBindQuery) *result.Result
- type Fence
- type GuardLog
- type Heart
- func (p *Heart) DeleteHeart(query *query.HeartDeleteQuery) *result.Result
- func (p *Heart) GetHeart(query *query.HeartGetQuery) *result.HeartResult
- func (p *Heart) GetHeartUpload(query *query.HeartUploadGetQuery) *result.HeartUploadResult
- func (p *Heart) GetHearts(query *query.HeartsGetQuery) *result.HeartsResult
- func (p *Heart) UpdateHeartUpload(param *query.HeartUploadSetQuery) *result.Result
- type MacBook
- func (p *MacBook) DeleteMacBook(query *query.MacbookDeleteQuery) *result.Result
- func (p *MacBook) DrawMacBook(query *query.MacbookDrawQuery) *result.Result
- func (p *MacBook) GetMacBook(query *query.MacBookGetQuery) *result.MacBookGetResult
- func (p *MacBook) GetMacBooks(query *query.MacBooksGetQuery) *result.MacBooksGetResult
- func (p *MacBook) UpdateMacBook(query *query.MacbookUpdateQuery) *result.Result
- type MacList
- type Message
- type Skip
- type Sleep
- type Step
- type TdcloudLog
- type Temperature
- func (p *Temperature) DeleteTemperature(query *query.TemperatureDeleteQuery) *result.Result
- func (p *Temperature) GetTemperature(query *query.TemperatureGetQuery) *result.TemperatureResult
- func (p *Temperature) GetTemperatureUpload(query *query.TemperatureUploadGetQuery) *result.TemperatureUploadResult
- func (p *Temperature) GetTemperatures(query *query.TemperaturesGetQuery) *result.TemperaturesResult
- func (p *Temperature) UpdateTemperatureUpload(param *query.TemperatureUploadSetQuery) *result.Result
- type Track
- type Tsp
- func (p *Tsp) ApiLog() *ApiLog
- func (p *Tsp) Attence() *Attence
- func (p *Tsp) Auth() *Auth
- func (p *Tsp) Blood() *Blood
- func (p *Tsp) BloodOxygen() *BloodOxygen
- func (p *Tsp) Bluetooth() *Bluetooth
- func (p *Tsp) CoreLog() *CoreLog
- func (p *Tsp) Device() *Device
- func (p *Tsp) Fence() *Fence
- func (p *Tsp) GuardLog() *GuardLog
- func (p *Tsp) Heart() *Heart
- func (p *Tsp) MacBook() *MacBook
- func (p *Tsp) MacList() *MacList
- func (p *Tsp) Message() *Message
- func (p *Tsp) Skip() *Skip
- func (p *Tsp) Sleep() *Sleep
- func (p *Tsp) Step() *Step
- func (p *Tsp) TdcloudLog() *TdcloudLog
- func (p *Tsp) Temperature() *Temperature
- func (p *Tsp) Track() *Track
- func (p *Tsp) YsMonitor() *YsMonitor
- type YsMonitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiLog ¶ added in v1.1.0
type ApiLog struct {
Cfg *Config
}
func (*ApiLog) DeleteApiLog ¶ added in v1.2.6
func (p *ApiLog) DeleteApiLog(query *query.ApiLogDeleteQuery) *result.Result
删除api日志
func (*ApiLog) GetApiLogs ¶ added in v1.1.0
func (p *ApiLog) GetApiLogs(query *query.ApiLogsGetQuery) *result.ApiLogsGetResult
获取api日志列表
type Attence ¶ added in v1.1.0
type Attence struct {
Cfg *Config
}
func (*Attence) DeleteAttence ¶ added in v1.2.6
func (p *Attence) DeleteAttence(query *query.AttenceDeleteQuery) *result.Result
删除考勤数据
func (*Attence) GetAttences ¶ added in v1.1.0
func (p *Attence) GetAttences(query *query.AttencesGetQuery) *result.AttencesGetResult
获取考勤数据列表
type Blood ¶ added in v1.0.1
type Blood struct {
Cfg *Config
}
func (*Blood) DeleteBlood ¶ added in v1.2.6
func (p *Blood) DeleteBlood(query *query.BloodDeleteQuery) *result.Result
删除血压数据
func (*Blood) GetBlood ¶ added in v1.0.1
func (p *Blood) GetBlood(query *query.BloodGetQuery) *result.BloodGetResult
获取最新血压数据
func (*Blood) GetBloodUpload ¶ added in v1.0.11
func (p *Blood) GetBloodUpload(query *query.BloodUploadGetQuery) *result.BloodUploadResult
获取血压测量间隔时间
func (*Blood) GetBloods ¶ added in v1.0.1
func (p *Blood) GetBloods(query *query.BloodsGetQuery) *result.BloodsGetResult
获取血压列表
func (*Blood) UpdateBloodUpload ¶ added in v1.0.11
func (p *Blood) UpdateBloodUpload(param *query.BloodUploadSetQuery) *result.Result
设置血压测量间隔时间
type BloodOxygen ¶ added in v1.2.10
type BloodOxygen struct {
Cfg *Config
}
func (*BloodOxygen) DeleteBloodOxygen ¶ added in v1.2.10
func (p *BloodOxygen) DeleteBloodOxygen(query *query.BloodOxygenDeleteQuery) *result.Result
删除血氧数据
func (*BloodOxygen) GetBloodOxygen ¶ added in v1.2.10
func (p *BloodOxygen) GetBloodOxygen(query *query.BloodOxygenGetQuery) *result.BloodOxygenGetResult
获取最新血氧数据
func (*BloodOxygen) GetBloodOxygens ¶ added in v1.2.10
func (p *BloodOxygen) GetBloodOxygens(query *query.BloodOxygensGetQuery) *result.BloodOxygensGetResult
获取血氧列表
type Bluetooth ¶ added in v1.4.6
type Bluetooth struct {
Cfg *Config
}
func (*Bluetooth) SetBluetoothLink ¶ added in v1.4.9
func (p *Bluetooth) SetBluetoothLink(param *query.TspBluetoothLinkRequest) *result.Result
蓝牙配对
type CoreLog ¶ added in v1.1.0
type CoreLog struct {
Cfg *Config
}
func (*CoreLog) DeleteCoreLog ¶ added in v1.2.6
func (p *CoreLog) DeleteCoreLog(query *query.CoreLogDeleteQuery) *result.Result
删除core日志
func (*CoreLog) GetCoreLogs ¶ added in v1.1.0
func (p *CoreLog) GetCoreLogs(query *query.CoreLogsGetQuery) *result.CoreLogsGetResult
获取api日志列表
type Device ¶
type Device struct {
Cfg *Config
}
func (*Device) BindDevice ¶ added in v1.0.1
func (p *Device) BindDevice(query *query.DeviceBindQuery) *result.Result
设备绑定
func (*Device) DeviceBatchLocateMode ¶ added in v1.1.4
func (p *Device) DeviceBatchLocateMode(query *query.DeviceBatchLocateMode) *result.Result
DeviceBatchLocateMode 批量设置设备的定位模式指令
func (*Device) DeviceCreate ¶ added in v1.1.0
func (p *Device) DeviceCreate(query *query.DeviceCreateQuery) *result.Result
创建设备
func (*Device) DeviceDelete ¶ added in v1.1.0
func (p *Device) DeviceDelete(query *query.DeviceDeleteQuery) *result.Result
删除设备
func (*Device) DevicePoetrybook ¶ added in v1.4.4
func (p *Device) DevicePoetrybook(query *query.TspSetPoetryBookRequest) *result.Result
DeviceRemind 下发古诗词
func (*Device) DeviceRemind ¶ added in v1.2.1
func (p *Device) DeviceRemind(query *query.DeviceRemind) *result.Result
DeviceRemind 设置设备闹钟
func (*Device) DeviceSimLock ¶ added in v1.4.14
func (p *Device) DeviceSimLock(query *query.TspSetSimLockRequest) *result.Result
DeviceSimLock sim卡机卡绑定
func (*Device) DeviceSimPinLock ¶ added in v1.4.14
func (p *Device) DeviceSimPinLock(query *query.TspSetSimPinLockRequest) *result.Result
DeviceSimPinLock sim卡pin码锁
func (*Device) DeviceSleepTime ¶ added in v1.1.0
func (p *Device) DeviceSleepTime(query *query.SendSleepTimeQuery) *result.Result
下发睡眠时间段指令
func (*Device) DeviceSmsStatus ¶ added in v1.4.14
func (p *Device) DeviceSmsStatus(query *query.TspSetSmsStatusRequest) *result.Result
DeviceSmsStatus 下发短信拦截开关设置指令
func (*Device) DeviceUpdate ¶ added in v1.0.7
func (p *Device) DeviceUpdate(query *query.DeviceUpdateQuery) *result.Result
更新设备信息
func (*Device) DeviceUpdateStatus ¶ added in v1.1.0
func (p *Device) DeviceUpdateStatus(query *query.DeviceStatusQuery) *result.Result
变更设备状态
func (*Device) DeviceWechat ¶ added in v1.1.1
func (p *Device) DeviceWechat(query *query.DeviceWechatQuery) *result.Result
DeviceWechat 下发传输微聊音频文件到设备的指令
func (*Device) DeviceWhitelistStatus ¶ added in v1.1.4
func (p *Device) DeviceWhitelistStatus(query *query.DeviceWhitelistStatus) *result.Result
DeviceWhitelistStatus 变更通话白名单状态
func (*Device) DeviceWordbook ¶ added in v1.4.4
func (p *Device) DeviceWordbook(query *query.TspSetWordBookRequest) *result.Result
DeviceRemind 下发单词
func (*Device) DeviceWordsmessage ¶ added in v1.4.3
func (p *Device) DeviceWordsmessage(query *query.DeviceWordsmessage) *result.Result
DeviceRemind 发送文字消息
func (*Device) GetDevice ¶ added in v1.0.1
func (p *Device) GetDevice(query *query.DeviceGetQuery) *result.DeviceGetResult
设备详情
func (*Device) GetDeviceIsOnline ¶ added in v1.0.1
func (p *Device) GetDeviceIsOnline(query *query.DeviceIsOnlineQuery) *result.DeviceIsOnlineResult
判断设备是否在线
func (*Device) GetDeviceModules ¶ added in v1.0.1
func (p *Device) GetDeviceModules(query *query.DeviceModulesQuery) *result.DeviceModulesResult
获取设备功能清单
func (*Device) GetDevices ¶ added in v1.0.1
func (p *Device) GetDevices(query *query.DevicesGetQuery) *result.DevicesResult
获取设备列表
func (*Device) SendDnd ¶ added in v1.0.6
func (p *Device) SendDnd(query *query.DeviceDndQuery) *result.Result
下发设置免打扰时间段指令
func (*Device) SendFamily ¶ added in v1.0.1
func (p *Device) SendFamily(query *query.DeviceFamilyQuery) *result.Result
下发设置亲情号码指令
func (*Device) SendFindDevice ¶ added in v1.0.1
func (p *Device) SendFindDevice(query *query.DeviceFindQuery) *result.Result
下发设备寻找指令
func (*Device) SendHost ¶ added in v1.0.1
func (p *Device) SendHost(query *query.DeviceHostQuery) *result.Result
下发设置终端host指令
func (*Device) SendLocate ¶ added in v1.0.1
func (p *Device) SendLocate(query *query.DeviceLocateQuery) *result.Result
下发定位指令到终端
func (*Device) SendLocateMode ¶ added in v1.0.1
func (p *Device) SendLocateMode(query *query.DeviceLocateModeQuery) *result.Result
下发设置定位模式指令
func (*Device) SendLocateUpload ¶ added in v1.0.1
func (p *Device) SendLocateUpload(query *query.DeviceLocateUploadQuery) *result.Result
下发定位上报间隔指令
func (*Device) SendMessage ¶ added in v1.0.1
func (p *Device) SendMessage(query *query.DeviceMessageQuery) *result.Result
透传报文
func (*Device) SendMonitor ¶ added in v1.0.6
func (p *Device) SendMonitor(query *query.DeviceMonitorQuery) *result.Result
下发聆听指令
func (*Device) SendPowerOff ¶ added in v1.0.1
func (p *Device) SendPowerOff(query *query.DevicePowerOffQuery) *result.Result
下发关机指令
func (*Device) SendRestart ¶ added in v1.0.1
func (p *Device) SendRestart(query *query.DeviceRestartQuery) *result.Result
下发重启指令
func (*Device) SendUdtime ¶ added in v1.0.1
func (p *Device) SendUdtime(query *query.DeviceUdtimeQuery) *result.Result
下发定位时间段指令
func (*Device) SetCronshutdown ¶ added in v1.3.5
func (p *Device) SetCronshutdown(query *query.TspSetCronshutdownRequest) *result.Result
DeviceRemind 设置设备定时开关机
func (*Device) UnBindDevice ¶ added in v1.0.1
func (p *Device) UnBindDevice(query *query.DeviceUnBindQuery) *result.Result
设备解绑
type Fence ¶ added in v1.0.1
type Fence struct {
Cfg *Config
}
func (*Fence) CreateFence ¶ added in v1.0.1
func (p *Fence) CreateFence(query *query.FenceCreateQuery) *result.FenceCreateResult
创建围栏
func (*Fence) DeleteFence ¶ added in v1.0.1
func (p *Fence) DeleteFence(query *query.FenceDeleteQuery) *result.Result
删除围栏
func (*Fence) GetFences ¶ added in v1.0.1
func (p *Fence) GetFences(query *query.FencesGetQuery) *result.FencesGetResult
获取围栏列表
type GuardLog ¶ added in v1.1.0
type GuardLog struct {
Cfg *Config
}
func (*GuardLog) DeleteGuardLog ¶ added in v1.2.6
func (p *GuardLog) DeleteGuardLog(query *query.GuardLogDeleteQuery) *result.Result
删除guard日志
func (*GuardLog) GetGuardLogs ¶ added in v1.1.0
func (p *GuardLog) GetGuardLogs(query *query.GuardLogsGetQuery) *result.GuardLogsGetResult
获取api日志列表
type Heart ¶ added in v1.0.1
type Heart struct {
Cfg *Config
}
func (*Heart) DeleteHeart ¶ added in v1.2.6
func (p *Heart) DeleteHeart(query *query.HeartDeleteQuery) *result.Result
删除心率
func (*Heart) GetHeart ¶ added in v1.0.1
func (p *Heart) GetHeart(query *query.HeartGetQuery) *result.HeartResult
获取最新心率数据
func (*Heart) GetHeartUpload ¶ added in v1.0.1
func (p *Heart) GetHeartUpload(query *query.HeartUploadGetQuery) *result.HeartUploadResult
获取心率测量间隔时间
func (*Heart) GetHearts ¶ added in v1.0.1
func (p *Heart) GetHearts(query *query.HeartsGetQuery) *result.HeartsResult
获取心率列表
func (*Heart) UpdateHeartUpload ¶ added in v1.0.1
func (p *Heart) UpdateHeartUpload(param *query.HeartUploadSetQuery) *result.Result
设置心率测量间隔时间
type MacBook ¶ added in v1.0.15
type MacBook struct {
Cfg *Config
}
func (*MacBook) DeleteMacBook ¶ added in v1.0.15
func (p *MacBook) DeleteMacBook(query *query.MacbookDeleteQuery) *result.Result
删除macbook
func (*MacBook) DrawMacBook ¶ added in v1.0.15
func (p *MacBook) DrawMacBook(query *query.MacbookDrawQuery) *result.Result
重绘macbook
func (*MacBook) GetMacBook ¶ added in v1.0.15
func (p *MacBook) GetMacBook(query *query.MacBookGetQuery) *result.MacBookGetResult
获取macbook详情
func (*MacBook) GetMacBooks ¶ added in v1.0.15
func (p *MacBook) GetMacBooks(query *query.MacBooksGetQuery) *result.MacBooksGetResult
获取macbook列表
func (*MacBook) UpdateMacBook ¶ added in v1.0.15
func (p *MacBook) UpdateMacBook(query *query.MacbookUpdateQuery) *result.Result
更新macbook
type MacList ¶ added in v1.0.15
type MacList struct {
Cfg *Config
}
func (*MacList) DeleteMacList ¶ added in v1.0.15
func (p *MacList) DeleteMacList(query *query.MacListDeleteQuery) *result.Result
删除maclist
func (*MacList) GetMacLists ¶ added in v1.0.15
func (p *MacList) GetMacLists(query *query.MacListsGetQuery) *result.MacListsGetResult
获取mac列表
func (*MacList) MacListCreate ¶ added in v1.0.15
func (p *MacList) MacListCreate(query *query.MacListCreateQuery) *result.Result
添加maclist
type Message ¶ added in v1.1.0
type Message struct {
Cfg *Config
}
func (*Message) DeleteMessage ¶ added in v1.2.6
func (p *Message) DeleteMessage(query *query.MessageDeleteQuery) *result.Result
删除报文
func (*Message) GetMessages ¶ added in v1.1.0
func (p *Message) GetMessages(query *query.MessagesGetQuery) *result.MessagesGetResult
获取报文数据列表
type Skip ¶ added in v1.4.6
type Skip struct {
Cfg *Config
}
func (*Skip) GetSkips ¶ added in v1.4.6
func (p *Skip) GetSkips(query *query.SkipsGetQuery) *result.SkipsResult
获取跳绳数据列表
type Sleep ¶ added in v1.0.1
type Sleep struct {
Cfg *Config
}
func (*Sleep) DeleteSleep ¶ added in v1.2.6
func (p *Sleep) DeleteSleep(query *query.SleepDeleteQuery) *result.Result
删除睡眠数据
func (*Sleep) GetSleep ¶ added in v1.1.0
func (p *Sleep) GetSleep(query *query.SleepGetQuery) *result.SleepResult
获取最新睡眠数据
func (*Sleep) GetSleeps ¶ added in v1.0.1
func (p *Sleep) GetSleeps(query *query.SleepsGetQuery) *result.SleepsResult
获取睡眠列表
type Step ¶ added in v1.0.1
type Step struct {
Cfg *Config
}
func (*Step) GetSteps ¶ added in v1.0.1
func (p *Step) GetSteps(query *query.StepsGetQuery) *result.StepsResult
获取计步列表
type TdcloudLog ¶ added in v1.4.16
type TdcloudLog struct {
Cfg *Config
}
func (*TdcloudLog) GetTdcloudLogs ¶ added in v1.4.18
func (p *TdcloudLog) GetTdcloudLogs(query *query.TdcloudLogsGetQuery) *result.TdcloudLogsGetResult
获取api日志列表
type Temperature ¶
type Temperature struct {
Cfg *Config
}
func (*Temperature) DeleteTemperature ¶ added in v1.2.6
func (p *Temperature) DeleteTemperature(query *query.TemperatureDeleteQuery) *result.Result
删除体温数据
func (*Temperature) GetTemperature ¶
func (p *Temperature) GetTemperature(query *query.TemperatureGetQuery) *result.TemperatureResult
获取最新体温数据
func (*Temperature) GetTemperatureUpload ¶
func (p *Temperature) GetTemperatureUpload(query *query.TemperatureUploadGetQuery) *result.TemperatureUploadResult
获取体温测量间隔时间
func (*Temperature) GetTemperatures ¶
func (p *Temperature) GetTemperatures(query *query.TemperaturesGetQuery) *result.TemperaturesResult
获取体温列表
func (*Temperature) UpdateTemperatureUpload ¶
func (p *Temperature) UpdateTemperatureUpload(param *query.TemperatureUploadSetQuery) *result.Result
设置体温测量间隔时间
type Track ¶ added in v1.0.1
type Track struct {
Cfg *Config
}
func (*Track) DeleteTrack ¶ added in v1.2.6
func (p *Track) DeleteTrack(query *query.TrackDeleteQuery) *result.Result
删除轨迹数据
func (*Track) GetTracks ¶ added in v1.0.1
func (p *Track) GetTracks(query *query.TracksGetQuery) *result.TracksGetResult
获取轨迹列表
func (*Track) TrackUpdate ¶ added in v1.1.1
func (p *Track) TrackUpdate(query *query.TracksUpdateQuery) *result.Result
TrackUpdate 修改轨迹数据
type YsMonitor ¶ added in v1.4.5
type YsMonitor struct {
Cfg *Config
}
func (*YsMonitor) TSPYsmonitorAccesstokenPath ¶ added in v1.4.5
func (p *YsMonitor) TSPYsmonitorAccesstokenPath() *result.YsmonitorTokenGetResult
获取萤石token