You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.6 KiB
52 lines
1.6 KiB
package values |
|
|
|
import ( |
|
"server/call" |
|
) |
|
|
|
// WarnListResp 预警列表返回 |
|
type WarnListResp struct { |
|
List []call.SysWarn |
|
} |
|
|
|
// AddWarnReq 新增预警 |
|
// Channel 生效的渠道 |
|
// Type 预警类型 |
|
// Condition 预警条件 |
|
// WarnWay 预警方式 1手机短信 |
|
// WarnMember 预警人员id |
|
// Interval 提醒间隔单位分钟 |
|
// Phone 电话号码 |
|
type AddWarnReq struct { |
|
Channel []int `json:"Channel" binding:"required"` |
|
Type int `json:"Type" binding:"required"` |
|
Condition map[string]interface{} `json:"Condition" binding:"required"` |
|
WarnWay int `json:"WarnWay" binding:"required"` |
|
WarnMember []int `json:"WarnMember"` |
|
Interval int `json:"Interval" binding:"required"` |
|
OtherPhone []string `json:"OtherPhone"` |
|
} |
|
|
|
// EditWarnReq 修改预警 |
|
// ID 预警id |
|
// Channel 生效的渠道 |
|
// Type 预警类型 |
|
// Condition 预警条件 |
|
// WarnWay 预警方式 1手机短信 |
|
// WarnMember 预警人员id |
|
// Interval 提醒间隔单位分钟 |
|
type EditWarnReq struct { |
|
ID string `json:"ID" binding:"required"` |
|
Channel *[]int `json:"Channel"` |
|
Type *int `json:"Type"` |
|
Condition *map[string]interface{} `json:"Condition"` |
|
WarnWay *int `json:"WarnWay"` |
|
WarnMember *[]int `json:"WarnMember"` |
|
Interval *int `json:"Interval"` |
|
OtherPhone *[]string `json:"OtherPhone"` |
|
} |
|
|
|
// DelWarnReq 删除预警 |
|
type DelWarnReq struct { |
|
ID string `json:"ID" binding:"required"` |
|
}
|
|
|