devicemanagelogic

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToDeviceInfo

func ToDeviceInfo(di *mysql.DeviceInfo) *dm.DeviceInfo

Types

type DeviceInfoCreateLogic

type DeviceInfoCreateLogic struct {
	logx.Logger
	// 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) (*dm.Response, error)

新增设备

func (*DeviceInfoCreateLogic) InitDevice

func (l *DeviceInfoCreateLogic) InitDevice(in *dm.DeviceInfo) error

type DeviceInfoDeleteLogic

type DeviceInfoDeleteLogic struct {
	logx.Logger
	// 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
	// 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
	// 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
	// contains filtered or unexported fields
}

func NewDeviceInfoUpdateLogic

func NewDeviceInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoUpdateLogic

func (*DeviceInfoUpdateLogic) ChangeDevice

func (l *DeviceInfoUpdateLogic) ChangeDevice(old *mysql.DeviceInfo, data *dm.DeviceInfo)

func (*DeviceInfoUpdateLogic) DeviceInfoUpdate

func (l *DeviceInfoUpdateLogic) DeviceInfoUpdate(in *dm.DeviceInfo) (*dm.Response, error)

更新设备

Jump to

Keyboard shortcuts

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