commEntity

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type     entityType
	IFactory *Factory
)

全局接口

Functions

func GetPoReflectType

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

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

func (*ChannelEntity) BuildByPo

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

func (*ChannelEntity) BuildToJson

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

func (*ChannelEntity) BuildToPo

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

func (*ChannelEntity) GetBaseEntity

func (e *ChannelEntity) GetBaseEntity() *BaseEntity

func (*ChannelEntity) Instance

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

func (e *ChannelEntity) TableName() string

func (*ChannelEntity) Type

func (e *ChannelEntity) Type() string

type ChannelStatusEntity

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

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

func (*ChannelStatusEntity) BuildByJson

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

func (*ChannelStatusEntity) BuildByPo

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

func (*ChannelStatusEntity) BuildToJson

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

func (*ChannelStatusEntity) BuildToPo

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

func (*ChannelStatusEntity) GetBaseEntity

func (e *ChannelStatusEntity) GetBaseEntity() *BaseEntity

func (*ChannelStatusEntity) Instance

func (*ChannelStatusEntity) MakeServiceKey

func (e *ChannelStatusEntity) MakeServiceKey() string

func (*ChannelStatusEntity) MakeServiceKeyList

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

func (*ChannelStatusEntity) NewEntity

func (e *ChannelStatusEntity) NewEntity() IEntity

func (*ChannelStatusEntity) NewPo

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

func (*ChannelStatusEntity) TableName

func (e *ChannelStatusEntity) TableName() string

func (*ChannelStatusEntity) Type

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

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

func (*ConfigEntity) BuildByPo

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

func (*ConfigEntity) BuildToJson

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

func (*ConfigEntity) BuildToPo

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

func (*ConfigEntity) GetBaseEntity

func (e *ConfigEntity) GetBaseEntity() *BaseEntity

func (*ConfigEntity) Instance

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

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

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

func (*DeviceEntity) BuildByPo

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

func (*DeviceEntity) BuildToJson

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

func (*DeviceEntity) BuildToPo

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

func (*DeviceEntity) GetBaseEntity

func (e *DeviceEntity) GetBaseEntity() *BaseEntity

func (*DeviceEntity) Instance

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

func (e *DeviceEntity) TableName() string

func (*DeviceEntity) Type

func (e *DeviceEntity) Type() string

type DeviceHistoryEntity

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

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

func (*DeviceHistoryEntity) BuildByJson

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

func (*DeviceHistoryEntity) BuildByPo

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

func (*DeviceHistoryEntity) BuildToJson

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

func (*DeviceHistoryEntity) BuildToPo

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

func (*DeviceHistoryEntity) GetBaseEntity

func (e *DeviceHistoryEntity) GetBaseEntity() *BaseEntity

func (*DeviceHistoryEntity) Instance

func (*DeviceHistoryEntity) IsValue

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

func (*DeviceHistoryEntity) MakeServiceKey

func (e *DeviceHistoryEntity) MakeServiceKey() string

func (*DeviceHistoryEntity) MakeServiceKeyList

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

func (*DeviceHistoryEntity) NewEntity

func (e *DeviceHistoryEntity) NewEntity() IEntity

func (*DeviceHistoryEntity) NewPo

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

func (*DeviceHistoryEntity) TableName

func (e *DeviceHistoryEntity) TableName() string

func (*DeviceHistoryEntity) Type

func (e *DeviceHistoryEntity) Type() string

type DeviceMapperEntity

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

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

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

func (*DeviceMapperEntity) BuildByJson

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

func (*DeviceMapperEntity) BuildByPo

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

func (*DeviceMapperEntity) BuildToJson

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

func (*DeviceMapperEntity) BuildToPo

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

func (*DeviceMapperEntity) GetBaseEntity

func (e *DeviceMapperEntity) GetBaseEntity() *BaseEntity

func (*DeviceMapperEntity) Instance

func (e *DeviceMapperEntity) Instance() *DeviceMapperEntity

func (*DeviceMapperEntity) MakeServiceKey

func (e *DeviceMapperEntity) MakeServiceKey() string

func (*DeviceMapperEntity) MakeServiceKeyList

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

func (*DeviceMapperEntity) NewEntity

func (e *DeviceMapperEntity) NewEntity() IEntity

func (*DeviceMapperEntity) NewPo

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

