Documentation
¶
Index ¶
- func BindToDeviceCoreDos(in []*dm.DeviceGatewayBindDevice) (ret []*devices.Core)
- func BindToDeviceCoreEvents(in []*dm.DeviceGatewayBindDevice) (ret []*events.DeviceCore)
- func ToDeviceCoreDo(core *dm.DeviceCore) *devices.Core
- func ToDeviceCoreDos(in []*dm.DeviceCore) (ret []*devices.Core)
- func ToDeviceCoreEvents(in []*dm.DeviceCore) (ret []*events.DeviceCore)
- func ToDeviceInfo(di *relationDB.DmDeviceInfo) *dm.DeviceInfo
- func ToGatewayDevice(gateway *devices.Core, subDevice []*devices.Core) (ret []*relationDB.DmGatewayDevice)
- type DeviceGatewayIndexLogic
- type DeviceGatewayMultiCreateLogic
- type DeviceGatewayMultiDeleteLogic
- type DeviceInfoCountLogic
- type DeviceInfoCreateLogic
- func (l *DeviceInfoCreateLogic) CheckDevice(in *dm.DeviceInfo) (bool, error)
- func (l *DeviceInfoCreateLogic) CheckProduct(in *dm.DeviceInfo) (bool, error)
- func (l *DeviceInfoCreateLogic) DeviceInfoCreate(in *dm.DeviceInfo) (resp *dm.Response, err error)
- func (l *DeviceInfoCreateLogic) InitDevice(in *dm.DeviceInfo) error
- type DeviceInfoDeleteLogic
- type DeviceInfoIndexLogic
- type DeviceInfoReadLogic
- type DeviceInfoUpdateLogic
- type DeviceTypeCountLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindToDeviceCoreDos ¶ added in v0.5.1
func BindToDeviceCoreDos(in []*dm.DeviceGatewayBindDevice) (ret []*devices.Core)
func BindToDeviceCoreEvents ¶ added in v0.5.1
func BindToDeviceCoreEvents(in []*dm.DeviceGatewayBindDevice) (ret []*events.DeviceCore)
func ToDeviceCoreDo ¶ added in v0.5.1
func ToDeviceCoreDo(core *dm.DeviceCore) *devices.Core
func ToDeviceCoreDos ¶ added in v0.3.0
func ToDeviceCoreDos(in []*dm.DeviceCore) (ret []*devices.Core)
func ToDeviceCoreEvents ¶ added in v0.3.0
func ToDeviceCoreEvents(in []*dm.DeviceCore) (ret []*events.DeviceCore)
func ToDeviceInfo ¶
func ToDeviceInfo(di *relationDB.DmDeviceInfo) *dm.DeviceInfo
func ToGatewayDevice ¶ added in v0.6.0
func ToGatewayDevice(gateway *devices.Core, subDevice []*devices.Core) (ret []*relationDB.DmGatewayDevice)
Types ¶
type DeviceGatewayIndexLogic ¶ added in v0.3.0
type DeviceGatewayIndexLogic struct { logx.Logger GdDB *relationDB.GatewayDeviceRepo // contains filtered or unexported fields }
func NewDeviceGatewayIndexLogic ¶ added in v0.3.0
func NewDeviceGatewayIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceGatewayIndexLogic
func (*DeviceGatewayIndexLogic) DeviceGatewayIndex ¶ added in v0.3.0
func (l *DeviceGatewayIndexLogic) DeviceGatewayIndex(in *dm.DeviceGatewayIndexReq) (*dm.DeviceGatewayIndexResp, error)
获取分组设备信息列表
type DeviceGatewayMultiCreateLogic ¶ added in v0.3.0
type DeviceGatewayMultiCreateLogic struct { logx.Logger PiDB *relationDB.ProductInfoRepo DiDB *relationDB.DeviceInfoRepo GdDB *relationDB.GatewayDeviceRepo // contains filtered or unexported fields }
func NewDeviceGatewayMultiCreateLogic ¶ added in v0.3.0
func NewDeviceGatewayMultiCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceGatewayMultiCreateLogic
func (*DeviceGatewayMultiCreateLogic) DeviceGatewayMultiCreate ¶ added in v0.3.0
func (l *DeviceGatewayMultiCreateLogic) DeviceGatewayMultiCreate(in *dm.DeviceGatewayMultiCreateReq) (*dm.Response, error)
创建分组设备
type DeviceGatewayMultiDeleteLogic ¶ added in v0.3.0
type DeviceGatewayMultiDeleteLogic struct { logx.Logger GdDB *relationDB.GatewayDeviceRepo // contains filtered or unexported fields }
func NewDeviceGatewayMultiDeleteLogic ¶ added in v0.3.0
func NewDeviceGatewayMultiDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceGatewayMultiDeleteLogic
func (*DeviceGatewayMultiDeleteLogic) DeviceGatewayMultiDelete ¶ added in v0.3.0
func (l *DeviceGatewayMultiDeleteLogic) DeviceGatewayMultiDelete(in *dm.DeviceGatewayMultiDeleteReq) (*dm.Response, error)
删除分组设备
type DeviceInfoCountLogic ¶ added in v0.3.0
type DeviceInfoCountLogic struct { logx.Logger DiDB *relationDB.DeviceInfoRepo // contains filtered or unexported fields }
func NewDeviceInfoCountLogic ¶ added in v0.3.0
func NewDeviceInfoCountLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoCountLogic
func (*DeviceInfoCountLogic) DeviceInfoCount ¶ added in v0.3.0
func (l *DeviceInfoCountLogic) DeviceInfoCount(in *dm.DeviceInfoCountReq) (*dm.DeviceInfoCountResp, error)
设备计数
type DeviceInfoCreateLogic ¶
type DeviceInfoCreateLogic struct { logx.Logger PiDB *relationDB.ProductInfoRepo DiDB *relationDB.DeviceInfoRepo // contains filtered or unexported fields }
func NewDeviceInfoCreateLogic ¶
func NewDeviceInfoCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoCreateLogic
func (*DeviceInfoCreateLogic) CheckDevice ¶
func (l *DeviceInfoCreateLogic) CheckDevice(in *dm.DeviceInfo) (bool, error)
发现返回true 没有返回false
func (*DeviceInfoCreateLogic) CheckProduct ¶
func (l *DeviceInfoCreateLogic) CheckProduct(in *dm.DeviceInfo) (bool, error)
发现返回true 没有返回false
func (*DeviceInfoCreateLogic) DeviceInfoCreate ¶
func (l *DeviceInfoCreateLogic) DeviceInfoCreate(in *dm.DeviceInfo) (resp *dm.Response, err error)
新增设备
func (*DeviceInfoCreateLogic) InitDevice ¶
func (l *DeviceInfoCreateLogic) InitDevice(in *dm.DeviceInfo) error
type DeviceInfoDeleteLogic ¶
type DeviceInfoDeleteLogic struct { logx.Logger DiDB *relationDB.DeviceInfoRepo // contains filtered or unexported fields }
func NewDeviceInfoDeleteLogic ¶
func NewDeviceInfoDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoDeleteLogic
func (*DeviceInfoDeleteLogic) DeviceInfoDelete ¶
func (l *DeviceInfoDeleteLogic) DeviceInfoDelete(in *dm.DeviceInfoDeleteReq) (*dm.Response, error)
删除设备
type DeviceInfoIndexLogic ¶
type DeviceInfoIndexLogic struct { logx.Logger DiDB *relationDB.DeviceInfoRepo // contains filtered or unexported fields }
func NewDeviceInfoIndexLogic ¶
func NewDeviceInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoIndexLogic
func (*DeviceInfoIndexLogic) DeviceInfoIndex ¶
func (l *DeviceInfoIndexLogic) DeviceInfoIndex(in *dm.DeviceInfoIndexReq) (*dm.DeviceInfoIndexResp, error)
获取设备信息列表
type DeviceInfoReadLogic ¶
type DeviceInfoReadLogic struct { logx.Logger DiDB *relationDB.DeviceInfoRepo // contains filtered or unexported fields }
func NewDeviceInfoReadLogic ¶
func NewDeviceInfoReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoReadLogic
func (*DeviceInfoReadLogic) DeviceInfoRead ¶
func (l *DeviceInfoReadLogic) DeviceInfoRead(in *dm.DeviceInfoReadReq) (*dm.DeviceInfo, error)
获取设备信息详情
type DeviceInfoUpdateLogic ¶
type DeviceInfoUpdateLogic struct { logx.Logger PiDB *relationDB.ProductInfoRepo DiDB *relationDB.DeviceInfoRepo // contains filtered or unexported fields }
func NewDeviceInfoUpdateLogic ¶
func NewDeviceInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoUpdateLogic
func (*DeviceInfoUpdateLogic) DeviceInfoUpdate ¶
func (l *DeviceInfoUpdateLogic) DeviceInfoUpdate(in *dm.DeviceInfo) (*dm.Response, error)
更新设备
func (*DeviceInfoUpdateLogic) SetDevicePoByDto ¶ added in v0.5.1
func (l *DeviceInfoUpdateLogic) SetDevicePoByDto(old *relationDB.DmDeviceInfo, data *dm.DeviceInfo)
type DeviceTypeCountLogic ¶ added in v0.3.0
type DeviceTypeCountLogic struct { logx.Logger PiDB *relationDB.ProductInfoRepo DiDB *relationDB.DeviceInfoRepo // contains filtered or unexported fields }
func NewDeviceTypeCountLogic ¶ added in v0.3.0
func NewDeviceTypeCountLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceTypeCountLogic
func (*DeviceTypeCountLogic) DeviceTypeCount ¶ added in v0.3.0
func (l *DeviceTypeCountLogic) DeviceTypeCount(in *dm.DeviceTypeCountReq) (*dm.DeviceTypeCountResp, error)
设备类型
Source Files
¶
Click to show internal directories.
Click to hide internal directories.