Documentation ¶
Index ¶
- Constants
- func GetSceneInfo(svcCtx *svc.ServiceContext) func(ctx context.Context, sceneID int64) (info *scene.Info, err error)
- func NewSceneCheckRepo(ctx context.Context, svcCtx *svc.ServiceContext, do *scene.Info) scene.CheckRepo
- func PoToSceneInfoDo(ctx context.Context, svcCtx *svc.ServiceContext, in *relationDB.UdSceneInfo) *scene.Info
- func PoToSceneInfoPb(ctx context.Context, svcCtx *svc.ServiceContext, in *relationDB.UdSceneInfo) *ud.SceneInfo
- func PoToSceneInfoPbs(ctx context.Context, svcCtx *svc.ServiceContext, in []*relationDB.UdSceneInfo) (ret []*ud.SceneInfo)
- func SceneInfoRead(ctx context.Context, svcCtx *svc.ServiceContext, id int64, perm def.AuthType) (*relationDB.UdSceneInfo, error)
- func ToSceneActionDo(ctx context.Context, svcCtx *svc.ServiceContext, ...) *scene.Action
- func ToSceneActionPo(s *scene.Info, in *scene.Action) *relationDB.UdSceneThenAction
- func ToSceneActionsDo(ctx context.Context, svcCtx *svc.ServiceContext, ...) (ret scene.Actions)
- func ToSceneActionsPo(s *scene.Info, in scene.Actions) (ret []*relationDB.UdSceneThenAction)
- func ToSceneInfoDo(in *ud.SceneInfo) *scene.Info
- func ToSceneInfoPo(in *scene.Info) *relationDB.UdSceneInfo
- func ToSceneTriggerDeviceDo(ctx context.Context, svcCtx *svc.ServiceContext, ...) (ret *scene.TriggerDevice)
- func ToSceneTriggerDevicePo(in *scene.TriggerDevice) (ret relationDB.UdSceneTriggerDevice)
- func ToSceneTriggerDo(ctx context.Context, svcCtx *svc.ServiceContext, ...) *scene.Trigger
- func ToSceneTriggerPo(si *scene.Info, in *scene.Trigger) *relationDB.UdSceneIfTrigger
- func ToSceneTriggerTimerDo(in relationDB.UdSceneTriggerTimer) (ret *scene.TriggerTimer)
- func ToSceneTriggerTimerPo(si *scene.Info, in *scene.TriggerTimer) (ret relationDB.UdSceneTriggerTimer)
- func ToSceneTriggersDo(ctx context.Context, svcCtx *svc.ServiceContext, ...) (ret scene.Triggers)
- func ToSceneTriggersPo(si *scene.Info, in scene.Triggers) (ret []*relationDB.UdSceneIfTrigger)
- type AlarmInfoCreateLogic
- type AlarmInfoDeleteLogic
- type AlarmInfoIndexLogic
- type AlarmInfoReadLogic
- type AlarmInfoUpdateLogic
- type AlarmRecordCreateLogic
- type AlarmRecordDealLogic
- type AlarmRecordIndexLogic
- type AlarmSceneDeleteLogic
- type AlarmSceneIndexLogic
- type AlarmSceneMultiCreateLogic
- type OpsParam
- type SceneInfoCreateLogic
- type SceneInfoDeleteLogic
- type SceneInfoIndexLogic
- type SceneInfoReadLogic
- type SceneInfoUpdateLogic
- type SceneLogIndexLogic
- type SceneManuallyTriggerLogic
Constants ¶
View Source
const ( HandelIgnore = 1 //忽略 HandleSendOrder = 2 //派单 )
Variables ¶
This section is empty.
Functions ¶
func GetSceneInfo ¶
func NewSceneCheckRepo ¶
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 ToSceneActionDo ¶
func ToSceneActionDo(ctx context.Context, svcCtx *svc.ServiceContext, in *relationDB.UdSceneThenAction) *scene.Action
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 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 ¶
func NewAlarmInfoCreateLogic ¶
func NewAlarmInfoCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoCreateLogic
func (*AlarmInfoCreateLogic) AlarmInfoCreate ¶
type AlarmInfoDeleteLogic ¶
func NewAlarmInfoDeleteLogic ¶
func NewAlarmInfoDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoDeleteLogic
func (*AlarmInfoDeleteLogic) AlarmInfoDelete ¶
type AlarmInfoIndexLogic ¶
func NewAlarmInfoIndexLogic ¶
func NewAlarmInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoIndexLogic
func (*AlarmInfoIndexLogic) AlarmInfoIndex ¶
func (l *AlarmInfoIndexLogic) AlarmInfoIndex(in *ud.AlarmInfoIndexReq) (*ud.AlarmInfoIndexResp, error)
type AlarmInfoReadLogic ¶
func NewAlarmInfoReadLogic ¶
func NewAlarmInfoReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoReadLogic
func (*AlarmInfoReadLogic) AlarmInfoRead ¶
type AlarmInfoUpdateLogic ¶
func NewAlarmInfoUpdateLogic ¶
func NewAlarmInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoUpdateLogic
func (*AlarmInfoUpdateLogic) AlarmInfoUpdate ¶
type AlarmRecordCreateLogic ¶
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 ¶
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 ¶
func NewAlarmRecordIndexLogic ¶
func NewAlarmRecordIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmRecordIndexLogic
func (*AlarmRecordIndexLogic) AlarmRecordIndex ¶
func (l *AlarmRecordIndexLogic) AlarmRecordIndex(in *ud.AlarmRecordIndexReq) (*ud.AlarmRecordIndexResp, error)
告警记录
type AlarmSceneDeleteLogic ¶
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 ¶
func NewAlarmSceneIndexLogic ¶
func NewAlarmSceneIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmSceneIndexLogic
func (*AlarmSceneIndexLogic) AlarmSceneIndex ¶
func (l *AlarmSceneIndexLogic) AlarmSceneIndex(in *ud.AlarmSceneIndexReq) (*ud.AlarmSceneIndexResp, error)
type AlarmSceneMultiCreateLogic ¶
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 SceneInfoCreateLogic ¶
func NewSceneInfoCreateLogic ¶
func NewSceneInfoCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneInfoCreateLogic
func (*SceneInfoCreateLogic) SceneInfoCreate ¶
场景
type SceneInfoDeleteLogic ¶
func NewSceneInfoDeleteLogic ¶
func NewSceneInfoDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneInfoDeleteLogic
func (*SceneInfoDeleteLogic) SceneInfoDelete ¶
type SceneInfoIndexLogic ¶
func NewSceneInfoIndexLogic ¶
func NewSceneInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneInfoIndexLogic
func (*SceneInfoIndexLogic) SceneInfoIndex ¶
func (l *SceneInfoIndexLogic) SceneInfoIndex(in *ud.SceneInfoIndexReq) (*ud.SceneInfoIndexResp, error)
type SceneInfoReadLogic ¶
func NewSceneInfoReadLogic ¶
func NewSceneInfoReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneInfoReadLogic
func (*SceneInfoReadLogic) SceneInfoRead ¶
type SceneInfoUpdateLogic ¶
func NewSceneInfoUpdateLogic ¶
func NewSceneInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneInfoUpdateLogic
func (*SceneInfoUpdateLogic) SceneInfoUpdate ¶
type SceneLogIndexLogic ¶
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 ¶
func NewSceneManuallyTriggerLogic ¶
func NewSceneManuallyTriggerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SceneManuallyTriggerLogic
func (*SceneManuallyTriggerLogic) SceneManuallyTrigger ¶
Source Files ¶
- alarmInfoCreateLogic.go
- alarmInfoDeleteLogic.go
- alarmInfoIndexLogic.go
- alarmInfoReadLogic.go
- alarmInfoUpdateLogic.go
- alarmRecordCreateLogic.go
- alarmRecordDealLogic.go
- alarmRecordIndexLogic.go
- alarmSceneDeleteLogic.go
- alarmSceneIndexLogic.go
- alarmSceneMultiCreateLogic.go
- assemble.go
- common.go
- sceneInfoCreateLogic.go
- sceneInfoDeleteLogic.go
- sceneInfoIndexLogic.go
- sceneInfoReadLogic.go
- sceneInfoUpdateLogic.go
- sceneLogIndexLogic.go
- sceneManuallyTriggerLogic.go
Click to show internal directories.
Click to hide internal directories.