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

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.mybatis.query.QueryBaseEntity;
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 org.w3c.dom.stylesheets.LinkStyle;

import java.time.LocalDate;
import java.util.List;

/**
 * @program: sp-tems
 * @description: 公告查询请求类
 * @author: xiaojiawei
 * @create: 2022-07-26 14:44
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BulletinSearchDTO", description="公告查询请求类")
public class BulletinSearchDTO extends QueryBaseEntity {
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate startDate;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate endDate;

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

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

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

    @ApiModelProperty(value = "发布人员id")
    private List<Long> createByIds;
}
