commEntity

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type     entityType
	IFactory *Factory
)

全局接口

Functions

func GetPoReflectType added in v1.0.3

func GetPoReflectType(entityType string) (string, reflect.Type, error)

func MakeServiceKey

func MakeServiceKey(slic []string) string

MakeServiceKey Java的编码格式范例:"[mqtt-client, 范例:MQTT客户端]",注意,它带""的字符串

Types

type BaseEntity

type BaseEntity struct {
	Id         int64 // 对象id
	CreateTime int64 // 创建时间
	UpdateTime int64 // 更新时间
}

基础信息

type ChannelEntity

type ChannelEntity struct {
	BaseEntity *BaseEntity // 基本信息

	ChannelType string // 通道类型
	ChannelName string // 通道名称

	ChannelParam map[string]interface{} // 配置参数
	ExtendParam  map[string]interface{} // 扩展参数
}

func (*ChannelEntity) BuildByJson added in v1.0.3

func (e *ChannelEntity) BuildByJson(jsn *string) error

func (*ChannelEntity) BuildByPo added in v1.0.3

func (e *ChannelEntity) BuildByPo(pop interface{})

func (*ChannelEntity) BuildToJson added in v1.0.3

func (e *ChannelEntity) BuildToJson() (string, error)

func (*ChannelEntity) BuildToPo added in v1.0.3

func (e *ChannelEntity) BuildToPo() interface{}

func (*ChannelEntity) GetBaseEntity added in v1.0.4

func (e *ChannelEntity) GetBaseEntity() *BaseEntity

func (*ChannelEntity) Instance added in v1.0.4

func (e *ChannelEntity) Instance() *ChannelEntity

func (*ChannelEntity) MakeServiceKey

func (e *ChannelEntity) MakeServiceKey() string

func (*ChannelEntity) MakeServiceKeyList

func (e *ChannelEntity) MakeServiceKeyList() []string

func (*ChannelEntity) NewEntity

func (e *ChannelEntity) NewEntity() IEntity

func (*ChannelEntity) NewPo

func (e *ChannelEntity) NewPo() interface{}

func (*ChannelEntity) TableName added in v1.0.3

func (e *ChannelEntity) TableName() string

func (*ChannelEntity) Type

func (e *ChannelEntity) Type() string

type ChannelStatusEntity added in v1.0.4

type ChannelStatusEntity struct {
	BaseEntity *BaseEntity // 基本信息

	ChannelType  string                 // 通道类型
	ChannelName  string                 // 通道名称
	Open         bool                   //是否打开
	ChannelParam map[string]interface{} // 配置参数
}

func (*ChannelStatusEntity) BuildByJson added in v1.0.4

func (e *ChannelStatusEntity) BuildByJson(jsn *string) error

func (*ChannelStatusEntity) BuildByPo added in v1.0.4

func (e *ChannelStatusEntity) BuildByPo(pop interface{})

func (*ChannelStatusEntity) BuildToJson added in v1.0.4

func (e *ChannelStatusEntity) BuildToJson() (string, error)

func (*ChannelStatusEntity) BuildToPo added in v1.0.4

func (e *ChannelStatusEntity) BuildToPo() interface{}

func (*ChannelStatusEntity) GetBaseEntity added in v1.0.4

func (e *ChannelStatusEntity) GetBaseEntity() *BaseEntity

func (*ChannelStatusEntity) Instance added in v1.0.4

func (*ChannelStatusEntity) MakeServiceKey added in v1.0.4

func (e *ChannelStatusEntity) MakeServiceKey() string

func (*ChannelStatusEntity) MakeServiceKeyList added in v1.0.4

func (e *ChannelStatusEntity) MakeServiceKeyList() []string

func (*ChannelStatusEntity) NewEntity added in v1.0.4

func (e *ChannelStatusEntity) NewEntity() IEntity

func (*ChannelStatusEntity) NewPo added in v1.0.4

