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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * @Author: jinyd
 * @CreateTime: 2024/8/13  9:12
 * @Description:
 * @Version: 4.0
 */

@Schema(description = "管理后台 - 长者退住申请记录新增/修改 Request VO")
@Data
public class ElderlyRetreatRecordSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5017")
    private Long id;

    @Schema(description = "长者id", example = "14373")
    private Long elderlyId;

    @Schema(description = "退住日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "退住日期不能为空")
    private LocalDate retreatDate;

    @Schema(description = "费用截止日期")
    private LocalDate costDeadlineDate;

    @Schema(description = "退住原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不对")
    @NotEmpty(message = "退住原因不能为空")
    private String reason;

    @Schema(description = "退住描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @NotEmpty(message = "退住描述不能为空")
    private String description;

    @Schema(description = "审批状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "审批状态不能为空")
    private Integer status;

}
