package com.ltgk.port.domain.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 报警参数配置（主要为设备离线报警，休渔期出海报警） (AlarmConfig)实体类
 *
 * @author Qi ChengBin
 * @date 2025-06-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "alarm_config")
@ApiModel(value = "报警参数配置（主要为设备离线报警，休渔期出海报警）对象", description = "AlarmConfig表")
public class AlarmConfig extends BasePage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "报警配置主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @NotBlank(message = "主键信息不能为空", groups = {Detail.class, Update.class})
    private String id;

    @ApiModelProperty(value = "报警类型")
    @TableField(value = "alarm_type")
    private String alarmType;

    @ApiModelProperty(value = "报警类型英文")
    @TableField(value = "alarm_type_en")
    private String alarmTypeEn;

    @ApiModelProperty(value = "报警时间间隔")
    @TableField(value = "alarm_interval")
    private Double alarmInterval;

    @ApiModelProperty(value = "报警范围(休渔期出海)")
    @TableField(value = "alarm_range")
    private String alarmRange;

    @ApiModelProperty(value = "报警开始时间")
    @TableField(value = "alarm_begin_at")
    private String alarmBeginAt;

    @ApiModelProperty(value = "报警结束时间")
    @TableField(value = "alarm_end_at")
    private String alarmEndAt;

    @ApiModelProperty(value = "报警次数判断数量")
    @TableField(value = "alarm_num")
    private Integer alarmNum;

    @ApiModelProperty(value = "离线报警间隔（H）")
    @TableField(value = "out_line_interval")
    private Double outLineInterval;

    @ApiModelProperty(value = "开关控制，伏休期除外；0-关，1-开")
    @TableField(value = "config_switch")
    private Integer configSwitch;

    @ApiModelProperty(value = "创建人账号")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at")
    private Date createAt;

    @ApiModelProperty(value = "最后更新人")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(value = "最新更新时间")
    @TableField(value = "update_at")
    private Date updateAt;

    @ApiModelProperty(value = "删除标志：0：未删除；1：已删除")
    @TableField(value = "del_flag")
    @TableLogic(delval = "1", value = "0")
    private Integer delFlag;

    @ApiModelProperty(value = "开始时间")
    @TableField(exist = false)
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField(exist = false)
    private String endTime;
}

