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

import com.zt.plat.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.LocalDateTime;

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

@Schema(description = "管理后台 - 模板分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DocTemplatePageReqVO extends PageParam {

    @Schema(description = "模板名称", example = "采购合同模板")
    private String tmplName;

    @Schema(description = "模板编码", example = "PO_CONTRACT_001")
    private String tmplCode;

    @Schema(description = "所属分类", example = "1")
    private Long categoryId;

    @Schema(description = "状态（1=启用，0=停用，2=草稿）", example = "1")
    private String enabled;

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

}
