devicemanagelogic

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

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

获取分组设备信息列表

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

设备计数

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

获取设备信息列表

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

设备类型

Jump to

Keyboard shortcuts

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