package dto import ( "git.rtzhtech.cn/iss/public-lib/model" ) type AddLinkEventRes struct { model.LinkEvent Src []*model.LinkRelationObj `json:"src,omitempty"` Dst []*model.LinkRelationAction `json:"dst,omitempty"` } type DelLinkEventReq struct { EventId int64 `json:"event_id,omitempty"` StartTime string `json:"start_time,omitempty"` EndTime string `json:"end_time,omitempty"` } type GetLinkEventReq struct { StartTime string `json:"start_time,omitempty"` EndTime string `json:"end_time,omitempty"` RelationSrcDstAppId int //SrcAppId DstAppId查询与、或关系,1或,其他为与 SrcAppId []int32 `json:"src_app_id"` //SrcAppName string `json:"src_app_name,omitempty"` //来源app名称 SrcPositionName string `json:"src_position_name,omitempty"` //来源区域位置 DstAppId []int32 `json:"dst_app_id"` //DstAppName string `json:"dst_app_name,omitempty"` //目标app名称 DstPositionName string `json:"dst_position_name,omitempty"` //目标区域位置 DstDeviceName string `json:"dst_device_name,omitempty"` //目标所属设备名称 StrategyId []int64 `json:"strategy_id,omitempty"` //策略ID LimitPage } type GetLinkEventResp struct { List []*LinkEventDto `json:"list"` Total int64 `json:"total"` } type LinkEventDto struct { model.LinkEvent SrcAppName []string `json:"src_app_name,omitempty"` //来源app名称 SrcPositionName []string `json:"src_position_name,omitempty"` //来源区域位置 DstAppName string `json:"dst_app_name,omitempty"` //目标app名称 DstPositionName string `json:"dst_position_name,omitempty"` //目标区域位置 DstDeviceName string `json:"dst_device_name,omitempty"` //目标所属设备名称 LinkStrategy model.LinkStrategy Dst model.DevCpinfo } // LinkEventDst // @Description: 联动目标动作 type LinkEventDst struct { model.DevCpinfo Action []*LinkAction `json:"action,omitempty"` }