Documentation
¶
Index ¶
- Variables
- func BuildMap(entity IEntity) map[string]interface{}
- func BuildMapList(entityList []IEntity) []map[string]interface{}
- func BuildPoList(entityList []IEntity) []map[string]interface{}
- func GetPoReflectType(entityType string) (string, reflect.Type, error)
- func MakeServiceKey(slic []string) string
- func SortEntityList(entityList []IEntity)
- func SortMapList(mapList []map[string]interface{})
- type BaseEntity
- type ChannelEntity
- func (e *ChannelEntity) BuildByJson(jsn *string) error
- func (e *ChannelEntity) BuildByPo(pop interface{})
- func (e *ChannelEntity) BuildToJson() (string, error)
- func (e *ChannelEntity) BuildToPo() interface{}
- func (e *ChannelEntity) GetBaseEntity() *BaseEntity
- func (e *ChannelEntity) Instance() *ChannelEntity
- func (e *ChannelEntity) MakeServiceKey() string
- func (e *ChannelEntity) MakeServiceKeyList() []string
- func (e *ChannelEntity) NewEntity() IEntity
- func (e *ChannelEntity) NewPo() interface{}
- func (e *ChannelEntity) TableName() string
- func (e *ChannelEntity) Type() string
- type ChannelStatusEntity
- func (e *ChannelStatusEntity) BuildByJson(jsn *string) error
- func (e *ChannelStatusEntity) BuildByPo(pop interface{})
- func (e *ChannelStatusEntity) BuildToJson() (string, error)
- func (e *ChannelStatusEntity) BuildToPo() interface{}
- func (e *ChannelStatusEntity) GetBaseEntity() *BaseEntity
- func (e *ChannelStatusEntity) Instance() *ChannelStatusEntity
- func (e *ChannelStatusEntity) MakeServiceKey() string
- func (e *ChannelStatusEntity) MakeServiceKeyList() []string
- func (e *ChannelStatusEntity) NewEntity() IEntity
- func (e *ChannelStatusEntity) NewPo() interface{}
- func (e *ChannelStatusEntity) TableName() string
- func (e *ChannelStatusEntity) Type() string
- type ConfigEntity
- func (e *ConfigEntity) BuildByJson(jsn *string) error
- func (e *ConfigEntity) BuildByPo(pop interface{})
- func (e *ConfigEntity) BuildToJson() (string, error)
- func (e *ConfigEntity) BuildToPo() interface{}
- func (e *ConfigEntity) GetBaseEntity() *BaseEntity
- func (e *ConfigEntity) Instance() *ConfigEntity
- func (e *ConfigEntity) MakeServiceKey() string
- func (e *ConfigEntity) MakeServiceKeyList() []string
- func (e *ConfigEntity) NewEntity() IEntity
- func (e *ConfigEntity) NewPo() interface{}
- func (e *ConfigEntity) TableName() string
- func (e *ConfigEntity) Type() string
- type DeviceEntity
- func (e *DeviceEntity) BuildByJson(jsn *string) error
- func (e *DeviceEntity) BuildByPo(pop interface{})
- func (e *DeviceEntity) BuildToJson() (string, error)
- func (e *DeviceEntity) BuildToPo() interface{}
- func (e *DeviceEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceEntity) Instance() *DeviceEntity
- func (e *DeviceEntity) MakeServiceKey() string
- func (e *DeviceEntity) MakeServiceKeyList() []string
- func (e *DeviceEntity) NewEntity() IEntity
- func (e *DeviceEntity) NewPo() interface{}
- func (e *DeviceEntity) TableName() string
- func (e *DeviceEntity) Type() string
- type DeviceHistoryEntity
- func (e *DeviceHistoryEntity) BuildByJson(jsn *string) error
- func (e *DeviceHistoryEntity) BuildByPo(pop interface{})
- func (e *DeviceHistoryEntity) BuildToJson() (string, error)
- func (e *DeviceHistoryEntity) BuildToPo() interface{}
- func (e *DeviceHistoryEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceHistoryEntity) Instance() *DeviceHistoryEntity
- func (e *DeviceHistoryEntity) IsValue(data interface{}) bool
- func (e *DeviceHistoryEntity) MakeServiceKey() string
- func (e *DeviceHistoryEntity) MakeServiceKeyList() []string
- func (e *DeviceHistoryEntity) NewEntity() IEntity
- func (e *DeviceHistoryEntity) NewPo() interface{}
- func (e *DeviceHistoryEntity) TableName() string
- func (e *DeviceHistoryEntity) Type() string
- type DeviceMapperEntity
- func (e *DeviceMapperEntity) BindEntity(other *DeviceObjInfEntity)
- func (e *DeviceMapperEntity) BuildByJson(jsn *string) error
- func (e *DeviceMapperEntity) BuildByPo(pop interface{})
- func (e *DeviceMapperEntity) BuildToJson() (string, error)
- func (e *DeviceMapperEntity) BuildToPo() interface{}
- func (e *DeviceMapperEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceMapperEntity) Instance() *DeviceMapperEntity
- func (e *DeviceMapperEntity) MakeServiceKey() string
- func (e *DeviceMapperEntity) MakeServiceKeyList() []string
- func (e *DeviceMapperEntity) NewEntity() IEntity
- func (e *DeviceMapperEntity) NewPo() interface{}
- func (e *DeviceMapperEntity) TableName() string
- func (e *DeviceMapperEntity) Type() string
- type DeviceModelEntity
- func (e *DeviceModelEntity) BuildByJson(jsn *string) error
- func (e *DeviceModelEntity) BuildByPo(pop interface{})
- func (e *DeviceModelEntity) BuildToJson() (string, error)
- func (e *DeviceModelEntity) BuildToPo() interface{}
- func (e *DeviceModelEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceModelEntity) Instance() *DeviceModelEntity
- func (e *DeviceModelEntity) MakeServiceKey() string
- func (e *DeviceModelEntity) MakeServiceKeyList() []string
- func (e *DeviceModelEntity) NewEntity() IEntity
- func (e *DeviceModelEntity) NewPo() interface{}
- func (e *DeviceModelEntity) TableName() string
- func (e *DeviceModelEntity) Type() string
- type DeviceObjInfEntity
- func (e *DeviceObjInfEntity) BuildByJson(jsn *string) error
- func (e *DeviceObjInfEntity) BuildByPo(pop interface{})
- func (e *DeviceObjInfEntity) BuildToJson() (string, error)
- func (e *DeviceObjInfEntity) BuildToPo() interface{}
- func (e *DeviceObjInfEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceObjInfEntity) Instance() *DeviceObjInfEntity
- func (e *DeviceObjInfEntity) MakeServiceKey() string
- func (e *DeviceObjInfEntity) MakeServiceKeyList() []string
- func (e *DeviceObjInfEntity) NewEntity() IEntity
- func (e *DeviceObjInfEntity) NewPo() interface{}
- func (e *DeviceObjInfEntity) TableName() string
- func (e *DeviceObjInfEntity) Type() string
- type DeviceObjectEntity
- func (e *DeviceObjectEntity) BuildByJson(jsn *string) error
- func (e *DeviceObjectEntity) BuildByPo(pop interface{})
- func (e *DeviceObjectEntity) BuildToJson() (string, error)
- func (e *DeviceObjectEntity) BuildToPo() interface{}
- func (e *DeviceObjectEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceObjectEntity) Instance() *DeviceObjectEntity
- func (e *DeviceObjectEntity) MakeServiceKey() string
- func (e *DeviceObjectEntity) MakeServiceKeyList() []string
- func (e *DeviceObjectEntity) NewEntity() IEntity
- func (e *DeviceObjectEntity) NewPo() interface{}
- func (e *DeviceObjectEntity) TableName() string
- func (e *DeviceObjectEntity) Type() string
- type DeviceObjectValue
- type DeviceRecordEntity
- func (e *DeviceRecordEntity) BuildByJson(jsn *string) error
- func (e *DeviceRecordEntity) BuildByPo(pop interface{})
- func (e *DeviceRecordEntity) BuildToJson() (string, error)
- func (e *DeviceRecordEntity) BuildToPo() interface{}
- func (e *DeviceRecordEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceRecordEntity) Instance() *DeviceRecordEntity
- func (e *DeviceRecordEntity) MakeServiceKey() string
- func (e *DeviceRecordEntity) MakeServiceKeyList() []string
- func (e *DeviceRecordEntity) NewEntity() IEntity
- func (e *DeviceRecordEntity) NewPo() interface{}
- func (e *DeviceRecordEntity) TableName() string
- func (e *DeviceRecordEntity) Type() string
- type DeviceStatusEntity
- func (e *DeviceStatusEntity) BuildByJson(jsn *string) error
- func (e *DeviceStatusEntity) BuildByPo(pop interface{})
- func (e *DeviceStatusEntity) BuildToJson() (string, error)
- func (e *DeviceStatusEntity) BuildToPo() interface{}
- func (e *DeviceStatusEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceStatusEntity) Instance() *DeviceStatusEntity
- func (e *DeviceStatusEntity) MakeServiceKey() string
- func (e *DeviceStatusEntity) MakeServiceKeyList() []string
- func (e *DeviceStatusEntity) NewEntity() IEntity
- func (e *DeviceStatusEntity) NewPo() interface{}
- func (e *DeviceStatusEntity) TableName() string
- func (e *DeviceStatusEntity) Type() string
- type DeviceTemplateEntity
- func (e *DeviceTemplateEntity) BuildByJson(jsn *string) error
- func (e *DeviceTemplateEntity) BuildByPo(pop interface{})
- func (e *DeviceTemplateEntity) BuildToJson() (string, error)
- func (e *DeviceTemplateEntity) BuildToPo() interface{}
- func (e *DeviceTemplateEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceTemplateEntity) Instance() *DeviceTemplateEntity
- func (e *DeviceTemplateEntity) MakeServiceKey() string
- func (e *DeviceTemplateEntity) MakeServiceKeyList() []string
- func (e *DeviceTemplateEntity) NewEntity() IEntity
- func (e *DeviceTemplateEntity) NewPo() interface{}
- func (e *DeviceTemplateEntity) TableName() string
- func (e *DeviceTemplateEntity) Type() string
- type DeviceValueEntity
- func (e *DeviceValueEntity) BuildByJson(jsn *string) error
- func (e *DeviceValueEntity) BuildByPo(pop interface{})
- func (e *DeviceValueEntity) BuildToJson() (string, error)
- func (e *DeviceValueEntity) BuildToPo() interface{}
- func (e *DeviceValueEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceValueEntity) Instance() *DeviceValueEntity
- func (e *DeviceValueEntity) MakeServiceKey() string
- func (e *DeviceValueEntity) MakeServiceKeyList() []string
- func (e *DeviceValueEntity) NewEntity() IEntity
- func (e *DeviceValueEntity) NewPo() interface{}
- func (e *DeviceValueEntity) TableName() string
- func (e *DeviceValueEntity) Type() string
- type DeviceValueExEntity
- func (e *DeviceValueExEntity) BuildByJson(jsn *string) error
- func (e *DeviceValueExEntity) BuildByPo(pop interface{})
- func (e *DeviceValueExEntity) BuildToJson() (string, error)
- func (e *DeviceValueExEntity) BuildToPo() interface{}
- func (e *DeviceValueExEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceValueExEntity) Instance() *DeviceValueExEntity
- func (e *DeviceValueExEntity) MakeServiceKey() string
- func (e *DeviceValueExEntity) MakeServiceKeyList() []string
- func (e *DeviceValueExEntity) NewEntity() IEntity
- func (e *DeviceValueExEntity) NewPo() interface{}
- func (e *DeviceValueExEntity) TableName() string
- func (e *DeviceValueExEntity) Type() string
- type DeviceValueExTaskEntity
- func (e *DeviceValueExTaskEntity) BuildByJson(jsn *string) error
- func (e *DeviceValueExTaskEntity) BuildByPo(pop interface{})
- func (e *DeviceValueExTaskEntity) BuildToJson() (string, error)
- func (e *DeviceValueExTaskEntity) BuildToPo() interface{}
- func (e *DeviceValueExTaskEntity) GetBaseEntity() *BaseEntity
- func (e *DeviceValueExTaskEntity) Instance() *DeviceValueExTaskEntity
- func (e *DeviceValueExTaskEntity) MakeServiceKey() string
- func (e *DeviceValueExTaskEntity) MakeServiceKeyList() []string
- func (e *DeviceValueExTaskEntity) NewEntity() IEntity
- func (e *DeviceValueExTaskEntity) NewPo() interface{}
- func (e *DeviceValueExTaskEntity) TableName() string
- func (e *DeviceValueExTaskEntity) Type() string
- type ExtendConfigEntity
- func (e *ExtendConfigEntity) BuildByJson(jsn *string) error
- func (e *ExtendConfigEntity) BuildByPo(pop interface{})
- func (e *ExtendConfigEntity) BuildToJson() (string, error)
- func (e *ExtendConfigEntity) BuildToPo() interface{}
- func (e *ExtendConfigEntity) GetBaseEntity() *BaseEntity
- func (e *ExtendConfigEntity) Instance() *ExtendConfigEntity
- func (e *ExtendConfigEntity) MakeServiceKey() string
- func (e *ExtendConfigEntity) MakeServiceKeyList() []string
- func (e *ExtendConfigEntity) NewEntity() IEntity
- func (e *ExtendConfigEntity) NewPo() interface{}
- func (e *ExtendConfigEntity) TableName() string
- func (e *ExtendConfigEntity) Type() string
- type ExtendField
- type ExtendParam
- type Factory
- type IEntity
- type IotDeviceModelEntity
- func (e *IotDeviceModelEntity) BuildByJson(jsn *string) error
- func (e *IotDeviceModelEntity) BuildByPo(pop interface{})
- func (e *IotDeviceModelEntity) BuildToJson() (string, error)
- func (e *IotDeviceModelEntity) BuildToPo() interface{}
- func (e *IotDeviceModelEntity) GetBaseEntity() *BaseEntity
- func (e *IotDeviceModelEntity) Instance() *IotDeviceModelEntity
- func (e *IotDeviceModelEntity) MakeServiceKey() string
- func (e *IotDeviceModelEntity) MakeServiceKeyList() []string
- func (e *IotDeviceModelEntity) NewEntity() IEntity
- func (e *IotDeviceModelEntity) NewPo() interface{}
- func (e *IotDeviceModelEntity) TableName() string
- func (e *IotDeviceModelEntity) Type() string
- type IotTemplateEntity
- func (e *IotTemplateEntity) BuildByJson(jsn *string) error
- func (e *IotTemplateEntity) BuildByPo(pop interface{})
- func (e *IotTemplateEntity) BuildToJson() (string, error)
- func (e *IotTemplateEntity) BuildToPo() interface{}
- func (e *IotTemplateEntity) GetBaseEntity() *BaseEntity
- func (e *IotTemplateEntity) Instance() *IotTemplateEntity
- func (e *IotTemplateEntity) MakeServiceKey() string
- func (e *IotTemplateEntity) MakeServiceKeyList() []string
- func (e *IotTemplateEntity) NewEntity() IEntity
- func (e *IotTemplateEntity) NewPo() interface{}
- func (e *IotTemplateEntity) TableName() string
- func (e *IotTemplateEntity) Type() string
- type OperateChannelTaskEntity
- func (e *OperateChannelTaskEntity) BuildByJson(jsn *string) error
- func (e *OperateChannelTaskEntity) BuildByPo(pop interface{})
- func (e *OperateChannelTaskEntity) BuildToJson() (string, error)
- func (e *OperateChannelTaskEntity) BuildToPo() interface{}
- func (e *OperateChannelTaskEntity) GetBaseEntity() *BaseEntity
- func (e *OperateChannelTaskEntity) Instance() *OperateChannelTaskEntity
- func (e *OperateChannelTaskEntity) MakeServiceKey() string
- func (e *OperateChannelTaskEntity) MakeServiceKeyList() []string
- func (e *OperateChannelTaskEntity) NewEntity() IEntity
- func (e *OperateChannelTaskEntity) NewPo() interface{}
- func (e *OperateChannelTaskEntity) TableName() string
- func (e *OperateChannelTaskEntity) Type() string
- type OperateEntity
- func (e *OperateEntity) BindEntity(other *OperateMethodEntity)
- func (e *OperateEntity) BuildByJson(jsn *string) error
- func (e *OperateEntity) BuildByPo(pop interface{})
- func (e *OperateEntity) BuildToJson() (string, error)
- func (e *OperateEntity) BuildToPo() interface{}
- func (e *OperateEntity) GetBaseEntity() *BaseEntity
- func (e *OperateEntity) Instance() *OperateEntity
- func (e *OperateEntity) MakeServiceKey() string
- func (e *OperateEntity) MakeServiceKeyList() []string
- func (e *OperateEntity) NewEntity() IEntity
- func (e *OperateEntity) NewPo() interface{}
- func (e *OperateEntity) TableName() string
- func (e *OperateEntity) Type() string
- type OperateManualTaskEntity
- func (e *OperateManualTaskEntity) BuildByJson(jsn *string) error
- func (e *OperateManualTaskEntity) BuildByPo(pop interface{})
- func (e *OperateManualTaskEntity) BuildToJson() (string, error)
- func (e *OperateManualTaskEntity) BuildToPo() interface{}
- func (e *OperateManualTaskEntity) GetBaseEntity() *BaseEntity
- func (e *OperateManualTaskEntity) Instance() *OperateManualTaskEntity
- func (e *OperateManualTaskEntity) MakeServiceKey() string
- func (e *OperateManualTaskEntity) MakeServiceKeyList() []string
- func (e *OperateManualTaskEntity) NewEntity() IEntity
- func (e *OperateManualTaskEntity) NewPo() interface{}
- func (e *OperateManualTaskEntity) TableName() string
- func (e *OperateManualTaskEntity) Type() string
- type OperateMethodEntity
- func (e *OperateMethodEntity) BuildByJson(jsn *string) error
- func (e *OperateMethodEntity) BuildByPo(pop interface{})
- func (e *OperateMethodEntity) BuildToJson() (string, error)
- func (e *OperateMethodEntity) BuildToPo() interface{}
- func (e *OperateMethodEntity) GetBaseEntity() *BaseEntity
- func (e *OperateMethodEntity) Instance() *OperateMethodEntity
- func (e *OperateMethodEntity) MakeServiceKey() string
- func (e *OperateMethodEntity) MakeServiceKeyList() []string
- func (e *OperateMethodEntity) NewEntity() IEntity
- func (e *OperateMethodEntity) NewPo() interface{}
- func (e *OperateMethodEntity) TableName() string
- func (e *OperateMethodEntity) Type() string
- type OperateMonitorTaskEntity
- func (e *OperateMonitorTaskEntity) BuildByJson(jsn *string) error
- func (e *OperateMonitorTaskEntity) BuildByPo(pop interface{})
- func (e *OperateMonitorTaskEntity) BuildToJson() (string, error)
- func (e *OperateMonitorTaskEntity) BuildToPo() interface{}
- func (e *OperateMonitorTaskEntity) GetBaseEntity() *BaseEntity
- func (e *OperateMonitorTaskEntity) Instance() *OperateMonitorTaskEntity
- func (e *OperateMonitorTaskEntity) MakeServiceKey() string
- func (e *OperateMonitorTaskEntity) MakeServiceKeyList() []string
- func (e *OperateMonitorTaskEntity) NewEntity() IEntity
- func (e *OperateMonitorTaskEntity) NewPo() interface{}
- func (e *OperateMonitorTaskEntity) TableName() string
- func (e *OperateMonitorTaskEntity) Type() string
- type OperateRecordEntity
- func (e *OperateRecordEntity) BuildByJson(jsn *string) error
- func (e *OperateRecordEntity) BuildByPo(pop interface{})
- func (e *OperateRecordEntity) BuildToJson() (string, error)
- func (e *OperateRecordEntity) BuildToPo() interface{}
- func (e *OperateRecordEntity) GetBaseEntity() *BaseEntity
- func (e *OperateRecordEntity) Instance() *OperateRecordEntity
- func (e *OperateRecordEntity) MakeServiceKey() string
- func (e *OperateRecordEntity) MakeServiceKeyList() []string
- func (e *OperateRecordEntity) NewEntity() IEntity
- func (e *OperateRecordEntity) NewPo() interface{}
- func (e *OperateRecordEntity) TableName() string
- func (e *OperateRecordEntity) Type() string
- type RepoCompEntity
- func (e *RepoCompEntity) BuildByJson(jsn *string) error
- func (e *RepoCompEntity) BuildByPo(pop interface{})
- func (e *RepoCompEntity) BuildToJson() (string, error)
- func (e *RepoCompEntity) BuildToPo() interface{}
- func (e *RepoCompEntity) GetBaseEntity() *BaseEntity
- func (e *RepoCompEntity) Instance() *RepoCompEntity
- func (e *RepoCompEntity) MakeServiceKey() string
- func (e *RepoCompEntity) MakeServiceKeyList() []string
- func (e *RepoCompEntity) NewEntity() IEntity
- func (e *RepoCompEntity) NewPo() interface{}
- func (e *RepoCompEntity) TableName() string
- func (e *RepoCompEntity) Type() string
- type UserEntity
- func (e *UserEntity) BuildByJson(jsn *string) error
- func (e *UserEntity) BuildByPo(pop interface{})
- func (e *UserEntity) BuildToJson() (string, error)
- func (e *UserEntity) BuildToPo() interface{}
- func (e *UserEntity) GetBaseEntity() *BaseEntity
- func (e *UserEntity) Instance() *UserEntity
- func (e *UserEntity) MakeServiceKey() string
- func (e *UserEntity) MakeServiceKeyList() []string
- func (e *UserEntity) NewEntity() IEntity
- func (e *UserEntity) NewPo() interface{}
- func (e *UserEntity) TableName() string
- func (e *UserEntity) Type() string
- type UserMenuEntity
- func (e *UserMenuEntity) BuildByJson(jsn *string) error
- func (e *UserMenuEntity) BuildByPo(pop interface{})
- func (e *UserMenuEntity) BuildToJson() (string, error)
- func (e *UserMenuEntity) BuildToPo() interface{}
- func (e *UserMenuEntity) GetBaseEntity() *BaseEntity
- func (e *UserMenuEntity) Instance() *UserMenuEntity
- func (e *UserMenuEntity) MakeServiceKey() string
- func (e *UserMenuEntity) MakeServiceKeyList() []string
- func (e *UserMenuEntity) NewEntity() IEntity
- func (e *UserMenuEntity) NewPo() interface{}
- func (e *UserMenuEntity) TableName() string
- func (e *UserMenuEntity) Type() string
- type UserPermissionEntity
- func (e *UserPermissionEntity) BuildByJson(jsn *string) error
- func (e *UserPermissionEntity) BuildByPo(pop interface{})
- func (e *UserPermissionEntity) BuildToJson() (string, error)
- func (e *UserPermissionEntity) BuildToPo() interface{}
- func (e *UserPermissionEntity) GetBaseEntity() *BaseEntity
- func (e *UserPermissionEntity) Instance() *UserPermissionEntity
- func (e *UserPermissionEntity) MakeServiceKey() string
- func (e *UserPermissionEntity) MakeServiceKeyList() []string
- func (e *UserPermissionEntity) NewEntity() IEntity
- func (e *UserPermissionEntity) NewPo() interface{}
- func (e *UserPermissionEntity) TableName() string
- func (e *UserPermissionEntity) Type() string
- type UserRoleEntity
- func (e *UserRoleEntity) BuildByJson(jsn *string) error
- func (e *UserRoleEntity) BuildByPo(pop interface{})
- func (e *UserRoleEntity) BuildToJson() (string, error)
- func (e *UserRoleEntity) BuildToPo() interface{}
- func (e *UserRoleEntity) GetBaseEntity() *BaseEntity
- func (e *UserRoleEntity) Instance() *UserRoleEntity
- func (e *UserRoleEntity) MakeServiceKey() string
- func (e *UserRoleEntity) MakeServiceKeyList() []string
- func (e *UserRoleEntity) NewEntity() IEntity
- func (e *UserRoleEntity) NewPo() interface{}
- func (e *UserRoleEntity) TableName() string
- func (e *UserRoleEntity) Type() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Type entityType IFactory *Factory )
全局接口
Functions ¶
func BuildMapList ¶ added in v1.0.1
func BuildPoList ¶ added in v1.0.1
func MakeServiceKey ¶
MakeServiceKey Java的编码格式范例:"[mqtt-client, 范例:MQTT客户端]",注意,它带""的字符串
func SortEntityList ¶ added in v1.0.1
func SortEntityList(entityList []IEntity)
func SortMapList ¶ added in v1.0.1
func SortMapList(mapList []map[string]interface{})
Types ¶
type BaseEntity ¶
基础信息
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 (e *ChannelStatusEntity) Instance() *ChannelStatusEntity
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 (e *DeviceHistoryEntity) Instance() *DeviceHistoryEntity
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) BindEntity ¶ added in v1.0.1
func (e *DeviceMapperEntity) BindEntity(other *DeviceObjInfEntity)
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 DeviceTemplateEntity ¶ added in v1.0.1
type DeviceTemplateEntity struct { BaseEntity *BaseEntity // 基本信息 Manufacturer string // 设备厂商名称 DeviceType string // 设备类型名 SubsetName string // 子集名称 TemplateType string // 模板类型 TemplateName string // 模板名称 TemplateParam map[string]interface{} // 配置参数 ExtendParam map[string]interface{} // 扩展参数 }
func (*DeviceTemplateEntity) BuildByJson ¶ added in v1.0.1
func (e *DeviceTemplateEntity) BuildByJson(jsn *string) error
func (*DeviceTemplateEntity) BuildByPo ¶ added in v1.0.1
func (e *DeviceTemplateEntity) BuildByPo(pop interface{})
func (*DeviceTemplateEntity) BuildToJson ¶ added in v1.0.1
func (e *DeviceTemplateEntity) BuildToJson() (string, error)
func (*DeviceTemplateEntity) BuildToPo ¶ added in v1.0.1
func (e *DeviceTemplateEntity) BuildToPo() interface{}
func (*DeviceTemplateEntity) GetBaseEntity ¶ added in v1.0.1
func (e *DeviceTemplateEntity) GetBaseEntity() *BaseEntity
func (*DeviceTemplateEntity) Instance ¶ added in v1.0.1
func (e *DeviceTemplateEntity) Instance() *DeviceTemplateEntity
func (*DeviceTemplateEntity) MakeServiceKey ¶ added in v1.0.1
func (e *DeviceTemplateEntity) MakeServiceKey() string
func (*DeviceTemplateEntity) MakeServiceKeyList ¶ added in v1.0.1
func (e *DeviceTemplateEntity) MakeServiceKeyList() []string
func (*DeviceTemplateEntity) NewEntity ¶ added in v1.0.1
func (e *DeviceTemplateEntity) NewEntity() IEntity
func (*DeviceTemplateEntity) NewPo ¶ added in v1.0.1
func (e *DeviceTemplateEntity) NewPo() interface{}
func (*DeviceTemplateEntity) TableName ¶ added in v1.0.1
func (e *DeviceTemplateEntity) TableName() string
func (*DeviceTemplateEntity) Type ¶ added in v1.0.1
func (e *DeviceTemplateEntity) 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 DeviceValueExEntity ¶ added in v1.0.1
type DeviceValueExEntity struct { BaseEntity *BaseEntity // 基本信息 Manufacturer string // 设备厂商名称 DeviceType string // 设备类型名 DeviceName string // 设备名称 Params map[string]*DeviceObjectValue // 配置参数 }
func (*DeviceValueExEntity) BuildByJson ¶ added in v1.0.1
func (e *DeviceValueExEntity) BuildByJson(jsn *string) error
func (*DeviceValueExEntity) BuildByPo ¶ added in v1.0.1
func (e *DeviceValueExEntity) BuildByPo(pop interface{})
func (*DeviceValueExEntity) BuildToJson ¶ added in v1.0.1
func (e *DeviceValueExEntity) BuildToJson() (string, error)
func (*DeviceValueExEntity) BuildToPo ¶ added in v1.0.1
func (e *DeviceValueExEntity) BuildToPo() interface{}
func (*DeviceValueExEntity) GetBaseEntity ¶ added in v1.0.1
func (e *DeviceValueExEntity) GetBaseEntity() *BaseEntity
func (*DeviceValueExEntity) Instance ¶ added in v1.0.1
func (e *DeviceValueExEntity) Instance() *DeviceValueExEntity
func (*DeviceValueExEntity) MakeServiceKey ¶ added in v1.0.1
func (e *DeviceValueExEntity) MakeServiceKey() string
func (*DeviceValueExEntity) MakeServiceKeyList ¶ added in v1.0.1
func (e *DeviceValueExEntity) MakeServiceKeyList() []string
func (*DeviceValueExEntity) NewEntity ¶ added in v1.0.1
func (e *DeviceValueExEntity) NewEntity() IEntity
func (*DeviceValueExEntity) NewPo ¶ added in v1.0.1
func (e *DeviceValueExEntity) NewPo() interface{}
func (*DeviceValueExEntity) TableName ¶ added in v1.0.1
func (e *DeviceValueExEntity) TableName() string
func (*DeviceValueExEntity) Type ¶ added in v1.0.1
func (e *DeviceValueExEntity) Type() string
type DeviceValueExTaskEntity ¶ added in v1.0.1
type DeviceValueExTaskEntity struct { BaseEntity *BaseEntity // 基本信息 TaskName string // 模板名称 TaskParam map[string]interface{} // 模板参数 }
func (*DeviceValueExTaskEntity) BuildByJson ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) BuildByJson(jsn *string) error
func (*DeviceValueExTaskEntity) BuildByPo ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) BuildByPo(pop interface{})
func (*DeviceValueExTaskEntity) BuildToJson ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) BuildToJson() (string, error)
func (*DeviceValueExTaskEntity) BuildToPo ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) BuildToPo() interface{}
func (*DeviceValueExTaskEntity) GetBaseEntity ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) GetBaseEntity() *BaseEntity
func (*DeviceValueExTaskEntity) Instance ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) Instance() *DeviceValueExTaskEntity
func (*DeviceValueExTaskEntity) MakeServiceKey ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) MakeServiceKey() string
func (*DeviceValueExTaskEntity) MakeServiceKeyList ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) MakeServiceKeyList() []string
func (*DeviceValueExTaskEntity) NewEntity ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) NewEntity() IEntity
func (*DeviceValueExTaskEntity) NewPo ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) NewPo() interface{}
func (*DeviceValueExTaskEntity) TableName ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) TableName() string
func (*DeviceValueExTaskEntity) Type ¶ added in v1.0.1
func (e *DeviceValueExTaskEntity) Type() string
type ExtendConfigEntity ¶ added in v1.0.1
type ExtendConfigEntity struct { BaseEntity *BaseEntity // 基本信息 ExtendName string // 模板名称 ExtendType string // 设备厂商名称 ExtendParam map[string]interface{} // 模板参数 }
func (*ExtendConfigEntity) BuildByJson ¶ added in v1.0.1
func (e *ExtendConfigEntity) BuildByJson(jsn *string) error
func (*ExtendConfigEntity) BuildByPo ¶ added in v1.0.1
func (e *ExtendConfigEntity) BuildByPo(pop interface{})
func (*ExtendConfigEntity) BuildToJson ¶ added in v1.0.1
func (e *ExtendConfigEntity) BuildToJson() (string, error)
func (*ExtendConfigEntity) BuildToPo ¶ added in v1.0.1
func (e *ExtendConfigEntity) BuildToPo() interface{}
func (*ExtendConfigEntity) GetBaseEntity ¶ added in v1.0.1
func (e *ExtendConfigEntity) GetBaseEntity() *BaseEntity
func (*ExtendConfigEntity) Instance ¶ added in v1.0.1
func (e *ExtendConfigEntity) Instance() *ExtendConfigEntity
func (*ExtendConfigEntity) MakeServiceKey ¶ added in v1.0.1
func (e *ExtendConfigEntity) MakeServiceKey() string
func (*ExtendConfigEntity) MakeServiceKeyList ¶ added in v1.0.1
func (e *ExtendConfigEntity) MakeServiceKeyList() []string
func (*ExtendConfigEntity) NewEntity ¶ added in v1.0.1
func (e *ExtendConfigEntity) NewEntity() IEntity
func (*ExtendConfigEntity) NewPo ¶ added in v1.0.1
func (e *ExtendConfigEntity) NewPo() interface{}
func (*ExtendConfigEntity) TableName ¶ added in v1.0.1
func (e *ExtendConfigEntity) TableName() string
func (*ExtendConfigEntity) Type ¶ added in v1.0.1
func (e *ExtendConfigEntity) Type() string
type ExtendField ¶ added in v1.0.1
type ExtendField struct { FieldName string `json:"fieldName"` DataType string `json:"dataType"` DefaultValue interface{} `json:"defaultValue"` }
ExtendField 私有类型
type ExtendParam ¶ added in v1.0.1
type ExtendParam struct { Binds []interface{} `json:"binds"` Fields []ExtendField `json:"fields"` }
ExtendParam 私有类型
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 定义接口
type IotDeviceModelEntity ¶ added in v1.0.1
type IotDeviceModelEntity struct { BaseEntity *BaseEntity // 基本信息 ModelName string // 设备厂商名称 ModelType string // 设备类型名 Provider string // 设备名称 ServiceParam map[string]interface{} // 配置参数 ModelSchema map[string]interface{} // 扩展参数 }
func (*IotDeviceModelEntity) BuildByJson ¶ added in v1.0.1
func (e *IotDeviceModelEntity) BuildByJson(jsn *string) error
func (*IotDeviceModelEntity) BuildByPo ¶ added in v1.0.1
func (e *IotDeviceModelEntity) BuildByPo(pop interface{})
func (*IotDeviceModelEntity) BuildToJson ¶ added in v1.0.1
func (e *IotDeviceModelEntity) BuildToJson() (string, error)
func (*IotDeviceModelEntity) BuildToPo ¶ added in v1.0.1
func (e *IotDeviceModelEntity) BuildToPo() interface{}
func (*IotDeviceModelEntity) GetBaseEntity ¶ added in v1.0.1
func (e *IotDeviceModelEntity) GetBaseEntity() *BaseEntity
func (*IotDeviceModelEntity) Instance ¶ added in v1.0.1
func (e *IotDeviceModelEntity) Instance() *IotDeviceModelEntity
func (*IotDeviceModelEntity) MakeServiceKey ¶ added in v1.0.1
func (e *IotDeviceModelEntity) MakeServiceKey() string
func (*IotDeviceModelEntity) MakeServiceKeyList ¶ added in v1.0.1
func (e *IotDeviceModelEntity) MakeServiceKeyList() []string
func (*IotDeviceModelEntity) NewEntity ¶ added in v1.0.1
func (e *IotDeviceModelEntity) NewEntity() IEntity
func (*IotDeviceModelEntity) NewPo ¶ added in v1.0.1
func (e *IotDeviceModelEntity) NewPo() interface{}
func (*IotDeviceModelEntity) TableName ¶ added in v1.0.1
func (e *IotDeviceModelEntity) TableName() string
func (*IotDeviceModelEntity) Type ¶ added in v1.0.1
func (e *IotDeviceModelEntity) Type() string
type IotTemplateEntity ¶ added in v1.0.1
type IotTemplateEntity struct { BaseEntity *BaseEntity // 基本信息 IotName string // 云端平台 SubsetName string // 子集名称 TemplateType string // 模板类型 TemplateName string // 模板名称 TemplateParam map[string]interface{} // 配置参数 ExtendParam map[string]interface{} // 扩展参数 }
func (*IotTemplateEntity) BuildByJson ¶ added in v1.0.1
func (e *IotTemplateEntity) BuildByJson(jsn *string) error
func (*IotTemplateEntity) BuildByPo ¶ added in v1.0.1
func (e *IotTemplateEntity) BuildByPo(pop interface{})
func (*IotTemplateEntity) BuildToJson ¶ added in v1.0.1
func (e *IotTemplateEntity) BuildToJson() (string, error)
func (*IotTemplateEntity) BuildToPo ¶ added in v1.0.1
func (e *IotTemplateEntity) BuildToPo() interface{}
func (*IotTemplateEntity) GetBaseEntity ¶ added in v1.0.1
func (e *IotTemplateEntity) GetBaseEntity() *BaseEntity
func (*IotTemplateEntity) Instance ¶ added in v1.0.1
func (e *IotTemplateEntity) Instance() *IotTemplateEntity
func (*IotTemplateEntity) MakeServiceKey ¶ added in v1.0.1
func (e *IotTemplateEntity) MakeServiceKey() string
func (*IotTemplateEntity) MakeServiceKeyList ¶ added in v1.0.1
func (e *IotTemplateEntity) MakeServiceKeyList() []string
func (*IotTemplateEntity) NewEntity ¶ added in v1.0.1
func (e *IotTemplateEntity) NewEntity() IEntity
func (*IotTemplateEntity) NewPo ¶ added in v1.0.1
func (e *IotTemplateEntity) NewPo() interface{}
func (*IotTemplateEntity) TableName ¶ added in v1.0.1
func (e *IotTemplateEntity) TableName() string
func (*IotTemplateEntity) Type ¶ added in v1.0.1
func (e *IotTemplateEntity) Type() string
type OperateChannelTaskEntity ¶ added in v1.0.1
type OperateChannelTaskEntity struct { BaseEntity *BaseEntity // 基本信息 TaskName string // 模板名称 ChannelName string // 设备厂商名称 ChannelType string // 设备类型名 SendMode string // 设备类型名 Timeout int64 // 设备类型名 TaskParam map[string]interface{} // 模板参数 }
func (*OperateChannelTaskEntity) BuildByJson ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) BuildByJson(jsn *string) error
func (*OperateChannelTaskEntity) BuildByPo ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) BuildByPo(pop interface{})
func (*OperateChannelTaskEntity) BuildToJson ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) BuildToJson() (string, error)
func (*OperateChannelTaskEntity) BuildToPo ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) BuildToPo() interface{}
func (*OperateChannelTaskEntity) GetBaseEntity ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) GetBaseEntity() *BaseEntity
func (*OperateChannelTaskEntity) Instance ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) Instance() *OperateChannelTaskEntity
func (*OperateChannelTaskEntity) MakeServiceKey ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) MakeServiceKey() string
func (*OperateChannelTaskEntity) MakeServiceKeyList ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) MakeServiceKeyList() []string
func (*OperateChannelTaskEntity) NewEntity ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) NewEntity() IEntity
func (*OperateChannelTaskEntity) NewPo ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) NewPo() interface{}
func (*OperateChannelTaskEntity) TableName ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) TableName() string
func (*OperateChannelTaskEntity) Type ¶ added in v1.0.1
func (e *OperateChannelTaskEntity) Type() string
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) BindEntity ¶ added in v1.0.1
func (e *OperateEntity) BindEntity(other *OperateMethodEntity)
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 OperateManualTaskEntity ¶ added in v1.0.1
type OperateManualTaskEntity struct { BaseEntity *BaseEntity // 基本信息 TaskName string // 模板名称 Manufacturer string // 设备厂商名称 DeviceType string // 设备类型名 DeviceName string // 设备类型名 TaskParam []map[string]interface{} // 模板参数 }
func (*OperateManualTaskEntity) BuildByJson ¶ added in v1.0.1
func (e *OperateManualTaskEntity) BuildByJson(jsn *string) error
func (*OperateManualTaskEntity) BuildByPo ¶ added in v1.0.1
func (e *OperateManualTaskEntity) BuildByPo(pop interface{})
func (*OperateManualTaskEntity) BuildToJson ¶ added in v1.0.1
func (e *OperateManualTaskEntity) BuildToJson() (string, error)
func (*OperateManualTaskEntity) BuildToPo ¶ added in v1.0.1
func (e *OperateManualTaskEntity) BuildToPo() interface{}
func (*OperateManualTaskEntity) GetBaseEntity ¶ added in v1.0.1
func (e *OperateManualTaskEntity) GetBaseEntity() *BaseEntity
func (*OperateManualTaskEntity) Instance ¶ added in v1.0.1
func (e *OperateManualTaskEntity) Instance() *OperateManualTaskEntity
func (*OperateManualTaskEntity) MakeServiceKey ¶ added in v1.0.1
func (e *OperateManualTaskEntity) MakeServiceKey() string
func (*OperateManualTaskEntity) MakeServiceKeyList ¶ added in v1.0.1
func (e *OperateManualTaskEntity) MakeServiceKeyList() []string
func (*OperateManualTaskEntity) NewEntity ¶ added in v1.0.1
func (e *OperateManualTaskEntity) NewEntity() IEntity
func (*OperateManualTaskEntity) NewPo ¶ added in v1.0.1
func (e *OperateManualTaskEntity) NewPo() interface{}
func (*OperateManualTaskEntity) TableName ¶ added in v1.0.1
func (e *OperateManualTaskEntity) TableName() string
func (*OperateManualTaskEntity) Type ¶ added in v1.0.1
func (e *OperateManualTaskEntity) Type() string
type OperateMethodEntity ¶ added in v1.0.1
type OperateMethodEntity 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{} // 配置参数 }
func (*OperateMethodEntity) BuildByJson ¶ added in v1.0.1
func (e *OperateMethodEntity) BuildByJson(jsn *string) error
func (*OperateMethodEntity) BuildByPo ¶ added in v1.0.1
func (e *OperateMethodEntity) BuildByPo(pop interface{})
func (*OperateMethodEntity) BuildToJson ¶ added in v1.0.1
func (e *OperateMethodEntity) BuildToJson() (string, error)
func (*OperateMethodEntity) BuildToPo ¶ added in v1.0.1
func (e *OperateMethodEntity) BuildToPo() interface{}
func (*OperateMethodEntity) GetBaseEntity ¶ added in v1.0.1
func (e *OperateMethodEntity) GetBaseEntity() *BaseEntity
func (*OperateMethodEntity) Instance ¶ added in v1.0.1
func (e *OperateMethodEntity) Instance() *OperateMethodEntity
func (*OperateMethodEntity) MakeServiceKey ¶ added in v1.0.1
func (e *OperateMethodEntity) MakeServiceKey() string
func (*OperateMethodEntity) MakeServiceKeyList ¶ added in v1.0.1
func (e *OperateMethodEntity) MakeServiceKeyList() []string
func (*OperateMethodEntity) NewEntity ¶ added in v1.0.1
func (e *OperateMethodEntity) NewEntity() IEntity
func (*OperateMethodEntity) NewPo ¶ added in v1.0.1
func (e *OperateMethodEntity) NewPo() interface{}
func (*OperateMethodEntity) TableName ¶ added in v1.0.1
func (e *OperateMethodEntity) TableName() string
func (*OperateMethodEntity) Type ¶ added in v1.0.1
func (e *OperateMethodEntity) 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 (e *OperateMonitorTaskEntity) Instance() *OperateMonitorTaskEntity
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) Instance ¶ added in v1.0.1
func (e *OperateRecordEntity) Instance() *OperateRecordEntity
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 RepoCompEntity ¶ added in v1.0.1
type RepoCompEntity struct { BaseEntity *BaseEntity // 基本信息 CompRepo string // 设备厂商名称 CompType string // 设备类型名 CompName string // 设备名称 CompParam map[string]interface{} // 配置参数 }
func (*RepoCompEntity) BuildByJson ¶ added in v1.0.1
func (e *RepoCompEntity) BuildByJson(jsn *string) error
func (*RepoCompEntity) BuildByPo ¶ added in v1.0.1
func (e *RepoCompEntity) BuildByPo(pop interface{})
func (*RepoCompEntity) BuildToJson ¶ added in v1.0.1
func (e *RepoCompEntity) BuildToJson() (string, error)
func (*RepoCompEntity) BuildToPo ¶ added in v1.0.1
func (e *RepoCompEntity) BuildToPo() interface{}
func (*RepoCompEntity) GetBaseEntity ¶ added in v1.0.1
func (e *RepoCompEntity) GetBaseEntity() *BaseEntity
func (*RepoCompEntity) Instance ¶ added in v1.0.1
func (e *RepoCompEntity) Instance() *RepoCompEntity
func (*RepoCompEntity) MakeServiceKey ¶ added in v1.0.1
func (e *RepoCompEntity) MakeServiceKey() string
func (*RepoCompEntity) MakeServiceKeyList ¶ added in v1.0.1
func (e *RepoCompEntity) MakeServiceKeyList() []string
func (*RepoCompEntity) NewEntity ¶ added in v1.0.1
func (e *RepoCompEntity) NewEntity() IEntity
func (*RepoCompEntity) NewPo ¶ added in v1.0.1
func (e *RepoCompEntity) NewPo() interface{}
func (*RepoCompEntity) TableName ¶ added in v1.0.1
func (e *RepoCompEntity) TableName() string
func (*RepoCompEntity) Type ¶ added in v1.0.1
func (e *RepoCompEntity) 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 []map[string]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 []string // 设备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 (e *UserPermissionEntity) Instance() *UserPermissionEntity
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 []string // 设备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
Source Files
¶
- ChannelEntity.go
- ChannelStatusEntity.go
- ConfigEntity.go
- DeviceEntity.go
- DeviceHistoryEntity.go
- DeviceMapperEntity.go
- DeviceModelEntity.go
- DeviceObjInfEntity.go
- DeviceObjectEntity.go
- DeviceObjectValue.go
- DeviceRecordEntity.go
- DeviceStatusEntity.go
- DeviceTemplateEntity.go
- DeviceValueEntity.go
- DeviceValueExEntity.go
- DeviceValueExTaskEntity.go
- Entity.go
- ExtendConfigEntity.go
- Factory.go
- GlobalVar.go
- IotDeviceModelEntity.go
- IotTemplateEntity.go
- OperateChannelTaskEntity.go
- OperateEntity.go
- OperateManualTaskEntity.go
- OperateMethodEntity.go
- OperateMonitorTaskEntity.go
- OperateRecordEntity.go
- RepoCompEntity.go
- UserEntity.go
- UserMenuEntity.go
- UserPermissionEntity.go
- UserRoleEntity.go
Click to show internal directories.
Click to hide internal directories.