model

package
v0.0.0-...-22940ab Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const AccessToken = "/oauth/token?grant_type=password&username=%v&password=%v"
View Source
const DeviceData = "/api/device/getSingleDeviceDatas"
View Source
const GetDeviceSensorDatas = "/api/device/getDeviceSensorDatas"
View Source
const GetDevices = "api/device/getDevices"
View Source
const GetSingleSensorDatas = "/api/device/getSingleSensorDatas"
View Source
const RefreshToken = "/oauth/token?grant_type=refresh_token&refresh_token=%v&client_id=%v&client_secret=%v"
View Source
const SwitcherController = "/api/device/switcherController"
View Source
const UserLoginUrl = "/api/user/userLogin"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenRespone

type AccessTokenRespone struct {
	Access_Token  string
	Token_Type    string
	Refresh_Token string
	Expires_In    int64
	Scope         string
	ClientId      string
	ClientSecret  string
}

type AppUser

type AppUser struct {
	AppId  string
	AppKey string
	Seed   string
	Ts     int64
}

type CollectionData

type CollectionData struct {
	DeviceNo string
	Data     []byte
	Ts       int64
}

type DeviceDataReq

type DeviceDataReq struct {
	UserId   int64  `json:"userId"`
	DeviceId string `json:"deviceId"`
	DeviceNo string `json:"deviceNo"`
	CurrPage int64  `json:"currPage"`
	PageSize int64  `json:"pageSize"`
}

type GetDeviceSensorDatasReq

type GetDeviceSensorDatasReq struct {
	UserId   int64 `json:"userId"`
	CurrPage int64 `json:"currPage"`
	PageSize int64 `json:"pageSize"`
}

type GetDevicesReq

type GetDevicesReq struct {
	UserId   int64 `json:"userId"`
	CurrPage int64 `json:"currPage"`
	PageSize int64 `json:"pageSize"`
}

type RemoteUser

type RemoteUser struct {
	UserName     string
	PassWord     string
	UserId       int64
	ApiKey       string
	Secret       string
	AccessToken  string
	TokenType    string
	RefreshToken string
	ClientId     string
	ClientSecret string
	ExpiresIn    int64
	Userstate    int
	NextFlush    int64
}

type SingleSensorDatasReq

type SingleSensorDatasReq struct {
	UserId   int64 `json:"userId"`
	SensorId int64 `json:"sensorId"`
}

type SwitcherControllerReq

type SwitcherControllerReq struct {
	UserId   int64  `json:"userId"`
	DeviceNo string `json:"deviceNo"`
	Switcher int64  `json:"switcher"`
	SensorId int64  `json:"sensorId"`
}

type UserLoginReq

type UserLoginReq struct {
	UserName  string `json:"userName"`
	PassWorld string `json:"password"`
	ApiKey    string `json:"apiKey"`
}

type UserLoginRespone

type UserLoginRespone struct {
	Msg      string
	Flag     string
	ClientId string
	Mobile   string
	Id       int64
	Secret   string
	Avatar   string
	UserName string
	Email    string
}

Jump to

Keyboard shortcuts

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