package com.yn.bftl.thirdparty.modules.baiduai.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @Author：Vance
 * @Description：营业执照识别响应vo
 * @Date：2022/12/21 09:30
 */
@ApiModel(value = "BusinessLicenseResponseVO", description = "营业执照识别响应vo")
@Data
@Builder
@AllArgsConstructor
public class BusinessLicenseResponseVO {

    @ApiModelProperty("请求标识码，随机数，唯一")
    private Long log_id;

    @ApiModelProperty("响应编码")
    private Integer error_code;

    @ApiModelProperty("错误信息")
    private String error_msg;

    @ApiModelProperty("图像方向。\n" +
            "-1：未定义，\n" +
            "0：正向，\n" +
            "1：逆时针90度，\n" +
            "2：逆时针180度，\n" +
            "3：逆时针270度")
    private Integer direction;

    @ApiModelProperty("当输入参数 risk_warn=true 时返回识出的营业执照的类型：normal-正常营业执照；copy-复印件；screen-翻拍；scan-扫描")
    private String risk_type;

    @ApiModelProperty("识别结果")
    private Map<String, Map<String, Object>> words_result;

    @ApiModelProperty("识别结果数，表示words_result的元素个数")
    private Integer words_result_num;
}
