tspsdk

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 11 Imported by: 0

README

bluebird-sdk-go

TSP3.0(Bluebird)Go SDK

Documentation

Index

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) 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) GetAttences added in v1.1.0

func (p *Attence) GetAttences(query *query.AttencesGetQuery) *result.AttencesGetResult

获取考勤数据列表

type Auth

type Auth struct {
	Cfg *Config
}

func (*Auth) GetToken

func (p *Auth) GetToken() (*result.AuthResult, error)

获取token

type Blood added in v1.0.1

type Blood struct {
	Cfg *Config
}

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 Config

type Config struct {
	HttpClient *util.Request
}

type CoreLog added in v1.1.0

type CoreLog struct {
	Cfg *Config
}

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) 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) DeviceSleepTime added in v1.1.0

func (p *Device) DeviceSleepTime(query *query.SendSleepTimeQuery) *result.Result

下发睡眠时间段指令

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) 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) 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) 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) 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) GetMessages added in v1.1.0

func (p *Message) GetMessages(query *query.MessagesGetQuery) *result.MessagesGetResult

获取报文数据列表

type Sleep added in v1.0.1

type Sleep struct {
	Cfg *Config
}

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 Temperature

type Temperature struct {
	Cfg *Config
}

func (*Temperature) GetTemperature

func (p *Temperature) GetTemperature(query *query.TemperatureGetQuery) *result.TemperatureResult

获取最新体温数据

func (*Temperature) GetTemperatureUpload

获取体温测量间隔时间

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) 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 Tsp

type Tsp struct {
	Cfg *Config
}

func NewAuth

func NewAuth(gateWay, appKey, secret string) *Tsp

获取token(只用来获取token)

func NewClient

func NewClient(gateWay, appKey, token string) *Tsp

获取其它接口数据时在header里面携带token

func (*Tsp) ApiLog added in v1.1.0

func (p *Tsp) ApiLog() *ApiLog

api日志

func (*Tsp) Attence added in v1.1.0

func (p *Tsp) Attence() *Attence

考勤

func (*Tsp) Auth

func (p *Tsp) Auth() *Auth

鉴权

func (*Tsp) Blood added in v1.0.1

func (p *Tsp) Blood() *Blood

血压

func (*Tsp) CoreLog added in v1.1.0

func (p *Tsp) CoreLog() *CoreLog

core日志

func (*Tsp) Device added in v1.0.1

func (p *Tsp) Device() *Device

设备

func (*Tsp) Fence added in v1.0.1

func (p *Tsp) Fence() *Fence

围栏

func (*Tsp) GuardLog added in v1.1.0

func (p *Tsp) GuardLog() *GuardLog

guard日志

func (*Tsp) Heart added in v1.0.1

func (p *Tsp) Heart() *Heart

心率

func (*Tsp) MacBook added in v1.0.15

func (p *Tsp) MacBook() *MacBook

macbook

func (*Tsp) MacList added in v1.0.15

func (p *Tsp) MacList() *MacList

maclist

func (*Tsp) Message added in v1.1.0

func (p *Tsp) Message() *Message

报文

func (*Tsp) Sleep added in v1.0.1

func (p *Tsp) Sleep() *Sleep

睡眠

func (*Tsp) Step added in v1.0.1

func (p *Tsp) Step() *Step

计步

func (*Tsp) Temperature

func (p *Tsp) Temperature() *Temperature

体温

func (*Tsp) Track added in v1.0.1

func (p *Tsp) Track() *Track

轨迹

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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