package com.xinelu.manage.dto.chatrecord;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.List;
import lombok.Data;

/**
 * @description: 消息列表查询传输对象
 * @author: haown
 * @create: 2022-12-01 21:17
 **/
@Data
public class MessageSearchDto {

	@ApiModelProperty("消息类别 1：通知公告，2：健康推送，3：在线咨询 4：消息通知")
	private String messageCategory;

	@ApiModelProperty("通知适用人群（0：全部人群）")
	private String crowds;

	@ApiModelProperty(value = "居民注册业务主键")
	private Long patientId;

	@ApiModelProperty("发送人编号")
	private Long senderId;

	@ApiModelProperty("发送人编号(家医医生编号)")
	private String senderNo;

	@ApiModelProperty("接收人编号")
	private Long recipientId;

	@ApiModelProperty("已读状态，0：未读，1：已读")
	private String readStatus;

	@ApiModelProperty("用户类型，0：小程序，1：医生")
	private String userType;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@ApiModelProperty(value = "开始日期")
	private Date startDate;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@ApiModelProperty(value = "结束日期")
	private Date endDate;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "居民绑定时间", hidden = true)
	private Date bindingTime;

	/**
	 * 页码
	 */
	@ApiModelProperty(value = "页码")
	private Integer pageNum;
	/**
	 * 每页大小
	 */
	@ApiModelProperty(value = "每页大小")
	private Integer pageSize;

	@ApiModelProperty(value = "通知适用人群编号集合")
	private List<String> crowdNoList;

	@ApiModelProperty("城市编码(1：德州 2：东营)")
	private String cityCode;
}