func (e *ChannelStatusEntity) NewPo() interface{}

func (*ChannelStatusEntity) TableName added in v1.0.4

func (e *ChannelStatusEntity) TableName() string

func (*ChannelStatusEntity) Type added in v1.0.4

func (e *ChannelStatusEntity) Type() string

type ConfigEntity

type ConfigEntity struct {
	BaseEntity *BaseEntity // 基本信息

	ServiceName string // 服务名称
	ServiceType string // 服务类型
	ConfigName  string // 配置名称
	Remark      string // 描述

	ConfigValue map[string]interface{} // 配置参数
	ConfigParam map[string]interface{} // 扩展参数
}

func (*ConfigEntity) BuildByJson added in v1.0.3

func (e *ConfigEntity) BuildByJson(jsn *string) error

func (*ConfigEntity) BuildByPo added in v1.0.3

func (e *ConfigEntity) BuildByPo(pop interface{})

func (*ConfigEntity) BuildToJson added in v1.0.3

func (e *ConfigEntity) BuildToJson() (string, error)

func (*ConfigEntity) BuildToPo added in v1.0.3

func (e *ConfigEntity) BuildToPo() interface{}

func (*ConfigEntity) GetBaseEntity added in v1.0.4

func (e *ConfigEntity) GetBaseEntity() *BaseEntity

func (*ConfigEntity) Instance added in v1.0.4

func (e *ConfigEntity) Instance() *ConfigEntity

func (*ConfigEntity) MakeServiceKey

func (e *ConfigEntity) MakeServiceKey() string

func (*ConfigEntity) MakeServiceKeyList

func (e *ConfigEntity) MakeServiceKeyList() []string

func (*ConfigEntity) NewEntity

func (e *ConfigEntity) NewEntity() IEntity

func (*ConfigEntity) NewPo

func (e *ConfigEntity) NewPo() interface{}

func (*ConfigEntity) TableName added in v1.0.3

func (e *ConfigEntity) TableName() string

func (*ConfigEntity) Type

func (e *ConfigEntity) Type() string

type DeviceEntity

type DeviceEntity struct {
	BaseEntity *BaseEntity // 基本信息

	Manufacturer string // 设备厂商名称
	DeviceType   string // 设备类型名
	DeviceName   string // 设备名称

	ChannelType string // 通道类型
	ChannelName string // 通道名称

	DeviceParam map[string]interface{} // 配置参数
	ExtendParam map[string]interface{} // 扩展参数
}

func (*DeviceEntity) BuildByJson added in v1.0.3

func (e *DeviceEntity) BuildByJson(jsn *string) error

func (*DeviceEntity) BuildByPo added in v1.0.3

func (e *DeviceEntity) BuildByPo(pop interface{})

func (*DeviceEntity) BuildToJson added in v1.0.3

func (e *DeviceEntity) BuildToJson() (string, error)

func (*DeviceEntity) BuildToPo added in v1.0.3

func (e *DeviceEntity) BuildToPo() interface{}

func (*DeviceEntity) GetBaseEntity added in v1.0.4

func (e *DeviceEntity) GetBaseEntity() *BaseEntity

func (*DeviceEntity) Instance added in v1.0.4

func (e *DeviceEntity) Instance() *DeviceEntity

func (*DeviceEntity) MakeServiceKey

func (e *DeviceEntity) MakeServiceKey() string

func (*DeviceEntity) MakeServiceKeyList

func (e *DeviceEntity) MakeServiceKeyList() []string

func (*DeviceEntity) NewEntity

func (e *DeviceEntity) NewEntity() IEntity

func (*DeviceEntity) NewPo

func (e *DeviceEntity) NewPo() interface{}

func (*DeviceEntity) TableName added in v1.0.3

func (e *DeviceEntity) TableName() string

func (*DeviceEntity) Type

func (e *DeviceEntity) Type() string

type DeviceHistoryEntity added in v1.0.4

