package com.cool.store.service;

import com.cool.store.enums.IDCardSideEnum;
import com.cool.store.enums.SmsCodeTypeEnum;
import com.cool.store.exception.ApiException;
import com.cool.store.response.ResponseResult;
import com.cool.store.vo.BusinessLicenseInfoVO;
import com.cool.store.vo.FoodLicenseVO;
import com.cool.store.vo.IdentityCardInfoVO;

public interface AliyunService {
    /**
     * ORC识别身份证信息
     * @param faceImageUrl
     * @param sideEnum
     * @return
     * @throws ApiException
     */
    IdentityCardInfoVO getIdentityCardInfo(String faceImageUrl, IDCardSideEnum sideEnum)  throws ApiException;

    /**
     * ORC识别营业执照
     * @param imageUrl
     * @return
     * @throws ApiException
     */
    BusinessLicenseInfoVO getBusinessLicenseInfo(String imageUrl)  throws ApiException;

    /**
     * 发送短信
     * @param mobile
     * @param codeType
     * @return
     */
    ResponseResult sendMessage(String mobile, SmsCodeTypeEnum codeType);

    /**
     * ORC食营证照解析
     * @param imageUrl
     * @return
     */
    FoodLicenseVO getFoodLicense(String imageUrl)  throws ApiException ;
}