func (*DeviceMapperEntity) TableName

func (e *DeviceMapperEntity) TableName() string

func (*DeviceMapperEntity) Type

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

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

func (*DeviceModelEntity) BuildByPo

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

func (*DeviceModelEntity) BuildToJson

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

func (*DeviceModelEntity) BuildToPo

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

func (*DeviceModelEntity) GetBaseEntity

func (e *DeviceModelEntity) GetBaseEntity() *BaseEntity

func (*DeviceModelEntity) Instance

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

func (e *DeviceModelEntity) TableName() string

func (*DeviceModelEntity) Type

func (e *DeviceModelEntity) Type() string

type DeviceObjInfEntity

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

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

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

func (*DeviceObjInfEntity) BuildByJson

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

func (*DeviceObjInfEntity) BuildByPo

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

func (*DeviceObjInfEntity) BuildToJson

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

func (*DeviceObjInfEntity) BuildToPo

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

func (*DeviceObjInfEntity) GetBaseEntity

func (e *DeviceObjInfEntity) GetBaseEntity() *BaseEntity

func (*DeviceObjInfEntity) Instance

func (e *DeviceObjInfEntity) Instance() *DeviceObjInfEntity

func (*DeviceObjInfEntity) MakeServiceKey

func (e *DeviceObjInfEntity) MakeServiceKey() string

func (*DeviceObjInfEntity) MakeServiceKeyList

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

func (*DeviceObjInfEntity) NewEntity

func (e *DeviceObjInfEntity) NewEntity() IEntity

func (*DeviceObjInfEntity) NewPo

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

func (*DeviceObjInfEntity) TableName

func (e *DeviceObjInfEntity) TableName() string

func (*DeviceObjInfEntity) Type

func (e *DeviceObjInfEntity) Type() string

type DeviceObjectEntity

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

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

	ObjectName string // 通道名称
}

func (*DeviceObjectEntity) BuildByJson

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

func (*DeviceObjectEntity) BuildByPo

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

func (*DeviceObjectEntity) BuildToJson

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

func (*DeviceObjectEntity) BuildToPo

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

func (*DeviceObjectEntity) GetBaseEntity

func (e *DeviceObjectEntity) GetBaseEntity() *BaseEntity

func (*DeviceObjectEntity) Instance

func (e *DeviceObjectEntity) Instance() *DeviceObjectEntity

func (*DeviceObjectEntity) MakeServiceKey

func (e *DeviceObjectEntity) MakeServiceKey() string

func (*DeviceObjectEntity) MakeServiceKeyList

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

func (*DeviceObjectEntity) NewEntity

func (e *DeviceObjectEntity) NewEntity() IEntity

func (*DeviceObjectEntity) NewPo

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

func (*DeviceObjectEntity) TableName

func (e *DeviceObjectEntity) TableName() string

func (*DeviceObjectEntity) Type

func (e *DeviceObjectEntity) Type() string

type DeviceObjectValue

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

type DeviceRecordEntity

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

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

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

func (*DeviceRecordEntity) BuildByJson

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

func (*DeviceRecordEntity) BuildByPo

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

func (*DeviceRecordEntity) BuildToJson

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

func (*DeviceRecordEntity) BuildToPo

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

func (*DeviceRecordEntity) GetBaseEntity

func (e *DeviceRecordEntity) GetBaseEntity() *BaseEntity

func (*DeviceRecordEntity) Instance

func (e *DeviceRecordEntity) Instance() *DeviceRecordEntity

func (*DeviceRecordEntity) MakeServiceKey

func (e *DeviceRecordEntity) MakeServiceKey() string

func (*DeviceRecordEntity) MakeServiceKeyList

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

func (*DeviceRecordEntity) NewEntity

func (e *DeviceRecordEntity) NewEntity() IEntity

func (*DeviceRecordEntity) NewPo

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

func (*DeviceRecordEntity) TableName

func (e *DeviceRecordEntity) TableName() string

func (*DeviceRecordEntity) Type

func (e *DeviceRecordEntity) Type() string

type DeviceStatusEntity

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

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

func (*DeviceStatusEntity) BuildByJson

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

func (*DeviceStatusEntity) BuildByPo

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

func (*DeviceStatusEntity) BuildToJson

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

func (*DeviceStatusEntity) BuildToPo

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

