package com.chushang.inspection.project.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TaskExcelDTO implements Serializable {

    @ExcelProperty("一分")
    @NotBlank(message = "名称不能为空")
    @Size(max = 64, message = "名称不能超过64个字符")
    private String firstBank;

    @ExcelProperty("二分")
    @Size(max = 64, message = "名称不能超过64个字符")
    private String secondBank;

    @ExcelProperty("一支")
    @Size(max = 64, message = "名称不能超过64个字符")
    private String firstSubBank;

    @ExcelProperty("二支")
    @Size(max = 64, message = "名称不能超过64个字符")
    private String secondSubBank;

    @ExcelProperty("联系人")
    @Size(max = 32, message = "联系人不能超过32个字符")
    private String contact;

    @ExcelProperty("联系电话")
    @Size(max = 11, message = "联系电话不能超过11个字符")
    private String phone;

//    @ExcelProperty("编号")
//    @Size(max = 63, message = "编号不能超过63个字符")
//    private String number;
}
