package org.springblade.openapi.ocr.api;

import org.springblade.core.tool.api.R;
import org.springblade.openapi.common.vo.PageVO;
import org.springblade.openapi.ocr.pojo.dto.Api4OCRProjectDTO;
import org.springblade.openapi.ocr.pojo.dto.Api4OCRResultDTO;
import org.springblade.openapi.ocr.pojo.vo.Api4OCRProjectVO;
import org.springblade.openapi.ocr.pojo.vo.Api4OCRResultVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author bfhuange
 * @since 2025/04/22
 */
public interface IApi4OCR {
    String API_PREFIX = "/openApi/ocr";
    String PROJECT_LIST = API_PREFIX + "/queryProjectList";
    String OCR_RESULT_LIST = API_PREFIX + "/queryOCRResultList";

    /**
     *  查询项目列表
     * @param param
     * @return
     */
    @PostMapping(PROJECT_LIST)
    R<PageVO<Api4OCRProjectVO>> queryProjectList(@RequestBody(required = false) Api4OCRProjectDTO param);

    /**
     *  查询凭证ocr识别结果列表
     * @param param
     * @return
     */
    @PostMapping(OCR_RESULT_LIST)
    R<PageVO<Api4OCRResultVO>> queryOCRResultList(@RequestBody(required = false) Api4OCRResultDTO param);
}
