package com.yuchen.saas.parking.charge.api.vo.alarm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value="告警推送明细", description="告警推送明细")
public class ChargeWarnPushConfigVO  {
    @ApiModelProperty(name = "id", value = "告警推送id")
    private Long id;
    @ApiModelProperty(name = "stationList", value = "电站列表")
    private List<ChargeWarnPushConfigVO.WarnPushStation> stationList;
    /**
     * 报警类型
     */
    @ApiModelProperty(name = "identity", value = "报警类型")
    private String identity;
    /**
     * 告警类型id
     */
    @ApiModelProperty(name = "categoryId", value = "告警类型id")
    private Long categoryId;
    /**
     * 推送频率（1：一次推送，2：半小时一次，3：一小时一次）
     */
    @ApiModelProperty(name = "pushRate", value = "推送频率（1：一次推送，2：半小时一次，3：一小时一次）")
    private Integer pushRate;
    /**
     * 推送类型（1：微信公众号）
     */
    @ApiModelProperty(name = "pushType", value = "推送类型（1：微信公众号）")
    private Integer pushType;

    @ApiModelProperty(name = "pushUserList", value = "推送人员列表")
    private List<ChargeWarnPushConfigVO.WarnPushUser> pushUserList;
    @Data
    public static class WarnPushUser{
        @ApiModelProperty(name = "name", value = "推送名字")
        private String name;

        @ApiModelProperty(name = "phone", value = "推送手机号码")
        private String phone;
    }

    @Data
    public static class WarnPushStation{
        @ApiModelProperty(name = "stationName", value = "电站名字")
        private String stationName;

        @ApiModelProperty(name = "id", value = "电站id")
        private Long id;
    }
}
