package com.example.zxweb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Description 策略 对象
 * @Author ZhouWenTao
 * @Date 2023/9/13 13:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="zx_celue对象", description="zx_celue对象")
@TableName(value = "zx_celue")
public class ZxCelue implements Serializable {
    @TableId
    @ApiModelProperty(value = "策略id")
    private String celueid;
    @ApiModelProperty(value = "设备id")
    private String devid;
    @ApiModelProperty(value = "策略名称")
    private String name;
    @ApiModelProperty(value = "循环周期")
    @TableField(exist = false)
    private String xunhuanzhouqi;
    @ApiModelProperty(value = "状态(1启动中/0关闭中)")
    private String status;
    @ApiModelProperty(value = "事件类型")
    private String type;
    @ApiModelProperty(value = "备注")
    private String description;
    @ApiModelProperty(value = "定时触发条件")
    private String triggereTime;
    @ApiModelProperty(value = "触发条件")
    private String triggerCondition;
    @ApiModelProperty(value = "执行条件")
    private String exeCondition;
    @ApiModelProperty(value = "执行条件并列关系")
    private String exeRelation;
    @ApiModelProperty(value = "触发动作")
    private String action;
    /*动作延迟多少秒执行。不填则为0，即不延迟，取值范围为0~86400秒。*/
    @ApiModelProperty(value = "动作延迟时间")
    private String delayTime;
    @ApiModelProperty(value = "生效开始时间")
    private String startTime;
    @ApiModelProperty(value = "生效结束时间")
    private String endTime;
}
