93 lines
2.4 KiB
Go
93 lines
2.4 KiB
Go
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"`
|
||
}
|