package devices import ( "mime/multipart" "server/dao" "server/model/common/request" ) type SearchInfo struct { Page int `json:"page" form:"page"` // 页码 PageSize int `json:"pageSize" form:"pageSize"` // 每页大小 ProjectId uint `json:"projectId" form:"projectId"` //关键字1 Sn string `json:"sn" form:"sn"` //关键字2 } type ReqScreens struct { ID uint `json:"id"` //ID ScreensName string `json:"screensName"` //名称 Sn string `json:"sn"` //设备sn ProjectId uint `json:"projectId"` //归属项目id IpAddress string `json:"ipAddress"` //ip地址 Remark string `json:"remark"` //备注 } type ProgramReq struct { DeviceSn string `json:"deviceSn"` Program dao.Program `json:"program"` } type SoundPeriodReq struct { DeviceSn string `json:"deviceSn"` SoundPeriod dao.SoundPeriod `json:"soundPeriod"` } type SetDisContent struct { Num string `json:"num"` Effect string `json:"effect"` Speed string `json:"speed"` Stay string `json:"stay"` Total string `json:"total"` Color string `json:"color"` Content string `json:"content"` } type DiscontentJSON struct { Setdiscontent0 SetDisContent `json:"setdiscontent0"` } type SetPeropdtime struct { Time string `json:"time"` Period0 dao.IntArray `json:"period0"` Period1 dao.IntArray `json:"period1"` Period2 dao.IntArray `json:"period2"` Period3 dao.IntArray `json:"period3"` Period4 dao.IntArray `json:"period4"` Period5 dao.IntArray `json:"period5"` Period6 dao.IntArray `json:"period6"` Period7 dao.IntArray `json:"period7"` } type PeriodtimeJSON struct { Setperiodtime0 SetPeropdtime `json:"setperiodtime0"` } type VoiceReq struct { DeviceSn string `json:"deviceSn"` Voice dao.Voice `json:"voice"` } type VoiceJSON struct { Audionumset0 SetVoice `json:"audionumset0"` } type SetVoice struct { Num0 string `json:"num0"` Num1 string `json:"num1"` Num2 string `json:"num2"` Num3 string `json:"num3"` Num4 string `json:"num4"` } type JSONForm struct { Sn string `json:"sn"` Json string `json:"json"` } // CameraEndianHeartbeatRequest 摄像头心跳 type CameraEndianHeartbeatRequest struct { DevType string `json:"DevType"` DevName string `json:"DevName"` SerialNum string `json:"SerialNum"` LocalTime string `json:"LocalTime"` ReportCount int `json:"ReportCount"` } type CameraEndianHeartbeatResponse struct { ReturnCode int `json:"ReturnCode"` PushEventPic bool `json:"PushEventPic"` } // 摄像头推送 ------------------------------------------------------------------------------- // 表单绑定结构体:对应 multipart/form-data 中的字段 type CameraEventForm struct { // 匹配表单中的 "EventInfo" 字段(filename="EventInfo.json") // binding:"required" 表示该字段必填 EventInfo *multipart.FileHeader `form:"EventInfo" binding:"required"` File *multipart.FileHeader `form:"file" binding:"omitempty"` } type CameraEndianEventRequest struct { DevType string `json:"DevType"` DevName string `json:"DevName"` SerialNum string `json:"SerialNum"` Channel int `json:"Channel"` ChannelName string `json:"ChannelName"` LocalTime string `json:"LocalTime"` EventType string `json:"EventType"` PersonInfo interface{} `json:"PersonInfo"` ElevatorInfo interface{} `json:"ElevatorInfo"` EbikeInfo interface{} `json:"EbikeInfo"` OverallImgInfo interface{} `json:"OverallImgInfo"` AlarmInfo interface{} `json:"AlarmInfo"` } type CameraEndianEventResponse struct { ReturnCode int `json:"ReturnCode"` } type SearchCamera struct { request.PageInfo } type SearchCaptureVehicles struct { request.PageInfo }