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

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;

@Schema(description = "管理后台 - 送餐历史记录 Response VO")
@Data
public class YkElderlyDeliveryHistoryRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "长者姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    private String ykElderName;

    @Schema(description = "身份证号", requiredMode = Schema.RequiredMode.REQUIRED, example = "310101194801010001")
    private String idCard;

    @Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED, example = "13812345678")
    private String phone;

    @Schema(description = "送餐地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "上海市黄浦区南京东路100号")
    private String deliveryAddress;

    @Schema(description = "餐标", requiredMode = Schema.RequiredMode.REQUIRED, example = "25")
    private BigDecimal mealStandard;

    private Integer mealType;

    @Schema(description = "送餐员", requiredMode = Schema.RequiredMode.REQUIRED, example = "刘师傅")
    private String deliveryPersonName;

    @Schema(description = "送餐员ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long deliveryPersonId;

    @Schema(description = "配送费", requiredMode = Schema.RequiredMode.REQUIRED, example = "30")
    private BigDecimal deliveryFee;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "confirmed")
    private String status;

    @Schema(description = "是否已送达", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    private Integer isDelivery;

    @Schema(description = "送餐日期", requiredMode = Schema.RequiredMode.REQUIRED, example = "2023-10-20")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate deliveryDate;

    @Schema(description = "备注", example = "少盐少油")
    private String remark;
}