type DeviceHistoryEntity struct {
	BaseEntity *BaseEntity // 基本信息

	DeviceId   int64       // 设备厂商名称
	ObjectName string      // 设备类型名
	ParamValue interface{} // 设备名称
}

func (*DeviceHistoryEntity) BuildByJson added in v1.0.4

func (e *DeviceHistoryEntity) BuildByJson(jsn *string) error

func (*DeviceHistoryEntity) BuildByPo added in v1.0.4

func (e *DeviceHistoryEntity) BuildByPo(pop interface{})

func (*DeviceHistoryEntity) BuildToJson added in v1.0.4

func (e *DeviceHistoryEntity) BuildToJson() (string, error)

func (*DeviceHistoryEntity) BuildToPo added in v1.0.4

func (e *DeviceHistoryEntity) BuildToPo() interface{}

func (*DeviceHistoryEntity) GetBaseEntity added in v1.0.4

func (e *DeviceHistoryEntity) GetBaseEntity() *BaseEntity

func (*DeviceHistoryEntity) Instance added in v1.0.4

func (*DeviceHistoryEntity) IsValue added in v1.0.4

func (e *DeviceHistoryEntity) IsValue(data interface{}) bool

func (*DeviceHistoryEntity) MakeServiceKey added in v1.0.4

func (e *DeviceHistoryEntity) MakeServiceKey() string

func (*DeviceHistoryEntity) MakeServiceKeyList added in v1.0.4

func (e *DeviceHistoryEntity) MakeServiceKeyList() []string

func (*DeviceHistoryEntity) NewEntity added in v1.0.4

func (e *DeviceHistoryEntity) NewEntity() IEntity

func (*DeviceHistoryEntity) NewPo added in v1.0.4

func (e *DeviceHistoryEntity) NewPo() interface{}

func (*DeviceHistoryEntity) TableName added in v1.0.4

func (e *DeviceHistoryEntity) TableName() string

func (*DeviceHistoryEntity) Type added in v1.0.4

func (e *DeviceHistoryEntity) Type() string

type DeviceMapperEntity added in v1.0.4

type DeviceMapperEntity struct {
	BaseEntity *BaseEntity // 基本信息

	Manufacturer string // 设备厂商名称
	DeviceType   string // 设备类型名
	ObjectName   string // 设备厂商名称
	ValueType    string // 设备类型名
	MapperName   string // 映射名称
	MapperMode   int    // 映射模式

	ExtendParam map[string]interface{} // 扩展参数
}

func (*DeviceMapperEntity) BuildByJson added in v1.0.4

func (e *DeviceMapperEntity) BuildByJson(jsn *string) error

func (*DeviceMapperEntity) BuildByPo added in v1.0.4

func (e *DeviceMapperEntity) BuildByPo(pop interface{})

func (*DeviceMapperEntity) BuildToJson added in v1.0.4

func (e *DeviceMapperEntity) BuildToJson() (string, error)

func (*DeviceMapperEntity) BuildToPo added in v1.0.4

func (e *DeviceMapperEntity) BuildToPo() interface{}

func (*DeviceMapperEntity) GetBaseEntity added in v1.0.4

func (e *DeviceMapperEntity) GetBaseEntity() *BaseEntity

func (*DeviceMapperEntity) Instance added in v1.0.4

func (e *DeviceMapperEntity) Instance() *DeviceMapperEntity

func (*DeviceMapperEntity) MakeServiceKey added in v1.0.4

func (e *DeviceMapperEntity) MakeServiceKey() string

func (*DeviceMapperEntity) MakeServiceKeyList added in v1.0.4

func (e *DeviceMapperEntity) MakeServiceKeyList() []string

func (*DeviceMapperEntity) NewEntity added in v1.0.4

func (e *DeviceMapperEntity) NewEntity() IEntity

func (*DeviceMapperEntity) NewPo added in v1.0.4

func (e *DeviceMapperEntity) NewPo() interface{}

