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

import cn.iocoder.yudao.module.system.dal.dataobject.biz.ByodRegistrationDrugDO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import javax.validation.constraints.*;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - 长者自带药登记新增/修改 Request VO")
@Data
public class ByodRegistrationSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1932")
    private Long id;

    @Schema(description = "长者ID", example = "9832")
    private Long elderId;

    @Schema(description = "类型", example = "1")
    private Integer type;

    @Schema(description = "送药人姓名", example = "王五")
    private String deliveryPersonName;

    @Schema(description = "接收人姓名", example = "赵六")
    private String recipientName;

    @Schema(description = "登记时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate registrationDate;

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

    @Schema(description = "附件")
    private String files;

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

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

    @Schema(description = "药品列表")
    List<ByodRegistrationDrugDO> drugList;

}