package com.storlead.sales.pojo.dto.customer;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.annotate.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @program: sp-tems
 * @description:
 * @author: xiaojiawei
 * @create: 2022-07-25 15:52
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BulletinDTO", description="公告DTO对象")
public class BulletinDTO  {

    @ApiModelProperty(value = "公告ID")
    private Long id;

    @ApiModelProperty(value = "公告标题")
    private String title;

    @ApiModelProperty(value = "所属栏目（对应字典栏目value）")
    @Dict(dictCode = "column_value")
    private String columnValue;

    @ApiModelProperty(value = "公告内容")
    private String content;

    @ApiModelProperty(value = "公告通知范围类型： 1.全员 2.部分")
    private Integer bulletinType;

    @ApiModelProperty(value = "允许评论： 1.允许 2.不允许")
    private Integer isTalk;

    @ApiModelProperty(value = "附件")
    private List<Long> fileIds;

    @ApiModelProperty(value = "提醒类型：site：站内，mail：邮件,sms：短信 ： 多个逗号分割")
    @Dict(dictCode = "task_remind_mode",valueField = "remindModeName",multiple = true)
    private String remindMode;

    @ApiModelProperty(value = "截止时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deadlineDate;

    @ApiModelProperty(value = "通知时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:MM:ss")
    private LocalDateTime noticeTime;


    @ApiModelProperty(value = "成员人id多个")
    private String noticeUserIds;

    @ApiModelProperty(value = "成员人idList")
    private List<Long> noticeUserIdList;

    @ApiModelProperty(value = "@人id多个")
    private String atUserIds;
}