func (*DeviceMapperEntity) TableName added in v1.0.4

func (e *DeviceMapperEntity) TableName() string

func (*DeviceMapperEntity) Type added in v1.0.4

func (e *DeviceMapperEntity) Type() string

type DeviceModelEntity

type DeviceModelEntity struct {
	BaseEntity *BaseEntity // 基本信息

	Manufacturer string // 设备厂商名称
	DeviceType   string // 设备类型名
	ModelName    string // 模板名称

	ModelParam  map[string]interface{} // 配置参数
	ExtendParam map[string]interface{} // 扩展参数
}

func (*DeviceModelEntity) BuildByJson added in v1.0.3

func (e *DeviceModelEntity) BuildByJson(jsn *string) error

func (*DeviceModelEntity) BuildByPo added in v1.0.3

func (e *DeviceModelEntity) BuildByPo(pop interface{})

func (*DeviceModelEntity) BuildToJson added in v1.0.3

func (e *DeviceModelEntity) BuildToJson() (string, error)

func (*DeviceModelEntity) BuildToPo added in v1.0.3

func (e *DeviceModelEntity) BuildToPo() interface{}

func (*DeviceModelEntity) GetBaseEntity added in v1.0.4

func (e *DeviceModelEntity) GetBaseEntity() *BaseEntity

func (*DeviceModelEntity) Instance added in v1.0.4

func (e *DeviceModelEntity) Instance() *DeviceModelEntity

func (*DeviceModelEntity) MakeServiceKey

func (e *DeviceModelEntity) MakeServiceKey() string

func (*DeviceModelEntity) MakeServiceKeyList

func (e *DeviceModelEntity) MakeServiceKeyList() []string

func (*DeviceModelEntity) NewEntity

func (e *DeviceModelEntity) NewEntity() IEntity

func (*DeviceModelEntity) NewPo

func (e *DeviceModelEntity) NewPo() interface{}

func (*DeviceModelEntity) TableName added in v1.0.3

func (e *DeviceModelEntity) TableName() string

func (*DeviceModelEntity) Type

func (e *DeviceModelEntity) Type() string

type DeviceObjInfEntity added in v1.0.4

type DeviceObjInfEntity struct {
	BaseEntity *BaseEntity // 基本信息

	Manufacturer string // 设备厂商名称
	DeviceType   string // 设备类型名

	ObjectName string // 通道类型
	ValueType  string // 通道名称
}

func (*DeviceObjInfEntity) BuildByJson added in v1.0.4

func (e *DeviceObjInfEntity) BuildByJson(jsn *string) error

func (*DeviceObjInfEntity) BuildByPo added in v1.0.4

func (e *DeviceObjInfEntity) BuildByPo(pop interface{})

func (*DeviceObjInfEntity) BuildToJson added in v1.0.4

func (e *DeviceObjInfEntity) BuildToJson() (string, error)

func (*DeviceObjInfEntity) BuildToPo added in v1.0.4

func (e *DeviceObjInfEntity) BuildToPo() interface{}

func (*DeviceObjInfEntity) GetBaseEntity added in v1.0.4

func (e *DeviceObjInfEntity) GetBaseEntity() *BaseEntity

func (*DeviceObjInfEntity) Instance added in v1.0.4

func (e *DeviceObjInfEntity) Instance() *DeviceObjInfEntity

func (*DeviceObjInfEntity) MakeServiceKey added in v1.0.4

func (e *DeviceObjInfEntity) MakeServiceKey() string

func (*DeviceObjInfEntity) MakeServiceKeyList added in v1.0.4

func (e *DeviceObjInfEntity) MakeServiceKeyList() []string

func (*DeviceObjInfEntity) NewEntity added in v1.0.4

func (e *DeviceObjInfEntity) NewEntity() IEntity

func (*DeviceObjInfEntity) NewPo added in v1.0.4

func (e *DeviceObjInfEntity) NewPo() interface{}

