package com.sptg.device.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * title: TimeStrategyTaskConf
 * package: com.sptg.device.api.entity
 * description: 时间策略参数任务
 */
@Setter
@Getter
@TableName(value = "time_strategy_task_conf")
public class TimeStrategyTaskConf {
    /**
     * 主键
     */
    @TableId(value = "l_id",type = IdType.AUTO)
    private Long id;

    /**
     * 任务Id
     */
    @TableField(value="l_task_id")
    private  long task;

    /**
     * 开始时间
     */
    @JsonFormat(pattern ="HHmm",timezone="GMT+8")
    @TableField(value="t_begin_time")
    private Date beginTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern ="HHmm",timezone="GMT+8")
    @TableField(value="t_end_time")
    private Date endTime;

    /**
     * 音量
     */
    @TableField(value="i_sound_volume")
    private int soundVolume;

    /**
     * 屏幕亮度
     */
    @TableField(value="i_screen_luminance")
    private int screenLuminance;

    /**
     * 补光灯亮度
     */
    @TableField(value="i_fill_light_luminance")
    private int fillLightLuminance;
    @TableField(exist = false)
    private String beginTimeStr;
    @TableField(exist = false)
    private String endTimeStr;
}
