package cn.com.poc.common.rest;

import cn.com.yict.framemax.core.rest.BaseRest;
import cn.com.yict.framemax.web.permission.Access;
import cn.com.yict.framemax.web.permission.Permission;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


@Permission(Access.Safety)
public interface BosRest extends BaseRest {

    /**
     * 文件上传
     *
     * @param file 文件
     * @return
     */
    String upload(@RequestParam MultipartFile file) throws IOException;


}