func (*DeviceObjInfEntity) TableName added in v1.0.4

func (e *DeviceObjInfEntity) TableName() string

func (*DeviceObjInfEntity) Type added in v1.0.4

func (e *DeviceObjInfEntity) Type() string

type DeviceObjectEntity added in v1.0.4

type DeviceObjectEntity struct {
	BaseEntity *BaseEntity // 基本信息

	Manufacturer string // 设备厂商名称
	DeviceType   string // 设备类型名
	DeviceName   string // 设备名称

	ObjectName string // 通道名称
}

func (*DeviceObjectEntity) BuildByJson added in v1.0.4

func (e *DeviceObjectEntity) BuildByJson(jsn *string) error

func (*DeviceObjectEntity) BuildByPo added in v1.0.4

func (e *DeviceObjectEntity) BuildByPo(pop interface{})

func (*DeviceObjectEntity) BuildToJson added in v1.0.4

func (e *DeviceObjectEntity) BuildToJson() (string, error)

func (*DeviceObjectEntity) BuildToPo added in v1.0.4

func (e *DeviceObjectEntity) BuildToPo() interface{}

func (*DeviceObjectEntity) GetBaseEntity added in v1.0.4

func (e *DeviceObjectEntity) GetBaseEntity() *BaseEntity

func (*DeviceObjectEntity) Instance added in v1.0.4

func (e *DeviceObjectEntity) Instance() *DeviceObjectEntity

func (*DeviceObjectEntity) MakeServiceKey added in v1.0.4

func (e *DeviceObjectEntity) MakeServiceKey() string

func (*DeviceObjectEntity) MakeServiceKeyList added in v1.0.4

func (e *DeviceObjectEntity) MakeServiceKeyList() []string

func (*DeviceObjectEntity) NewEntity added in v1.0.4

func (e *DeviceObjectEntity) NewEntity() IEntity

func (*DeviceObjectEntity) NewPo added in v1.0.4

func (e *DeviceObjectEntity) NewPo() interface{}

func (*DeviceObjectEntity) TableName added in v1.0.4

func (e *DeviceObjectEntity) TableName() string

func (*DeviceObjectEntity) Type added in v1.0.4

func (e *DeviceObjectEntity) Type() string

type DeviceObjectValue added in v1.0.4

type DeviceObjectValue struct {
	Value interface{} `json:"value"` // 对象id
	Time  int64       `json:"time"`  // 对象id
}

type DeviceRecordEntity added in v1.0.4

type DeviceRecordEntity struct {
	BaseEntity *BaseEntity // 基本信息

	Manufacturer string // 设备厂商名称
	DeviceType   string // 设备类型名
	DeviceName   string // 设备名称

	RecordName string                 // 事件名称
	RecordData map[string]interface{} // 配置参数
}

func (*DeviceRecordEntity) BuildByJson added in v1.0.4

func (e *DeviceRecordEntity) BuildByJson(jsn *string) error

func (*DeviceRecordEntity) BuildByPo added in v1.0.4

func (e *DeviceRecordEntity) BuildByPo(pop interface{})

func (*DeviceRecordEntity) BuildToJson added in v1.0.4

func (e *DeviceRecordEntity) BuildToJson() (string, error)

func (*DeviceRecordEntity) BuildToPo added in v1.0.4

func (e *DeviceRecordEntity) BuildToPo() interface{}

func (*DeviceRecordEntity) GetBaseEntity added in v1.0.4

func (e *DeviceRecordEntity) GetBaseEntity() *BaseEntity

func (*DeviceRecordEntity) Instance added in v1.0.4

func (e *DeviceRecordEntity) Instance() *DeviceRecordEntity

func (*DeviceRecordEntity) MakeServiceKey added in v1.0.4

func (e *DeviceRecordEntity) MakeServiceKey() string

func (*DeviceRecordEntity) MakeServiceKeyList added in v1.0.4

