package com.zd.bottle.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.zd.common.core.web.domain.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;


/**
 * <p>
 * 报警记录表
 * </p>
 *
 * @author hanson
 * @since 2022-09-08
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "AlarmRecord对象", description = "报警记录表")
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class AlarmRecord extends BaseBean{

    @ApiModelProperty("数据主键，关联其他业务表中的数据id")
    private Long masterId;

    @ApiModelProperty("电子标签")
    private String electronicTag;

    @ApiModelProperty("报警照片附件")
    private String attachmentUrl;

    @ApiModelProperty("报警类型;1:出门,2:进门")
    private Integer type;

    @ApiModelProperty("产品类型;1:气瓶,2:其他")
    private Integer productType;

    @ApiModelProperty("报警时间")
    private Date alarmTime;

    /**
     * 报警开始时间
     */
    private transient String startTime;
    /**
     * 报警结束时间
     */
    private transient String endTime;
}
