package com.ruoyi.web.work.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseData;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author lsw
 * @date 2024-07-18
 */
@Data
@TableName(value = "tb_follow_record")
@Accessors(chain = true)
public class FollowRecord extends BaseData {
    private static final long serialVersionUID = 1L;

    private Long id;


    @NotNull(message = "推送类型不能为空")
    @Min(value = 0, message = "只能选择复诊提醒或随访提醒")
    @Max(value = 1, message = "只能选择复诊提醒或随访提醒")
    @ApiModelProperty(value = "提醒类型:0=复诊提醒,1=随访提醒")
    private Integer type;

    @ApiModelProperty(value = "患者id")
    private Long patientId;

    @ApiModelProperty(value = "患者姓名")
    private String patientName;

    @NotBlank(message = "模板名称或提醒标题不能为空")
    @ApiModelProperty(value = "模板名称")
    private String templateName;

    @NotBlank(message = "回访内容或者提醒内容不能为空")
    @ApiModelProperty(value = "回访内容")
    private String op;

    @ApiModelProperty(value = "状态:0=未回访,1=已回访")
    private Integer state;

    @TableField(exist = false)
    private List<Patient> patientList;
}