func (e *DeviceRecordEntity) MakeServiceKeyList() []string

func (*DeviceRecordEntity) NewEntity added in v1.0.4

func (e *DeviceRecordEntity) NewEntity() IEntity

func (*DeviceRecordEntity) NewPo added in v1.0.4

func (e *DeviceRecordEntity) NewPo() interface{}

func (*DeviceRecordEntity) TableName added in v1.0.4

func (e *DeviceRecordEntity) TableName() string

func (*DeviceRecordEntity) Type added in v1.0.4

func (e *DeviceRecordEntity) Type() string

type DeviceStatusEntity added in v1.0.4

type DeviceStatusEntity struct {
	BaseEntity *BaseEntity // 基本信息

	CommSuccessTime int64 // 最近通信成功的时间,方便判定设备是否断连
	CommFailedTime  int64 // 最近访问失败的时间
	CommFailedCount int   // 连续访问失败的次数
}

func (*DeviceStatusEntity) BuildByJson added in v1.0.4

func (e *DeviceStatusEntity) BuildByJson(jsn *string) error

func (*DeviceStatusEntity) BuildByPo added in v1.0.4

func (e *DeviceStatusEntity) BuildByPo(pop interface{})

func (*DeviceStatusEntity) BuildToJson added in v1.0.4

func (e *DeviceStatusEntity) BuildToJson() (string, error)

func (*DeviceStatusEntity) BuildToPo added in v1.0.4

func (e *DeviceStatusEntity) BuildToPo() interface{}

func (*DeviceStatusEntity) GetBaseEntity added in v1.0.4

func (e *DeviceStatusEntity) GetBaseEntity() *BaseEntity

func (*DeviceStatusEntity) Instance added in v1.0.4

func (e *DeviceStatusEntity) Instance() *DeviceStatusEntity

func (*DeviceStatusEntity) MakeServiceKey added in v1.0.4

func (e *DeviceStatusEntity) MakeServiceKey() string

func (*DeviceStatusEntity) MakeServiceKeyList added in v1.0.4

func (e *DeviceStatusEntity) MakeServiceKeyList() []string

func (*DeviceStatusEntity) NewEntity added in v1.0.4

func (e *DeviceStatusEntity) NewEntity() IEntity

func (*DeviceStatusEntity) NewPo added in v1.0.4

func (e *DeviceStatusEntity) NewPo() interface{}

func (*DeviceStatusEntity) TableName added in v1.0.4

func (e *DeviceStatusEntity) TableName() string

func (*DeviceStatusEntity) Type added in v1.0.4

func (e *DeviceStatusEntity) Type() string

type DeviceValueEntity added in v1.0.4

type DeviceValueEntity struct {
	BaseEntity *BaseEntity // 基本信息

	Manufacturer string // 设备厂商名称
	DeviceType   string // 设备类型名
	DeviceName   string // 设备名称

	Params map[string]*DeviceObjectValue // 配置参数
}

func (*DeviceValueEntity) BuildByJson added in v1.0.4

func (e *DeviceValueEntity) BuildByJson(jsn *string) error

func (*DeviceValueEntity) BuildByPo added in v1.0.4

func (e *DeviceValueEntity) BuildByPo(pop interface{})

func (*DeviceValueEntity) BuildToJson added in v1.0.4

func (e *DeviceValueEntity) BuildToJson() (string, error)

func (*DeviceValueEntity) BuildToPo added in v1.0.4

func (e *DeviceValueEntity) BuildToPo() interface{}

func (*DeviceValueEntity) GetBaseEntity added in v1.0.4

func (e *DeviceValueEntity) GetBaseEntity() *BaseEntity

func (*DeviceValueEntity) Instance added in v1.0.4

func (e *DeviceValueEntity) Instance() *DeviceValueEntity

func (*DeviceValueEntity) MakeServiceKey added in v1.0.4

func (e *DeviceValueEntity) MakeServiceKey() string

