package com.pcloud.book.timecontrol.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @date: 2020年01月30日 18:24
 * @Author: Zcy
 * @Descprition 任务配置
 */
@Data
public class UpdateTaskItemDto implements Serializable {

    @NotNull(message = "消息配置ID不能为空")
    private Integer id;

    @Max(value = 200)
    private Integer startDay;

    private Integer finishConfirm;

    private String finishKeyWord;

    List<CreateReplyMessageDto> replyMessageList;

    private Integer tdConfirm;

    private String finishLinkIntroduce;

    private String finishLinkUrl;

    List<CreateReplyMessageDto> completedReplyMessageList;

    private Integer addSendTime;

    @NotNull(message = "发送时间设置不能为空")
    private String sendHour;

    private Integer progressGuidance;

    private String itemIntroduce;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

    private Integer pushType;

    private  List<Integer> weekdays;

}
