package cn.iocoder.yudao.module.system.controller.admin.yk.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import com.fasterxml.jackson.annotation.JsonFormat;
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 YkElderlyDeliveryHistoryPageReqVO extends PageParam {

    @Schema(description = "长者姓名", example = "张三")
    private String elderName;

    @Schema(description = "送餐日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] deliveryDate;

    @Schema(description = "餐次")
    private Integer mealType;

    @Schema(description = "送餐员ID", example = "1")
    private Long deliveryStaffId;

    @Schema(description = "状态", example = "confirmed")
    private String status;
}