func (*DeviceValueEntity) MakeServiceKeyList added in v1.0.4

func (e *DeviceValueEntity) MakeServiceKeyList() []string

func (*DeviceValueEntity) NewEntity added in v1.0.4

func (e *DeviceValueEntity) NewEntity() IEntity

func (*DeviceValueEntity) NewPo added in v1.0.4

func (e *DeviceValueEntity) NewPo() interface{}

func (*DeviceValueEntity) TableName added in v1.0.4

func (e *DeviceValueEntity) TableName() string

func (*DeviceValueEntity) Type added in v1.0.4

func (e *DeviceValueEntity) Type() string

type Factory added in v1.0.3

type Factory struct {
	// contains filtered or unexported fields
}

func (*Factory) NewEntity added in v1.0.3

func (e *Factory) NewEntity(entityType string) (IEntity, error)

func (*Factory) Register added in v1.0.3

func (e *Factory) Register(entity IEntity)

type IEntity added in v1.0.3

type IEntity interface {
	Type() string                  // 类型名称
	GetBaseEntity() *BaseEntity    // 基础信息
	NewEntity() IEntity            // 实例化一个Entity,它的各成员部位nil
	NewPo() interface{}            // 实例化一个PO,它的各成员部位nil
	MakeServiceKey() string        // 生成string格式的key
	MakeServiceKeyList() []string  // 生成[]string格式的key
	TableName() string             // 数据库表名称,默认名称,在持久化的时候对应哪个数据库表
	BuildByJson(jsn *string) error // 构造实体
	BuildToJson() (string, error)  // 构造实体
	BuildByPo(interface{})         // 构造实体
	BuildToPo() interface{}        // 构造实体
}

IEntity 定义接口

func BuildEntityByJson

func BuildEntityByJson(entityType string, jsn *string) (IEntity, error)

func NewEntity

func NewEntity(entityType string) (IEntity, error)

type OperateEntity

type OperateEntity struct {
	BaseEntity *BaseEntity // 基本信息

	Manufacturer string // 设备厂商名称
	DeviceType   string // 设备类型名

	OperateName string // 操作命令
	OperateMode string // 操作模式
	DataType    string // 返回的数据类型
	EngineType  string // 引擎类型
	ServiceType string // 业务类型
	Timeout     int    // 通信超时
	Polling     bool   // 该操作是否需要被轮询调度

	EngineParam map[string]interface{} // 配置参数
	ExtendParam map[string]interface{} // 扩展参数
}

func (*OperateEntity) BuildByJson added in v1.0.3

func (e *OperateEntity) BuildByJson(jsn *string) error

func (*OperateEntity) BuildByPo added in v1.0.3

func (e *OperateEntity) BuildByPo(pop interface{})

func (*OperateEntity) BuildToJson added in v1.0.3

func (e *OperateEntity) BuildToJson() (string, error)

func (*OperateEntity) BuildToPo added in v1.0.3

func (e *OperateEntity) BuildToPo() interface{}

func (*OperateEntity) GetBaseEntity added in v1.0.4

func (e *OperateEntity) GetBaseEntity() *BaseEntity

func (*OperateEntity) MakeServiceKey

func (e *OperateEntity) MakeServiceKey() string

func (*OperateEntity) MakeServiceKeyList

func (e *OperateEntity) MakeServiceKeyList() []string

func (*OperateEntity) NewEntity

func (e *OperateEntity) NewEntity() IEntity

func (*OperateEntity) NewPo

func (e *OperateEntity) NewPo() interface{}

func (*OperateEntity) TableName added in v1.0.3

func (e *OperateEntity) TableName() string

func (*OperateEntity) Type

func (e *OperateEntity) Type() string

type OperateMonitorTaskEntity added in v1.0.4

