Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| df5fb556a0 |
@@ -127,7 +127,6 @@ type AutomationCondition struct {
|
||||
}
|
||||
|
||||
// 自动化动作
|
||||
|
||||
type AutomationAction struct {
|
||||
Id uint32 `json:"id"` // ID
|
||||
Type uint8 `json:"type"` // 类型
|
||||
@@ -141,17 +140,18 @@ type AutomationAction struct {
|
||||
|
||||
// 自动化任务
|
||||
type AutomationTask struct {
|
||||
Id uint32 `json:"id"` // ID
|
||||
Title string `json:"title"` // 标题
|
||||
CreateUserId uint32 `json:"create_user_id"` // 创建用户ID
|
||||
EffectivePeriod uint8 `json:"effective_period"` // 生效时段
|
||||
PeriodBeginTime *string `json:"period_begin_time,omitempty"` // 时段开始时间
|
||||
PeriodEndTime *string `json:"period_end_time,omitempty"` // 时段结束时间
|
||||
RepeatType uint8 `json:"repeat_type"` // 重复类型
|
||||
CustomRepeatRange []uint8 `json:"custom_repeat_range"` // 自定义重复范围
|
||||
IsSatisfyAll uint8 `json:"is_satisfy_all"` // 是否要满足所有条件
|
||||
ConditionList []AutomationCondition `json:"condition_list"` // 条件列表
|
||||
ActionList []AutomationAction `json:"action_list"` // 动作列表
|
||||
Id uint32 `json:"id"` // ID
|
||||
Title string `json:"title"` // 标题
|
||||
CreateUserId uint32 `json:"create_user_id"` // 创建用户ID
|
||||
EffectivePeriod uint8 `json:"effective_period"` // 生效时段
|
||||
PeriodBeginTime *string `json:"period_begin_time,omitempty"` // 时段开始时间
|
||||
PeriodEndTime *string `json:"period_end_time,omitempty"` // 时段结束时间
|
||||
RepeatType uint8 `json:"repeat_type"` // 重复类型
|
||||
CustomRepeatRange []uint8 `json:"custom_repeat_range"` // 自定义重复范围
|
||||
IsSatisfyAll uint8 `json:"is_satisfy_all"` // 是否要满足所有条件
|
||||
EventConditionList []AutomationCondition `json:"event_condition_list"` // 事件条件列表
|
||||
StatusConditionList []AutomationCondition `json:"status_condition_list"` // 事件条件列表
|
||||
ActionList []AutomationAction `json:"action_list"` // 动作列表
|
||||
}
|
||||
|
||||
// 系统位置
|
||||
|
||||
Reference in New Issue
Block a user