Documentation
use json::{JsonValue};
use crate::Connection;
use crate::mode::{OcrMode};


#[derive(Clone)]
pub struct Aliyun {
    // pub appid: String,
    // pub secret: String,
}

impl Aliyun {
    pub fn new(_connection: Connection) -> Self {
        Self {
            // appid: connection.appid,
            // secret: connection.secret
        }
    }
}

impl OcrMode for Aliyun {

    fn ocr(&mut self, _file_path: &str, _file_b64: &str) -> JsonValue {
        JsonValue::from("")
    }

    fn translate(&mut self, _text: &str) -> JsonValue {
        todo!()
    }
}