type OperateMonitorTaskEntity struct {
	BaseEntity *BaseEntity // 基本信息

	TemplateName string // 模板名称
	Manufacturer string // 设备厂商名称
	DeviceType   string // 设备类型名

	TemplateParam []map[string]interface{} // 模板参数
	DeviceIds     []int64                  // 设备ID
	TaskParam     map[string]interface{}   // 任务参数
}

func (*OperateMonitorTaskEntity) BuildByJson added in v1.0.4

func (e *OperateMonitorTaskEntity) BuildByJson(jsn *string) error

func (*OperateMonitorTaskEntity) BuildByPo added in v1.0.4

func (e *OperateMonitorTaskEntity) BuildByPo(pop interface{})

func (*OperateMonitorTaskEntity) BuildToJson added in v1.0.4

func (e *OperateMonitorTaskEntity) BuildToJson() (string, error)

func (*OperateMonitorTaskEntity) BuildToPo added in v1.0.4

func (e *OperateMonitorTaskEntity) BuildToPo() interface{}

func (*OperateMonitorTaskEntity) GetBaseEntity added in v1.0.4

func (e *OperateMonitorTaskEntity) GetBaseEntity() *BaseEntity

func (*OperateMonitorTaskEntity) MakeServiceKey added in v1.0.4

func (e *OperateMonitorTaskEntity) MakeServiceKey() string

func (*OperateMonitorTaskEntity) MakeServiceKeyList added in v1.0.4

func (e *OperateMonitorTaskEntity) MakeServiceKeyList() []string

func (*OperateMonitorTaskEntity) NewEntity added in v1.0.4

func (e *OperateMonitorTaskEntity) NewEntity() IEntity

func (*OperateMonitorTaskEntity) NewPo added in v1.0.4

func (e *OperateMonitorTaskEntity) NewPo() interface{}

func (*OperateMonitorTaskEntity) TableName added in v1.0.4

func (e *OperateMonitorTaskEntity) TableName() string

func (*OperateMonitorTaskEntity) Type added in v1.0.4

func (e *OperateMonitorTaskEntity) Type() string

type OperateRecordEntity added in v1.0.4

type OperateRecordEntity struct {
	BaseEntity *BaseEntity // 基本信息

	Manufacturer string // 设备厂商名称
	DeviceType   string // 设备类型名
	DeviceName   string // 设备名称

	RecordName  string // 事件名称
	ClientModel string // 客户端模块
	OperateUuid string // 操作的UUID

	RecordParam map[string]interface{} // 配置参数
	RecordData  map[string]interface{} // 扩展参数
}

func (*OperateRecordEntity) BuildByJson added in v1.0.4

func (e *OperateRecordEntity) BuildByJson(jsn *string) error

func (*OperateRecordEntity) BuildByPo added in v1.0.4

func (e *OperateRecordEntity) BuildByPo(pop interface{})

func (*OperateRecordEntity) BuildToJson added in v1.0.4

func (e *OperateRecordEntity) BuildToJson() (string, error)

func (*OperateRecordEntity) BuildToPo added in v1.0.4

func (e *OperateRecordEntity) BuildToPo() interface{}

func (*OperateRecordEntity) GetBaseEntity added in v1.0.4

func (e *OperateRecordEntity) GetBaseEntity() *BaseEntity

func (*OperateRecordEntity) MakeServiceKey added in v1.0.4

func (e *OperateRecordEntity) MakeServiceKey() string

func (*OperateRecordEntity) MakeServiceKeyList added in v1.0.4

func (e *OperateRecordEntity) MakeServiceKeyList() []string

func (*OperateRecordEntity) NewEntity added in v1.0.4

func (e *OperateRecordEntity) NewEntity() IEntity

func (*OperateRecordEntity) NewPo added in v1.0.4

func (e *OperateRecordEntity) NewPo() interface{}

func (*OperateRecordEntity) TableName added in v1.0.4

func (e *OperateRecordEntity) TableName() string

func (*OperateRecordEntity) Type added in v1.0.4

func (e *OperateRecordEntity) Type() string

Jump to

Keyboard shortcuts

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