package com.heyu.api.baidu.response.convert;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.heyu.api.baidu.response.BBaseResp;
import lombok.Data;
import lombok.NoArgsConstructor;

/***
 * https://console.bce.baidu.com/support/?_=1740667714316&timestamp=1740672155409#/api?product=AI&project=%E6%96%87%E5%AD%97%E8%AF%86%E5%88%AB&parent=%E6%99%BA%E8%83%BD%E6%96%87%E6%A1%A3%E5%88%86%E6%9E%90&api=rest%2F2.0%2Focr%2Fv1%2Fdoc_convert%2Fget_request_result&method=post
 *
 * 文档格式转换-获取结果
 */
@NoArgsConstructor
@Data
public class BGetRequestResultResp extends BBaseResp {


    @JsonProperty("success")
    private Boolean success;
    @JsonProperty("log_id")
    private String logId;
    @JsonProperty("result")
    private ResultDTO result;
    @JsonProperty("code")
    private Integer code;
    @JsonProperty("message")
    private String message;

    @NoArgsConstructor
    @Data
    public static class ResultDTO {
        @JsonProperty("task_id")
        private String taskId;
        @JsonProperty("ret_code")
        private Integer retCode;
        @JsonProperty("ret_msg")
        private String retMsg;
        @JsonProperty("percent")
        private Integer percent;
        @JsonProperty("result_data")
        private ResultDataDTO resultData;
        @JsonProperty("create_time")
        private String createTime;
        @JsonProperty("start_time")
        private String startTime;
        @JsonProperty("end_time")
        private String endTime;

        @NoArgsConstructor
        @Data
        public static class ResultDataDTO {
            @JsonProperty("word")
            private String word;
            @JsonProperty("excel")
            private String excel;
        }
    }
}
