package com.writeoff.module.ocr.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

public class IdCardOcrRequest {
    @NotBlank(message = "objectKey不能为空")
    private String objectKey;

    @NotBlank(message = "idCardSide不能为空")
    @Pattern(regexp = "front|back", message = "idCardSide仅支持front或back")
    private String idCardSide;

    public String getObjectKey() {
        return objectKey;
    }

    public void setObjectKey(String objectKey) {
        this.objectKey = objectKey;
    }

    public String getIdCardSide() {
        return idCardSide;
    }

    public void setIdCardSide(String idCardSide) {
        this.idCardSide = idCardSide;
    }
}

