info

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToRpcDeviceInfo

func ToRpcDeviceInfo(req *types.DeviceInfo) *dm.DeviceInfo

Types

type AddGroup added in v1.1.0

type AddGroup struct {
	Purpose   string //用途
	GroupName map[string]struct{}
}

type BindLogic

type BindLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewBindLogic

func NewBindLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BindLogic

func (*BindLogic) Bind

func (l *BindLogic) Bind(req *types.DeviceInfoBindReq) error

type CanBindLogic

type CanBindLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCanBindLogic

func NewCanBindLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CanBindLogic

func (*CanBindLogic) CanBind

func (l *CanBindLogic) CanBind(req *types.DeviceInfoCanBindReq) error

type CountLogic

type CountLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCountLogic

func NewCountLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CountLogic

func (*CountLogic) Count

func (l *CountLogic) Count(req *types.DeviceCountReq) (resp *types.DeviceCountResp, err error)

type CreateLogic

type CreateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateLogic

func NewCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateLogic

func (*CreateLogic) Create

func (l *CreateLogic) Create(req *types.DeviceInfo) error

type DeleteLogic

type DeleteLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteLogic

func NewDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteLogic

func (*DeleteLogic) Delete

func (l *DeleteLogic) Delete(req *types.DeviceInfoDeleteReq) error

type IndexLogic

type IndexLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewIndexLogic

func NewIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IndexLogic

func (*IndexLogic) Index

func (l *IndexLogic) Index(req *types.DeviceInfoIndexReq) (resp *types.DeviceInfoIndexResp, err error)

type MultiBindLogic

type MultiBindLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewMultiBindLogic

func NewMultiBindLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MultiBindLogic

func (*MultiBindLogic) MultiBind

type MultiImportLogic

type MultiImportLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewMultiImportLogic

func NewMultiImportLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MultiImportLogic

func (*MultiImportLogic) MultiImport

func (l *MultiImportLogic) MultiImport(req *types.DeviceMultiImportReq, rows [][]string) (resp *types.DeviceMultiImportResp, err error)

type MultiUpdateImportLogic added in v1.1.0

type MultiUpdateImportLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewMultiUpdateImportLogic added in v1.1.0

func NewMultiUpdateImportLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MultiUpdateImportLogic

导入批量更新设备

func (*MultiUpdateImportLogic) MultiUpdateImport added in v1.1.0

func (l *MultiUpdateImportLogic) MultiUpdateImport(rows [][]string) (*types.DeviceMultiUpdateImportResp, error)

type MultiUpdateLogic

type MultiUpdateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewMultiUpdateLogic

func NewMultiUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MultiUpdateLogic

func (*MultiUpdateLogic) MultiUpdate

type ReadLogic

type ReadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewReadLogic

func NewReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReadLogic

func (*ReadLogic) Read

func (l *ReadLogic) Read(req *types.DeviceInfoReadReq) (resp *types.DeviceInfo, err error)

type TransferLogic

type TransferLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewTransferLogic

func NewTransferLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TransferLogic

func (*TransferLogic) Transfer

func (l *TransferLogic) Transfer(req *types.DeviceInfoTransferReq) error

type UnbindLogic

type UnbindLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUnbindLogic

func NewUnbindLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UnbindLogic

func (*UnbindLogic) Unbind

func (l *UnbindLogic) Unbind(req *types.DeviceCore) error

type UpdateLogic

type UpdateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateLogic

func NewUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateLogic

func (*UpdateLogic) Update

func (l *UpdateLogic) Update(req *types.DeviceInfo) error

Jump to

Keyboard shortcuts

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