func (*DeviceStatusEntity) GetBaseEntity

func (e *DeviceStatusEntity) GetBaseEntity() *BaseEntity

func (*DeviceStatusEntity) Instance

func (e *DeviceStatusEntity) Instance() *DeviceStatusEntity

func (*DeviceStatusEntity) MakeServiceKey

func (e *DeviceStatusEntity) MakeServiceKey() string

func (*DeviceStatusEntity) MakeServiceKeyList

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

func (*DeviceStatusEntity) NewEntity

func (e *DeviceStatusEntity) NewEntity() IEntity

func (*DeviceStatusEntity) NewPo

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

func (*DeviceStatusEntity) TableName

func (e *DeviceStatusEntity) TableName() string

func (*DeviceStatusEntity) Type

func (e *DeviceStatusEntity) Type() string

type DeviceValueEntity

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

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

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

func (*DeviceValueEntity) BuildByJson

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

func (*DeviceValueEntity) BuildByPo

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

func (*DeviceValueEntity) BuildToJson

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

func (*DeviceValueEntity) BuildToPo

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

func (*DeviceValueEntity) GetBaseEntity

func (e *DeviceValueEntity) GetBaseEntity() *BaseEntity

func (*DeviceValueEntity) Instance

func (e *DeviceValueEntity) Instance() *DeviceValueEntity

func (*DeviceValueEntity) MakeServiceKey

func (e *DeviceValueEntity) MakeServiceKey() string

func (*DeviceValueEntity) MakeServiceKeyList

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

func (*DeviceValueEntity) NewEntity

func (e *DeviceValueEntity) NewEntity() IEntity

func (*DeviceValueEntity) NewPo

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

func (*DeviceValueEntity) TableName

func (e *DeviceValueEntity) TableName() string

func (*DeviceValueEntity) Type

func (e *DeviceValueEntity) Type() string

type Factory

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

func (*Factory) NewEntity

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

func (*Factory) Register

func (e *Factory) Register(entity IEntity)

type IEntity

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

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

func (*OperateEntity) BuildByPo

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

func (*OperateEntity) BuildToJson

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

func (*OperateEntity) BuildToPo

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

func (*OperateEntity) GetBaseEntity

func (e *OperateEntity) GetBaseEntity() *BaseEntity

func (*OperateEntity) Instance

func (e *OperateEntity) Instance() *OperateEntity

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

func (e *OperateEntity) TableName() string

func (*OperateEntity) Type

func (e *OperateEntity) Type() string

type OperateMonitorTaskEntity

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

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

func (*OperateMonitorTaskEntity) BuildByPo

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

func (*OperateMonitorTaskEntity) BuildToJson

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

func (*OperateMonitorTaskEntity) BuildToPo

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

func (*OperateMonitorTaskEntity) GetBaseEntity

func (e *OperateMonitorTaskEntity) GetBaseEntity() *BaseEntity

func (*OperateMonitorTaskEntity) Instance

func (*OperateMonitorTaskEntity) MakeServiceKey

func (e *OperateMonitorTaskEntity) MakeServiceKey() string

func (*OperateMonitorTaskEntity) MakeServiceKeyList

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

func (*OperateMonitorTaskEntity) NewEntity

func (e *OperateMonitorTaskEntity) NewEntity() IEntity

func (*OperateMonitorTaskEntity) NewPo

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

func (*OperateMonitorTaskEntity) TableName

func (e *OperateMonitorTaskEntity) TableName() string

func (*OperateMonitorTaskEntity) Type

func (e *OperateMonitorTaskEntity) Type() string

type OperateRecordEntity

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

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

func (*OperateRecordEntity) BuildByPo

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

func (*OperateRecordEntity) BuildToJson

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

func (*OperateRecordEntity) BuildToPo

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

func (*OperateRecordEntity) GetBaseEntity

func (e *OperateRecordEntity) GetBaseEntity() *BaseEntity

func (*OperateRecordEntity) MakeServiceKey

func (e *OperateRecordEntity) MakeServiceKey() string

func (*OperateRecordEntity) MakeServiceKeyList

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

func (*OperateRecordEntity) NewEntity

func (e *OperateRecordEntity) NewEntity() IEntity

func (*OperateRecordEntity) NewPo

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

func (*OperateRecordEntity) TableName

func (e *OperateRecordEntity) TableName() string

