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

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

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - 长者血糖记录 Response VO")
@Data
public class ElderlyBloodSugarRecordRespVO {

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

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

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

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

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

    @Schema(description = "性别")
    private Integer elderSex;

    @Schema(description = "记录日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate recordDate;

    @Schema(description = "血糖值")
    private BigDecimal bloodSugar;

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

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

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

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

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

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

