package com.yhy.module.core.controller.admin.infoprice.vo;

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 InfoPriceBookPageReqVO extends PageParam {

    @Schema(description = "树节点ID", example = "1")
    private Long treeNodeId;

    @Schema(description = "信息价册名称", example = "2024年1月信息价")
    private String name;

    @Schema(description = "发布状态", example = "published")
    private String publishStatus;

    @Schema(description = "开始时间-开始", example = "2024-01-01")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate startTimeBegin;

    @Schema(description = "开始时间-结束", example = "2024-01-31")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate startTimeEnd;

    @Schema(description = "结束时间-开始", example = "2024-01-01")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate endTimeBegin;

    @Schema(description = "结束时间-结束", example = "2024-01-31")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate endTimeEnd;
}
