rulelogic

package
v1.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HandelIgnore    = 1 //忽略
	HandleSendOrder = 2 //派单
)

Variables

This section is empty.

Functions

func GetSceneInfo

func GetSceneInfo(svcCtx *svc.ServiceContext) func(ctx context.Context, sceneID int64) (info *scene.Info, err error)

func NewSceneCheckRepo

func NewSceneCheckRepo(ctx context.Context, svcCtx *svc.ServiceContext, do *scene.Info) scene.CheckRepo

func PoToSceneInfoDo

func PoToSceneInfoDo(ctx context.Context, svcCtx *svc.ServiceContext, in *relationDB.UdSceneInfo) *scene.Info

func PoToSceneInfoPb

func PoToSceneInfoPb(ctx context.Context, svcCtx *svc.ServiceContext, in *relationDB.UdSceneInfo) *ud.SceneInfo

func PoToSceneInfoPbs

func PoToSceneInfoPbs(ctx context.Context, svcCtx *svc.ServiceContext, in []*relationDB.UdSceneInfo) (ret []*ud.SceneInfo)

func SceneInfoRead

func SceneInfoRead(ctx context.Context, svcCtx *svc.ServiceContext, id int64, perm def.AuthType) (*relationDB.UdSceneInfo, error)

func ToSceneActionPo

func ToSceneActionPo(s *scene.Info, in *scene.Action) *relationDB.UdSceneThenAction

func ToSceneActionsDo

func ToSceneActionsDo(ctx context.Context, svcCtx *svc.ServiceContext, in []*relationDB.UdSceneThenAction) (ret scene.Actions)

func ToSceneActionsPo

func ToSceneActionsPo(s *scene.Info, in scene.Actions) (ret []*relationDB.UdSceneThenAction)

func ToSceneInfoDo

func ToSceneInfoDo(in *ud.SceneInfo) *scene.Info

func ToSceneInfoPo

func ToSceneInfoPo(in *scene.Info) *relationDB.UdSceneInfo

func ToSceneTriggerDeviceDo

func ToSceneTriggerDeviceDo(ctx context.Context, svcCtx *svc.ServiceContext, in relationDB.UdSceneTriggerDevice) (ret *scene.TriggerDevice)

func ToSceneTriggerDevicePo

func ToSceneTriggerDevicePo(in *scene.TriggerDevice) (ret relationDB.UdSceneTriggerDevice)

func ToSceneTriggerDo

func ToSceneTriggerDo(ctx context.Context, svcCtx *svc.ServiceContext, in *relationDB.UdSceneIfTrigger) *scene.Trigger

func ToSceneTriggerPo

func ToSceneTriggerPo(si *scene.Info, in *scene.Trigger) *relationDB.UdSceneIfTrigger

func ToSceneTriggerTimerDo

func ToSceneTriggerTimerDo(in relationDB.UdSceneTriggerTimer) (ret *scene.TriggerTimer)

func ToSceneTriggerTimerPo

func ToSceneTriggerTimerPo(si *scene.Info, in *scene.TriggerTimer) (ret relationDB.UdSceneTriggerTimer)

func ToSceneTriggersDo

func ToSceneTriggersDo(ctx context.Context, svcCtx *svc.ServiceContext, in []*relationDB.UdSceneIfTrigger) (ret scene.Triggers)

func ToSceneTriggersPo

func ToSceneTriggersPo(si *scene.Info, in scene.Triggers) (ret []*relationDB.UdSceneIfTrigger)

Types

type AlarmInfoCreateLogic

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

func NewAlarmInfoCreateLogic

func NewAlarmInfoCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoCreateLogic

func (*AlarmInfoCreateLogic) AlarmInfoCreate

func (l *AlarmInfoCreateLogic) AlarmInfoCreate(in *ud.AlarmInfo) (*ud.WithID, error)

type AlarmInfoDeleteLogic

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

func NewAlarmInfoDeleteLogic

func NewAlarmInfoDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoDeleteLogic

func (*AlarmInfoDeleteLogic) AlarmInfoDelete

func (l *AlarmInfoDeleteLogic) AlarmInfoDelete(in *ud.WithID) (*ud.Empty, error)

type AlarmInfoIndexLogic

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

func NewAlarmInfoIndexLogic

func NewAlarmInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoIndexLogic

func (*AlarmInfoIndexLogic) AlarmInfoIndex

type AlarmInfoReadLogic

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

func NewAlarmInfoReadLogic

func NewAlarmInfoReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoReadLogic

func (*AlarmInfoReadLogic) AlarmInfoRead

func (l *AlarmInfoReadLogic) AlarmInfoRead(in *ud.WithID) (*ud.AlarmInfo, error)

type AlarmInfoUpdateLogic

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

