package com.heyu.api.baidu.handle.medical;


import com.heyu.api.baidu.BaiduBaseHandle;
import com.heyu.api.baidu.request.medical.BMedicalSummaryDiagnosisRequest;
import com.heyu.api.baidu.response.medical.BMedicalSummaryDiagnosisResp;
import org.springframework.stereotype.Component;


/***
 * https://console.bce.baidu.com/support/?_=1740575657628&timestamp=1740582137426#/api?product=AI&project=%E6%96%87%E5%AD%97%E8%AF%86%E5%88%AB&parent=%E5%8C%BB%E7%96%97%E7%A5%A8%E6%8D%AEOCR&api=%2Frest%2F2.0%2Focr%2Fv1%2Fmedical_summary_diagnosis&method=post
 *
 *
 * 诊断证明识别
 */
@Component
public class BMedicalSummaryDiagnosisHandle extends BaiduBaseHandle<BMedicalSummaryDiagnosisRequest, BMedicalSummaryDiagnosisResp> {
    @Override
    public String getUri() {
        return "/rest/2.0/ocr/v1/medical_summary_diagnosis";
    }

    @Override
    public String check(BMedicalSummaryDiagnosisRequest bMedicalSummaryDiagnosisRequest) {
        return checkSimpleProbabilityLocation(bMedicalSummaryDiagnosisRequest);
    }

    @Override
    public String getContent(BMedicalSummaryDiagnosisRequest bMedicalSummaryDiagnosisRequest) {
        return getSimpleProbabilityLocationContent(bMedicalSummaryDiagnosisRequest).toString();
    }
}
