package cn.iocoder.yudao.module.system.controller.admin.biz.vo.elderlyadapt;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 管理后台 - 长者入住适应服务记录新增/修改 Request VO
 *
 * @author 系统管理员
 */
@Schema(description = "管理后台 - 长者入住适应服务记录新增/修改 Request VO")
@Data
public class ElderlyAdaptServiceRecordSaveReqVO {

    @Schema(description = "id（修改时必传）", example = "1")
    private Long id;

    @Schema(description = "长者id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "长者id不能为空")
    private Long elderId;

    @Schema(description = "长者名称", example = "张三")
    private String elderName;

    @Schema(description = "记录时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "记录时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = "GMT+8")
    private Date recordTime;

    @Schema(description = "类型，1、新收长者入住适应计划，2、新入住长者适应状况评估表", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @Schema(description = "适应计划")
    private String adaptPlan;

    @Schema(description = "模板名称")
    private String templateName;

    @Schema(description = "配置")
    private String jsonOption;

    @Schema(description = "机构id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "机构id不能为空")
    private Long tenantId;
}
