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

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - 长者巡房项目 Response VO")
@Data
public class ElderlyItemsRoundRespVO {

    @Schema(description = "长者id", example = "1")
    private Long elderId;

    @Schema(description = "长者姓名")
    private String elderName;

    @Schema(description = "楼栋")
    private String buildName;

    @Schema(description = "楼层")
    private String floorName;

    @Schema(description = "房间号")
    private String roomName;

    @Schema(description = "床位号")
    private String bedName;

    @Schema(description = "巡房记录明细分页")
    private PageResult<Record> pageResult;

    @Schema(description = "管理后台 - 长者巡房项目明细 Response VO")
    @Data
    public static class Record {

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

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

        @Schema(description = "角色", example = "护理员")
        private String role;

        @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 = "巡房时间")
        @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
        private LocalDateTime roundTime;

        @Schema(description = "创建时间")
        private LocalDateTime createTime;

        @Schema(description = "更新时间")
        private LocalDateTime updateTime;

        @Schema(description = "创建人")
        private String creator;

        @Schema(description = "更新人")
        private String updater;

        @Schema(description = "状态，0：异常，1：正常")
        private Integer status;
    }
}
