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

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

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

@Schema(description = "管理后台 - 长者血糖记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ElderlyBloodSugarRecordPageReqVO extends PageParam {

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

    @Schema(description = "记录日期范围")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] recordDate;

    @Schema(description = "长者姓名（联表查询用）")
    private String elderName;
}
