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

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

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

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

@Schema(description = "管理后台 - 长者巡房项目新增/修改 Request VO")
@Data
public class ElderlyItemsRoundSaveReqVO {

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

    @Schema(description = "记录人")
    private String recorder;

    @Schema(description = "角色", requiredMode = Schema.RequiredMode.REQUIRED, example = "护理员")
    @NotNull(message = "角色不能为空")
    private String role;

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

    @Schema(description = "楼栋id", example = "1")
    private Long buildId;

    @Schema(description = "楼层id", example = "1")
    private Long floorId;

    @Schema(description = "房间id", example = "1")
    private Long roomId;

    @Schema(description = "巡视项目组")
    private String items;

    @Schema(description = "语音")
    private String voice;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "机构id", example = "1")
    private Long tenantId;

    @Schema(description = "巡房时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime roundTime;
}

