package com.esv.freight.file.module.file.service;

import com.esv.freight.file.common.exception.EException;
import com.esv.freight.file.module.file.form.FileForm;

/**
 * @description:
 * @project: freight-file-service
 * @name: com.esv.freight.file.module.file.service.FileService
 * @author: 黄朝斌
 * @email: huangchaobin@esvtek.com
 * @createTime: 2020/05/28 14:49
 * @version:1.0
 */
public interface FileService {

    /**
     * description 文件校验
     * param [fileForm]
     * return void
     * author HuangChaobin
     * createTime 2020/05/28 14:52
     **/
    void checkFile(FileForm fileForm) throws EException;

    /**
     * description 校验是否图片数据
     * param [fileData]
     * return void
     * author HuangChaobin
     * createTime 2020/05/28 15:34
     **/
    void checkIsImage(String fileData) throws EException;
}
