package com.sandu.ximon.dao.domain;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.sandu.common.mybatis.JsonIntegerArrayTypeHandler;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.time.LocalDateTime;
|
import java.util.List;
|
|
@Data
|
public class LampMission implements Serializable {
|
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
private Long userId;
|
|
/*任务执行天数*/
|
@TableField(typeHandler = JsonIntegerArrayTypeHandler.class)
|
private Integer[] weeks;
|
|
//亮度
|
private Double initial;
|
|
/** 开灯时间 */
|
// @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
|
//@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss,timezone = \"GMT+8")
|
//@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="HH:mm")
|
private LocalDateTime onTime;
|
|
|
/** 关灯时间 */
|
// @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
|
//@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss,timezone = \"GMT+8")
|
//@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="HH:mm")
|
private LocalDateTime offTime;
|
|
/**
|
* 亮度调节
|
*/
|
// private List<LightAdjust> adjusts;
|
|
|
}
|