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

    @Schema(description = "金属元素缩写")
    private String abbreviation;

    @Schema(description = "金属元素名称", example = "芋艿")
    private String name;

    @Schema(description = "金属元素编码")
    private String coding;

    @Schema(description = "品位单位")
    private String gradeUnit;

    @Schema(description = "小数位数")
    private Long decimalValue;

    @Schema(description = "是否启用")
    private String isEnable;

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

    @Schema(description = "排序")
    private Integer sort;
}