package com.bonus.sgzb.system.service;


import com.bonus.sgzb.system.domain.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * 文件上传接口
 * 
 * @author zys
 */
public interface SysFileService
{
    /**
     * 文件上传接口
     * @param request
     * @return
     * @throws Exception
     */
    FileInfo uploadFile(HttpServletRequest request) throws Exception;

    /**
     * 上传头像
     * @param file
     * @param fileType
     * @return
     * @throws Exception
     */
    FileInfo uploadHeadPic(MultipartFile file,String fileType) throws Exception;

}
