package com.clx.performance.utils.excel;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: aiqingguo
 * @Description:
 * @Date: 2022/8/18 14:25
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
public class ExcelField {
    
    private Integer column;
    private String fieldName;
    private String field;

    private Integer width;
    private Integer styleType;
    private Integer contentAlignment;
    private Integer span;

    public ExcelField(String fieldName, String field, Integer width) {
        this.fieldName = fieldName;
        this.field = field;
        this.width = width;
        this.span = 1;
    }

    public ExcelField(Integer column, String fieldName, String field, Integer width) {
        this.column = column;
        this.fieldName = fieldName;
        this.field = field;
        this.width = width;
        this.span = 1;
    }
    public ExcelField(Integer column, String fieldName, String field, Integer width, Integer span) {
        this.column = column;
        this.fieldName = fieldName;
        this.field = field;
        this.width = width;
        this.span = span;
    }
}
