package com.cwhelp.admin.business.validator;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author yan.y
 * @date 2019/08/26
 */
@Data
public class BssVatInvoiceCheckValid implements Serializable {
    @NotEmpty(message = "发票代码不能为空")
    private String invoiceCode;
    @NotEmpty(message = "发票号码不能为空")
    private String invoiceNo;
    @NotEmpty(message = "发票日期不能为空")
    @Pattern(regexp = "[0-9]{4}-[0-9]{2}-[0-9]{2}", message = "日期格式不正确")
    private String invoiceDate;
    @NotEmpty(message = "校验码不能为空")
    private String checkCode;
}