devicegrouplogic

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToGroupInfoPb

func ToGroupInfoPb(ro *relationDB.DmGroupInfo) *dm.GroupInfo

Types

type GroupDeviceMultiCreateLogic

type GroupDeviceMultiCreateLogic struct {
	logx.Logger
	GdDB *relationDB.GroupDeviceRepo
	// contains filtered or unexported fields
}

func NewGroupDeviceMultiCreateLogic

func NewGroupDeviceMultiCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GroupDeviceMultiCreateLogic

func (*GroupDeviceMultiCreateLogic) GroupDeviceMultiCreate

func (l *GroupDeviceMultiCreateLogic) GroupDeviceMultiCreate(in *dm.GroupDeviceMultiSaveReq) (*dm.Empty, error)

创建分组设备

type GroupDeviceMultiDeleteLogic

type GroupDeviceMultiDeleteLogic struct {
	logx.Logger
	GdDB *relationDB.GroupDeviceRepo
	// contains filtered or unexported fields
}

func NewGroupDeviceMultiDeleteLogic

func NewGroupDeviceMultiDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GroupDeviceMultiDeleteLogic

func (*GroupDeviceMultiDeleteLogic) GroupDeviceMultiDelete

func (l *GroupDeviceMultiDeleteLogic) GroupDeviceMultiDelete(in *dm.GroupDeviceMultiDeleteReq) (*dm.Empty, error)

删除分组设备

type GroupDeviceMultiUpdateLogic

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

func NewGroupDeviceMultiUpdateLogic

func NewGroupDeviceMultiUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GroupDeviceMultiUpdateLogic

func (*GroupDeviceMultiUpdateLogic) GroupDeviceMultiUpdate

func (l *GroupDeviceMultiUpdateLogic) GroupDeviceMultiUpdate(in *dm.GroupDeviceMultiSaveReq) (*dm.Empty, error)

更新分组设备

type GroupInfoCreateLogic

type GroupInfoCreateLogic struct {
	logx.Logger
	GiDB *relationDB.GroupInfoRepo
	// contains filtered or unexported fields
}

func NewGroupInfoCreateLogic

func NewGroupInfoCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GroupInfoCreateLogic

func (*GroupInfoCreateLogic) CheckGroupInfo

func (l *GroupInfoCreateLogic) CheckGroupInfo(in *dm.GroupInfo) (bool, error)

发现返回true 没有返回false

func (*GroupInfoCreateLogic) CheckGroupLevel

func (l *GroupInfoCreateLogic) CheckGroupLevel(ID int64, level int64) (bool, error)

检查当前分组嵌套层数是否超限,是返回true 否则返回false

func (*GroupInfoCreateLogic) GroupInfoCreate

func (l *GroupInfoCreateLogic) GroupInfoCreate(in *dm.GroupInfo) (*dm.WithID, error)

创建分组

type GroupInfoDeleteLogic

type GroupInfoDeleteLogic struct {
	logx.Logger
	GiDB *relationDB.GroupInfoRepo
	// contains filtered or unexported fields
}

func NewGroupInfoDeleteLogic

func NewGroupInfoDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GroupInfoDeleteLogic

func (*GroupInfoDeleteLogic) GroupInfoDelete

func (l *GroupInfoDeleteLogic) GroupInfoDelete(in *dm.WithID) (*dm.Empty, error)

删除分组

type GroupInfoIndexLogic

type GroupInfoIndexLogic struct {
	logx.Logger
	GiDB *relationDB.GroupInfoRepo
	// contains filtered or unexported fields
}

func NewGroupInfoIndexLogic

func NewGroupInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GroupInfoIndexLogic

func (*GroupInfoIndexLogic) GroupInfoIndex

获取分组信息列表

type GroupInfoMultiCreateLogic added in v1.0.6

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

func NewGroupInfoMultiCreateLogic added in v1.0.6

func NewGroupInfoMultiCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GroupInfoMultiCreateLogic

func (*GroupInfoMultiCreateLogic) GroupInfoMultiCreate added in v1.0.6

func (l *GroupInfoMultiCreateLogic) GroupInfoMultiCreate(in *dm.GroupInfoMultiCreateReq) (*dm.Empty, error)

type GroupInfoReadLogic

type GroupInfoReadLogic struct {
	logx.Logger
	GiDB *relationDB.GroupInfoRepo
	// contains filtered or unexported fields
}

func NewGroupInfoReadLogic

func NewGroupInfoReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GroupInfoReadLogic

func (*GroupInfoReadLogic) GroupInfoRead

func (l *GroupInfoReadLogic) GroupInfoRead(in *dm.WithIDChildren) (*dm.GroupInfo, error)

获取分组信息详情

type GroupInfoUpdateLogic

type GroupInfoUpdateLogic struct {
	logx.Logger
	GiDB *relationDB.GroupInfoRepo
	// contains filtered or unexported fields
}

func NewGroupInfoUpdateLogic

func NewGroupInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GroupInfoUpdateLogic

func (*GroupInfoUpdateLogic) GroupInfoUpdate

func (l *GroupInfoUpdateLogic) GroupInfoUpdate(in *dm.GroupInfo) (*dm.Empty, error)

更新分组

Jump to

Keyboard shortcuts

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