123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- package model
- import "gorm.io/gorm"
- type Hikvision struct {
- gorm.Model
- }
- type Monitor struct {
- Id int `json:"Id"`
- Name string `json:"Name"`
- }
- type RealTimeInspection struct {
- Id int `json:"Id"`
- Name string `json:"Name"` //名称
- Location string `json:"Location"` //位置
- Event string `json:"Event"` //事件-列3
- Date string `json:"Date"`
- }
- type Device struct {
- Id int `json:"Id"`
- Name string `json:"Name"` //名称
- State int `json:"State"` //状态
- Date string `json:"Date"` //事件-列3
- }
- type Visitor struct {
- Id int `json:"Id"`
- Name string `json:"Name"` //名称
- State int `json:"State"` //状态
- Phone string `json:"Phone"` //电话
- Location string `json:"Location"` //位置
- Date string `json:"Date"` //时间
- }
- type AlarmList struct {
- Id int `json:"Id"`
- Name string `json:"Name"` //名称
- AlarmContent string `json:"AlarmContent"` //告警内容
- Location string `json:"Location"` //位置
- State int `json:"State"` //状态
- Date string `json:"Date"` //时间
- }
- type Door struct {
- Name string `json:"name"`
- RegionIndexCodes []string `json:"regionIndexCodes"`
- IsSubRegion bool `json:"isSubRegion"`
- PageNo int `json:"pageNo"`
- PageSize int `json:"pageSize"`
- AuthCodes []string `json:"authCodes"`
- Expressions []struct {
- Key string `json:"key"`
- Operator int `json:"operator"`
- Values []string `json:"values"`
- } `json:"expressions"`
- OrderBy string `json:"orderBy"`
- OrderType string `json:"orderType"`
- }
- type DoorResp struct {
- Code string `json:"code"`
- Msg string `json:"msg"`
- Data struct {
- Total int `json:"total"`
- PageNo int `json:"pageNo"`
- PageSize int `json:"pageSize"`
- List []DoorList `json:"list"`
- } `json:"data"`
- }
- type DoorList struct {
- IndexCode string `json:"indexCode"`
- ResourceType string `json:"resourceType"`
- Name string `json:"name"`
- DoorNo string `json:"doorNo"`
- ChannelNo string `json:"channelNo"`
- ParentIndexCode string `json:"parentIndexCode"`
- ControlOneId string `json:"controlOneId"`
- ControlTwoId string `json:"controlTwoId"`
- ReaderInId string `json:"readerInId"`
- ReaderOutId string `json:"readerOutId"`
- DoorSerial int `json:"doorSerial"`
- TreatyType string `json:"treatyType"`
- RegionIndexCode string `json:"regionIndexCode"`
- RegionPath string `json:"regionPath"`
- CreateTime string `json:"createTime"`
- UpdateTime string `json:"updateTime"`
- Description string `json:"description"`
- ChannelType string `json:"channelType"`
- RegionName string `json:"regionName"`
- RegionPathName string `json:"regionPathName"`
- InstallLocation string `json:"installLocation"`
- }
- type Response struct {
- RequestId string `protobuf:"bytes,1,opt,name=requestId,proto3" json:"requestId,omitempty"`
- Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
- Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
- Data any `json:"data"`
- }
- type DoControl struct {
- Code string `json:"code"`
- Msg string `json:"msg"`
- Data []DoControlData `json:"data"`
- }
- type DoControlData struct {
- DoorIndexCode string `json:"doorIndexCode"`
- ControlResultCode int `json:"controlResultCode"`
- ControlResultDesc string `json:"controlResultDesc"`
- }
- func (m *Hikvision) TableName() string {
- return "hikvision"
- }
|