func NewAlarmInfoUpdateLogic

func NewAlarmInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoUpdateLogic

func (*AlarmInfoUpdateLogic) AlarmInfoUpdate

func (l *AlarmInfoUpdateLogic) AlarmInfoUpdate(in *ud.AlarmInfo) (*ud.Empty, error)

type AlarmRecordCreateLogic

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

func NewAlarmRecordCreateLogic

func NewAlarmRecordCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmRecordCreateLogic

func (*AlarmRecordCreateLogic) AlarmRecordCreate

func (l *AlarmRecordCreateLogic) AlarmRecordCreate(in *ud.AlarmRecordCreateReq) (*ud.Empty, error)

type AlarmRecordDealLogic

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

func NewAlarmRecordDealLogic

func NewAlarmRecordDealLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmRecordDealLogic

func (*AlarmRecordDealLogic) AlarmRecordDeal

func (l *AlarmRecordDealLogic) AlarmRecordDeal(in *ud.AlarmRecordDealReq) (*ud.Empty, error)

type AlarmRecordIndexLogic

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

func NewAlarmRecordIndexLogic

func NewAlarmRecordIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmRecordIndexLogic

func (*AlarmRecordIndexLogic) AlarmRecordIndex

告警记录

type AlarmSceneDeleteLogic

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

func NewAlarmSceneDeleteLogic

func NewAlarmSceneDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmSceneDeleteLogic

func (*AlarmSceneDeleteLogic) AlarmSceneDelete

func (l *AlarmSceneDeleteLogic) AlarmSceneDelete(in *ud.AlarmSceneDeleteReq) (*ud.Empty, error)

type AlarmSceneIndexLogic

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

func NewAlarmSceneIndexLogic

func NewAlarmSceneIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmSceneIndexLogic

func (*AlarmSceneIndexLogic) AlarmSceneIndex

type AlarmSceneMultiCreateLogic

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

func NewAlarmSceneMultiCreateLogic

func NewAlarmSceneMultiCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmSceneMultiCreateLogic

func (*AlarmSceneMultiCreateLogic) AlarmSceneMultiCreate

func (l *AlarmSceneMultiCreateLogic) AlarmSceneMultiCreate(in *ud.AlarmSceneMultiSaveReq) (*ud.Empty, error)

告警关联场景联动

type OpsParam

type OpsParam struct {
	DeviceAlias string `json:"deviceAlias"`
	DeviceName  string `json:"deviceName"`
	ProductID   string `json:"productID"`
}

type SceneInfoCreateLogic

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

func NewSceneInfoCreateLogic

func NewSceneInfoCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneInfoCreateLogic

func (*SceneInfoCreateLogic) SceneInfoCreate

func (l *SceneInfoCreateLogic) SceneInfoCreate(in *ud.SceneInfo) (*ud.WithID, error)

场景

type SceneInfoDeleteLogic

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

func NewSceneInfoDeleteLogic

func NewSceneInfoDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneInfoDeleteLogic

func (*SceneInfoDeleteLogic) SceneInfoDelete

func (l *SceneInfoDeleteLogic) SceneInfoDelete(in *ud.WithID) (*ud.Empty, error)

type SceneInfoIndexLogic

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

func NewSceneInfoIndexLogic

func NewSceneInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneInfoIndexLogic

func (*SceneInfoIndexLogic) SceneInfoIndex

type SceneInfoReadLogic

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

func NewSceneInfoReadLogic

func NewSceneInfoReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneInfoReadLogic

func (*SceneInfoReadLogic) SceneInfoRead

func (l *SceneInfoReadLogic) SceneInfoRead(in *ud.WithID) (*ud.SceneInfo, error)

type SceneInfoUpdateLogic

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

func NewSceneInfoUpdateLogic

func NewSceneInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneInfoUpdateLogic

func (*SceneInfoUpdateLogic) SceneInfoUpdate

func (l *SceneInfoUpdateLogic) SceneInfoUpdate(in *ud.SceneInfo) (*ud.Empty, error)

type SceneLogIndexLogic

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

func NewSceneLogIndexLogic

func NewSceneLogIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneLogIndexLogic

func (*SceneLogIndexLogic) SceneLogIndex

func (l *SceneLogIndexLogic) SceneLogIndex(in *ud.SceneLogIndexReq) (*ud.SceneLogIndexResp, error)

type SceneManuallyTriggerLogic

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

func NewSceneManuallyTriggerLogic

func NewSceneManuallyTriggerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneManuallyTriggerLogic

func (*SceneManuallyTriggerLogic) SceneManuallyTrigger

func (l *SceneManuallyTriggerLogic) SceneManuallyTrigger(in *ud.WithID) (*ud.Empty, error)

Jump to

Keyboard shortcuts

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