func (*OperateRecordEntity) Type

func (e *OperateRecordEntity) Type() string

type UserEntity

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

	UserName   string // 设备厂商名称
	PassWord   string // 设备类型名
	UserType   string // 设备名称
	Role       string // 通道类型
	Permission string // 通道名称
	Menu       string // 配置参数
}

func (*UserEntity) BuildByJson

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

func (*UserEntity) BuildByPo

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

func (*UserEntity) BuildToJson

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

func (*UserEntity) BuildToPo

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

func (*UserEntity) GetBaseEntity

func (e *UserEntity) GetBaseEntity() *BaseEntity

func (*UserEntity) Instance

func (e *UserEntity) Instance() *UserEntity

func (*UserEntity) MakeServiceKey

func (e *UserEntity) MakeServiceKey() string

func (*UserEntity) MakeServiceKeyList

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

func (*UserEntity) NewEntity

func (e *UserEntity) NewEntity() IEntity

func (*UserEntity) NewPo

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

func (*UserEntity) TableName

func (e *UserEntity) TableName() string

func (*UserEntity) Type

func (e *UserEntity) Type() string

type UserMenuEntity

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

	Name   string        // 模板名称
	Params []interface{} // 设备ID
}

func (*UserMenuEntity) BuildByJson

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

func (*UserMenuEntity) BuildByPo

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

func (*UserMenuEntity) BuildToJson

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

func (*UserMenuEntity) BuildToPo

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

func (*UserMenuEntity) GetBaseEntity

func (e *UserMenuEntity) GetBaseEntity() *BaseEntity

func (*UserMenuEntity) Instance

func (e *UserMenuEntity) Instance() *UserMenuEntity

func (*UserMenuEntity) MakeServiceKey

func (e *UserMenuEntity) MakeServiceKey() string

func (*UserMenuEntity) MakeServiceKeyList

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

func (*UserMenuEntity) NewEntity

func (e *UserMenuEntity) NewEntity() IEntity

func (*UserMenuEntity) NewPo

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

func (*UserMenuEntity) TableName

func (e *UserMenuEntity) TableName() string

func (*UserMenuEntity) Type

func (e *UserMenuEntity) Type() string

type UserPermissionEntity

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

	Name   string        // 模板名称
	Params []interface{} // 设备ID
}

func (*UserPermissionEntity) BuildByJson

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

func (*UserPermissionEntity) BuildByPo

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

func (*UserPermissionEntity) BuildToJson

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

func (*UserPermissionEntity) BuildToPo

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

func (*UserPermissionEntity) GetBaseEntity

func (e *UserPermissionEntity) GetBaseEntity() *BaseEntity

func (*UserPermissionEntity) Instance

func (*UserPermissionEntity) MakeServiceKey

func (e *UserPermissionEntity) MakeServiceKey() string

func (*UserPermissionEntity) MakeServiceKeyList

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

func (*UserPermissionEntity) NewEntity

func (e *UserPermissionEntity) NewEntity() IEntity

func (*UserPermissionEntity) NewPo

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

func (*UserPermissionEntity) TableName

func (e *UserPermissionEntity) TableName() string

func (*UserPermissionEntity) Type

func (e *UserPermissionEntity) Type() string

type UserRoleEntity

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

	Name   string        // 模板名称
	Params []interface{} // 设备ID
}

func (*UserRoleEntity) BuildByJson

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

func (*UserRoleEntity) BuildByPo

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

func (*UserRoleEntity) BuildToJson

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

func (*UserRoleEntity) BuildToPo

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

func (*UserRoleEntity) GetBaseEntity

func (e *UserRoleEntity) GetBaseEntity() *BaseEntity

func (*UserRoleEntity) Instance

func (e *UserRoleEntity) Instance() *UserRoleEntity

func (*UserRoleEntity) MakeServiceKey

func (e *UserRoleEntity) MakeServiceKey() string

func (*UserRoleEntity) MakeServiceKeyList

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

func (*UserRoleEntity) NewEntity

func (e *UserRoleEntity) NewEntity() IEntity

func (*UserRoleEntity) NewPo

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

func (*UserRoleEntity) TableName

func (e *UserRoleEntity) TableName() string

func (*UserRoleEntity) Type

func (e *UserRoleEntity) Type() string

Jump to

Keyboard shortcuts

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