package com.zt.plat.module.base.controller.admin.base.vo;

import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 物料信息分页 Request VO")
@Data
public class MaterialInfomationPageReqVO extends PageParam {

    @Schema(description = "物料编码")
    private String code;

    @Schema(description = "物料名称", example = "张三")
    private String name;

    @Schema(description = "分类ID", example = "1024")
    private Long classesId;

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}