msgGateway

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeOperation = "operation" //拓扑关系管理
	TypeStatus    = "status"    //代理子设备上下线
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	ProductID  string `json:"productID"`        //产品id
	DeviceName string `json:"deviceName"`       //设备名称
	Result     int64  `json:"result,omitempty"` //子设备绑定结果
}

type GatewayPayload

type GatewayPayload struct {
	Status  int32     `json:"status,omitempty"`
	Devices []*Device `json:"devices"`
}

type Msg

type Msg struct {
	*deviceMsg.CommonMsg
	Payload *GatewayPayload `json:"payload,omitempty"`
}

Msg 请求和回复结构体

Jump to

Keyboard shortcuts

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