hikvision/iot/model/plan-model.go

93 lines
2.4 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
type PlanWeekRow struct {
CustomPlanId string `json:"customPlanId,omitempty"`
Enable bool `json:"enable"`
WeekPlan []PlanWeek `json:"weekPlan"`
}
type PlanWeekRes struct {
Hikvision
Data struct {
PlanWeekRow
} `json:"data"`
}
type PlanWeek struct {
Week string `json:"week"` //标准星期格式首字母大写Monday-星期一
TimeSegment []PlanPort `json:"timeSegment"`
}
type PlanPort struct {
Index int `json:"index"` //时间段编号从1开始范围1-8
Enable bool `json:"enable"` // 是否使能true-使能false-不使能
BeginTime string `json:"beginTime"` // 时间格式为 08:00:00
EndTime string `json:"endTime"` // 时间格式为 08:00:00
}
type PlanWeekDetail struct {
Hikvision
Data struct {
PageNo int `json:"pageNo"`
PageSize int `json:"pageSize"`
Total int `json:"total"`
Rows []PlanWeekRow `json:"rows"`
} `json:"data"`
}
type PlanHolidayDetail struct {
Hikvision
Data struct {
PageNo int `json:"pageNo"`
PageSize int `json:"pageSize"`
Total int `json:"total"`
Rows []PlanHolidayRow `json:"rows"`
} `json:"data"`
}
type PlanHolidayRowRes struct {
Hikvision
Data struct {
PlanHolidayRow
} `json:"data"`
}
type PlanHolidayRow struct {
CustomPlanId string `json:"customPlanId,omitempty"`
Enable bool `json:"enable"`
BeginDate string `json:"beginDate"` // 时间格式为 2019-08-09
EndDate string `json:"endDate"` // 时间格式为 2019-08-09
HolidayPlan []PlanPort `json:"holidayPlan"`
}
type PlanGroupConfig struct {
Hikvision
Data struct {
Enable bool `json:"enable"`
GroupName string `json:"groupName"`
HolidayPlanNo string `json:"holidayPlanNo"`
} `json:"data"`
}
type PlanChild struct {
PlanNo int `json:"planNo"`
CustomPlanId string `json:"customPlanId"`
}
type PlanHolidayGroup struct {
GroupNo int `json:"groupNo"`
Enable bool `json:"enable"`
GroupName string `json:"groupName"`
HolidayPlanList []PlanChild `json:"holidayPlanList"`
}
type PlanGlobalConfig struct {
Hikvision
Data struct {
Enable bool `json:"enable"`
TemplateName string `json:"templateName"`
WeekPlanNo int `json:"weekPlanNo"`
HolidayGroupNo string `json:"holidayGroupNo"`
} `json:"data"`
}