package com.ssj.service.sys.picturepredeal.service;

import com.ssj.bean.sys.homework.domain.HomeworkPicture;
import com.ssj.bean.sys.picturepredeal.domain.PicturePreDeal;
import com.ssj.framework.core.common.service.BaseService;
import com.ssj.framework.core.util.ResponseEntity;
import com.ssj.service.ai.model.HomeworkPicturePreDeal;
import com.ssj.service.kmt.request.SubmitQueryViaOssResultRequest;
import com.ssj.service.sys.picturepredeal.request.RecognitionResultReq;

public interface PicturePreDealService  extends BaseService<PicturePreDeal, String> {

    /**
     * 发送请求到ai服务器
     * @param homeworkPicturePreDeal
     */
    void postRequest2AI (HomeworkPicturePreDeal homeworkPicturePreDeal);

    /**
     * 异步发送请求到ai服务器
     * @param homeworkPicture
     */
    void asyncPostRequest2AI(HomeworkPicture homeworkPicture);

    /**
     * 查询图片的识别记录
     * @param homeworkPictureId
     * @return
     */
    PicturePreDeal findPreDealByHomeworkPictureId (String homeworkPictureId);

    /**
     * 查询作业图片的练习册识别结果
     */
    ResponseEntity findRecognitionResult(RecognitionResultReq req);

    /**
     * 作业识别V1接口
     * @param homeworkPicturePreDeal
     */
    void postRequest2AIV1 (HomeworkPicturePreDeal homeworkPicturePreDeal);

    /**
     * 作业识别回调
     * @param request
     */
    ResponseEntity submitQueryViaOssResult (SubmitQueryViaOssResultRequest request);
}
