Documentation
¶
Index ¶
- func ToDeviceCoreDos(in []*dm.DeviceCore) (ret []*devices.Core)
- func ToDeviceCoreEvents(in []*dm.DeviceCore) (ret []*events.DeviceCore)
- func ToDeviceInfo(di *mysql.DmDeviceInfo) *dm.DeviceInfo
- 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) (*dm.Response, 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 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 *mysql.DmDeviceInfo) *dm.DeviceInfo
Types ¶
type DeviceGatewayIndexLogic ¶ added in v0.3.0
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
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
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
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 ¶
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) (*dm.Response, error)
新增设备
func (*DeviceInfoCreateLogic) InitDevice ¶
func (l *DeviceInfoCreateLogic) InitDevice(in *dm.DeviceInfo) error
type DeviceInfoDeleteLogic ¶
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 ¶
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 ¶
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 ¶
func NewDeviceInfoUpdateLogic ¶
func NewDeviceInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoUpdateLogic
func (*DeviceInfoUpdateLogic) ChangeDevice ¶
func (l *DeviceInfoUpdateLogic) ChangeDevice(old *mysql.DmDeviceInfo, data *dm.DeviceInfo)
func (*DeviceInfoUpdateLogic) DeviceInfoUpdate ¶
func (l *DeviceInfoUpdateLogic) DeviceInfoUpdate(in *dm.DeviceInfo) (*dm.Response, error)
更新设备
type DeviceTypeCountLogic ¶ added in v0.3.0
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.