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

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.time.LocalDate;

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

@Schema(description = "管理后台 - 尿不湿领取记录新增/修改 Request VO")
@Data
public class ElderlyDiapersGetRecordSaveReqVO {

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

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

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

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

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

    @Schema(description = "登记人")
    private String assessor;

    @Schema(description = "登记日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = "GMT+8")
    private LocalDate assessDate;

    @Schema(description = "登记数据")
    private String assessData;

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