package cn.iocoder.yudao.module.erp.controller.admin.autocode.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.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 AutocodePartPageReqVO extends PageParam {

    @Schema(description = "规则ID", example = "11153")
    private Long ruleId;

    @Schema(description = "分段序号")
    private Integer partIndex;

    @Schema(description = "分段类型", example = "1")
    private String partType;

    @Schema(description = "分段编号")
    private String partCode;

    @Schema(description = "分段名称", example = "芋艿")
    private String partName;

    @Schema(description = "分段长度")
    private Integer partLength;

    @Schema(description = "日期时间格式")
    private String datetimeFormat;

    @Schema(description = "输入字符")
    private String inputCharacter;

    @Schema(description = "固定字符")
    private String fixCharacter;

    @Schema(description = "流水号起始值")
    private Integer seriaStartNo;

    @Schema(description = "流水号步长")
    private Integer seriaStep;

    @Schema(description = "流水号当前值")
    private Integer seriaNowNo;

    @Schema(description = "流水号是否循环")
    private String cycleFlag;

    @Schema(description = "循环方式")
    private String cycleMethod;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

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

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

}